Labels

Saturday, 27 April 2013

Break through finally!

After 7 STRAIGHT HOURS of playing around with different circuits and soldering a lot of wires to control a DC motor with aurdino, I have finally figured out why they haven't been working! I bought 25 dollars worth of AAA batteries and swapped them with my old ones, then plugged in the forward and back wires from the RC Car to the circuit which is connected to aurdino and now I have a complete controlled via a rotary potentiometer. The next step is to now substitute the rotary potentiometer for a LDR (Light dependent resistor, So that every time light is hit on the LDR current will pass through meaning that my RC Car can power up and start to move forward. This is the action I'm trying to complete with my car running away from the light.

Here is an image to help me add a LDR:


Here are a couple of photos of my step by step process.




Adding a battery to the circuit to power the DC motor, also along with that a transistor that can manage the voltage.

Adding the rotary potentiometer to the circuit.
Adding a piezo alarm to the circuit so that when light is struck on the LDR the alarm will go off.  

And finally a video of it in action and my fritzing version:

This video is using the rotary potentiometer with the DC motor:
http://www.youtube.com/watch?v=3aafWcPBPjA&feature=youtu.be
This allows me to control the speed of the motor from no speed to high speed.

And fritzing view:


No comments:

Post a Comment