Saturday, April 11, 2015

Sensor Work weekend

Running into issues with painting so moved back to the house and work on the sensor CPUs and connections.

Purchased 5 Arduino NANO sized CPUs which each will handle dedicated ping/sensor (distance detection) on each foot.

There will be 3 in the center foot and 2 in each outer foot.

The device is roughly 1.5 inches long and will need magnifying glass to solder the connectors to it.

Took the system out and connected the feet for testing the wiring between the 3 ping sensors (IR PING sensors) and the Arduino.

Then connected the arduino to the EZB robot CPU control system.



Here is a great shot of the EZB control CPU.. notice the white ribbon cable coming off the top.  It is actually the micro camera which will be located behind the EYE on the dome so it can do facial recognition etc.


The arduino is then connected to a screw down terminal shield adapter that allows me to quickly screw connect wires without permanently soldering them to the board.  Very nice.



Connecting each sensor requires 4 wires...
VCC (5v), GND and ECHO/TRIGGER.
The TRIGGER pins can be shared between all 3 as well as GND and 5V.



Taking the arduino nan out of the static bag... not much to look at.  I will connect the posts to the board and begin soldering them permanently to the board.  Once connected will run OSCILLOSCOPE meter tests on the power and such to verify that the pins are connecting correctly.



Here is a great shot of the size of the unit even inside the screw down terminal shield... very small.



Patience while soldering... my first unit was rough, as its been a year or so since I soldered my lights for the dome on R2 Version 1.0.

Getting older definitely as even looking through the magnifying glass was hard.




One at a time...



Steady as she goes...






There a completed piece, ready for the sensors to be permanently connected to the screw terminals.



Here is a great shot of the scale of the arduino and its pins.


There is 6 exposed pins on the top that have additional RX/TX pins and VCC/GND on them.


Well after much time it was a success... here is the schematic for anyone interested in how these will be wired into each foot.

Connectivity...
D18 on ezb tx to Rx on mini
D19 on ezb Rx to Tx on mini


UARTInit(0,2,9600)
sleep(1000)
UartWrite(0,2,"e")
sleep(1000)
$distance = UartReadavailible(0,2)
print ($distance)
this is a test script to use with the ezb





No comments:

Post a Comment