by mfortuna » March 2nd, 2009, 5:26 pm
I pretty much made my last HW mod to the Create and now have a camera that can scan up and down. I do hope to clean up the wiring at some point and maybe consolidate the 5V supply onto the Propeller proto board. The new things you see in the picture are the Propeller proto board and a servo. I wrote a program that moves the servo up and down based on pulses coming from the DOUT pins available on the Create DIN connector and are passed through the BAM. The spin language is very easy to use.
The DOUT pins are set using the SCI 147 command.
DOUT0 = Power on camera and Propeller.
DOUT1 = Move camera up
DOUT2 = Move camera down
Sending a 147,1 will turn on the camera and Propeller. It also prepares the camera for movement.
To move the camera up two steps:
Send a 147,3 to pivot the camera up
Send a 147,1 to allow another camera move
Send a 147,3 to pivot the camera up
To move the camera down two steps:
Send a 147,1 to allow another camera move
Send a 147,5 to pivot the camera down
Send a 147,1 to allow another camera move
Send a 147,5 to pivot the camera down
The camera is mounted to the Create using a regular cabinet hinge and some heavy duty double sided tape. This allows the camera to pivot up and down but not side to side.
My next step is to learn visual basic and write my own app the integrates the camera controls. It will look something like Roomba Status but will have added buttons for the camera.
- Attachments
-

Mike
Reds x 3, Dirt Dog, Disco (now a parts bot), Create, Scooba 350, and Security Dawg
Evolution Mint