Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
As far as I understand the 9V pin provides the same voltage as the input battery, so when you use the 6V batteryas input, the 9V pin will provide these 6V.
does the arduino have an internal voltage reference, or do you need to connect the vref pin to +5v manually?
Thanks Ro-Bot-X, that makes sense.Can you also comment on why connecting the servo's to the 5V pin of the Arduino would be a bad idea?
But I hope Admin (or someone else) can comment on why the servo's can't be connected to the 5V pin directly.
Quote from: Mega on December 13, 2007, 01:13:13 PMThanks Ro-Bot-X, that makes sense.Can you also comment on why connecting the servo's to the 5V pin of the Arduino would be a bad idea?Like Admin mentioned, the continuous rotation servos need a large amount of power when switching directly from forward to reverse, because of the weight and momentum of the robot. That could cause such a voltage drop that the mega168 would have a brownout (a reset).However, if you are using an unmodified servo to scan the sensors, you can connect that one to the 5V power bus, since there is little force needed to move around a small sensor.
Yes, it will work.
so that means i cant use any sensors or servos? or what?
Quote from: robonoob on December 14, 2007, 06:34:45 AMso that means i cant use any sensors or servos? or what?youre forgetting that servos and sensors ( excluding sonar) give a signal and are not powered directly from the pins of the microcontrollersonar gets a signal from the MCU to operate ( but that signal is very small)Short : do not power sensors and servos from the MCUservos get a signal on their input line ( but the current can be low) Understand?
well sonar sensors have 3 or 4 wiresone of them is power , 1 of them is GND, and the other 1 is for signal ( send pulse trigger to start and recieve pusle for distance)for 4 wires you have 1 for recieving signal, and 1 for trigger , 1 for power , 1 for gndMCU is microcontroller unithope i helped, any questions?
The microcontroller is the main chip/processor on your arduino board that executes the source code.Today I created a similar circuit as yours, it is the first step in my HummBot project:For more information see: http://megabotblog.blogspot.com/2007/12/my-first-hummbot-circuit.html
I will use this circuit in my HummBot.The servo will be controlling the front wheel steering. I will attach two IR sensors to the front of the HummBot. When the IR sensors detect some obstacle the servo needs to be activated to guide the HummBot around the obstacle.The next step will be to connect the DC motor of the HummBot such that the Hummbot can slow down or reverse when it approaches obstacles.
robonoob, I highly recommend you reading this:http://www.societyofrobots.com/sensors_sharpirrange.shtmlI give examples with four different robots - each have included code for you to look through.
The $50 Robot (with ATmega168 upgrade) uses the same microcontroller as the Arduino. Code is the same.