65Views3Replies

Author Options:

can anyone teach me how to program an arudino ? Answered

i wanna design a robot following a line ....... i dono how to program t board ............ respond me genius people

Tags:arudino

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
Xentel Corp.
Xentel Corp.

10 years ago

If you really want to learn programming and program more circuits in future so you can buy books related to C or C++. If you are a begginer in programming language so I would reecommend you to first start with C++ it is easier to learn than C.
Apoorva

0
Grathio
Grathio

11 years ago

Yup, http://www.arduino.cc is the place to go.

If you don't have an arduino yet you'll get a lot of mileage from one of the Arduino starter kits out there. Make has a basic and advanced one, though I personally got more bang for my buck from this kit from Adafruit which will cover the basics that you need, including motors, servos and light sensors. (They also have a cheaper kit but it doesn't get into motors and servos.)

Here are the broad strokes for making a line following robot:
First make a robot the can go forward and turn right and left. Put two wheels in the front hooked up to a motor for going forward. Put a single wheel in the back and hook it to a servomotor to get to turn left and right. The advanced kits linked above will help you get that far. You can have a lot of fun with a bot like this sending it on pre-programmed routes.

Then to make it follow a line you need two light sensors about an inch apart and put them on the front of the robotnext to the ground. (And maybe an LED to light its path) When the sensor on the right senses dark (ie: the line) it tells the steering servo to turn it to the right to put it back on track. The left light sensor does the same to turn it left. you might want to add another sensor on each side to make it more accurate so its less likely to wander off path. You will need to have some kind of calibration (so the sensors know the difference between light and dark) and it will take some trial and error to get it working reliably, but it sounds like a fun project!

0
frollard
frollard

11 years ago

the arduino playground and tutorials...

http://www.arduino.cc

They have code examples, circuits and 'stuff' to teach any simple task - put many simple tasks together and you have a project!