Need help with PBasic and Boe-Bot Programming?? ASAP. Thanks.
shoma2k
Posts: 2
Need help with a project...PLEASE?
I need help as i've been trying for a while to write a PBasic
program that will perform the following list of tasks for a Boe-Bot.Interface Circuitry for your Boe-Bot:
* Two servo motors are connected to I/O pins 0 and 1. The left motor is connected
to pin 0 while the right motor is connected to pin 1.
*Two tactile sensors (switches) are connected to I/O pins 2 and 3. The left switch is
connected to pin 2 and the right switch is connected to pin 3.
*A piezoelectric speaker is connected to I/O pin 4.
*Three LED's are connect to I/O pins 5-7. Pin 5 has a red LED connected to it, pin
6 a yellow LED and pin 7 has a green LED
Program tasks:
Have your Boe-Bot constantly rolling forward (roaming) until one ( or both) of the tactile sensors contact an object. Any time a sensor contacts an object, sound a tone on the speaker. If the left sensor is pressed, sound a tone on the speaker, have the Boe-Bot stop, backup, turn right and continue rolling. If the right hand sensor is pressed, sound a tone on the speaker, have the Boe Bot stop, backup and turn left and continue rolling. If both sensors are pressed a the same time, sound two tones on the speaker, have the Boe Bot stop, backup, turn 180 degrees around and then continue rolling.
Use ramping at the beginning of each forward motion. The 3 LED's will light under the following conditions. Anytime the Boe Bot is stopped, the red LED will be on. Anytime ramping is being used, the yellow LED will be on. When the Boe Bot is in forward full speed motion, the green LED will be on.
Keep track of how many times the Boe Bot touches and object and have the Boe Bot end the program after it counts 25 touches.
I need help as i've been trying for a while to write a PBasic
program that will perform the following list of tasks for a Boe-Bot.Interface Circuitry for your Boe-Bot:
* Two servo motors are connected to I/O pins 0 and 1. The left motor is connected
to pin 0 while the right motor is connected to pin 1.
*Two tactile sensors (switches) are connected to I/O pins 2 and 3. The left switch is
connected to pin 2 and the right switch is connected to pin 3.
*A piezoelectric speaker is connected to I/O pin 4.
*Three LED's are connect to I/O pins 5-7. Pin 5 has a red LED connected to it, pin
6 a yellow LED and pin 7 has a green LED
Program tasks:
Have your Boe-Bot constantly rolling forward (roaming) until one ( or both) of the tactile sensors contact an object. Any time a sensor contacts an object, sound a tone on the speaker. If the left sensor is pressed, sound a tone on the speaker, have the Boe-Bot stop, backup, turn right and continue rolling. If the right hand sensor is pressed, sound a tone on the speaker, have the Boe Bot stop, backup and turn left and continue rolling. If both sensors are pressed a the same time, sound two tones on the speaker, have the Boe Bot stop, backup, turn 180 degrees around and then continue rolling.
Use ramping at the beginning of each forward motion. The 3 LED's will light under the following conditions. Anytime the Boe Bot is stopped, the red LED will be on. Anytime ramping is being used, the yellow LED will be on. When the Boe Bot is in forward full speed motion, the green LED will be on.
Keep track of how many times the Boe Bot touches and object and have the Boe Bot end the program after it counts 25 touches.
Comments