Step 7Fill up Bob's Brain!
All the connections to the BS2e are listed again below
- PIN 0 - 220ohm resistor to the CdS photocell
- PIN 5 - positive lead of piezo speaker
- PIN 6 - SIG (signal) line of left GP2D12 (left when looking at the robot from above)
- PIN 8 - SIG line of right GP2D12
- PIN 9 - OUT (output) line of the IR detector (dropoff sensor)
- PIN 10 - 1Kohm resistor to the positive lead of the IR LED
- PIN 15 - SIG lead of ultrasonic rangefinder
1) He, or course, avoids objects and dropoffs
2) counts the number of times each one of the sensors was triggered, and determines if he's in a spot that cannot be maneuvered in
3) generates pseudo-random numbers to randomize movement
4) turns on "headlights" after determining that he's in a dark room by using timers and IF...THEN statements
I am still working out the 'lag' part. It has to do with the discharge time of the capacitor for the light sensor, as well as an over-burdened BS2e.
Source Code.bse12 KB| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|









































