i have an old crawler bot that my dad was working on, but has long since been forgotten and set aside. I've picked it up and i am going to replace the ic that was on it with an arduino. This will be my first arduino project, so i need some tips and pointers!
Some images first:
Ok. So for the following I/Os i have:
On/Off Switch - master power switch.
InfraRed Sensor –Sharp – GP2D12 49 - Sharp GP2D12 Datasheet by AIS Cube - Issuu
Buzzer – 8 ohm 3-128D 492Y – no information found online.
Yellow LED -
Green LED -
Motor Right -
Motor Left -
Leg POT Right – 308N 5k ohm -S Mexico 20 0503
Leg POT Left – 308N 5k ohm -S Mexico 20 0503
i want to alter the design to incorporate a 2 degree of freedom solution for the 'eyes', that range finder. thats 2 more motors. I was thinking about some sort of limit switch included in that to prevent the servo assembly from 'looking over the bots shoulder' and possibly crashing into the controller. There's not a lot of room on top of this rig.
I was also considering including a line follow under the chassis.
I have a few questions. I know that 5v is the key for all inputs, but, whats the difference between a analog input and a digital? if i wanted to include a screen, i know this is all digital outputs (and i do want to include a screen, before i forget again).
So i have 2 drive motors, 2 servos. These are outputs clearly, but the 2 drive motors i might need to 'turn backwards' inorder to turn the crawler on the spot. the motors in this case wouldn't just always be spinning in one direction
The same goes for teh servos, but i believe they are 3 wire, 1 being common, the other 2 waiting for a hot signal to turn one way or the other.
do analog signals interpert voltages? ie - my sharp range finder sends a voltage of 2.5v when something is 10 cm away, and 1v when something is 30cm away. If i can just go straight to the arduino with that information it'll save me quite a bit of aggravation. otherwise i need help understanding how to interface that data in.
The same goes for the POTS and each leg side. i'm going to be returning a value on one wire or the other in the form of a resisted 5 volt signal. W/ this signal (4 inputs total) i can montior the leg position at all times.
Lastly, 3 leds, 1 green for 'on', one yellow for 'running' and one red for 'obstacle detected'
Since the chassis and all the sensors and I/O stuff is already there, and the existing board doesnt' really work very well, i figured it would be good to go to put an arduino at the heart of this thing and make her go.
The plan is to go with a dueminlove, but i have to understand the arduino's I/O solutions more before i can really make that decision.
~~Dan Eakin
lansing mi usa