I’m almost done with my project. I only have an issue with knowing how to make my Johnny 5 run with these two new sensors that I’ve purchased. Am I suppose to download a program for it? Because the visual sequencer does not appear to have anything for sensors?
-Ivan
What would be easiest is to get a microcontroller and development board, connect the sensors to it. Set up a serial connection to the servo controller. Program the microcontroller to read the sensors, react and control the SSC-32 servo controller.
[sensors]<==>[microcontroller]<=TTL/Serial=>[SSC32]
You simply need more than an SSC-32 and sensors to make a robot, you need a microcontroller or you need to tether your PC and have a way to collect and send the sensor information back to it (i.e. a microcontroller).
I recommend reading this application note:
kronosrobotics.com/an120/AAN120.shtml
I have built a few bots that flew around the house avoiding obstacles using this sensor.
I suggest probably the easiest thing to do is connect the IR sensor and force sensor outputs (both have analog outputs) to the analog inputs of the ssc-32 and work from there.
This would also work:
[sensors]<==>[ssc-32]<=TTL/serial=>[pc or microcontroller]
It is pretty easy to read the sensor values through the ssc-32. I did note that the first analog reading taken will not be accurate.
It’s listed in the manual and is due to the command changing the input from digital to analog. From the manual…
“The first time a V* command is used, the pin will be converted to analog without pullup. The result of this first read will not return valid data.”