Hello,
I'm from Belgium,and new here and also new in programming.
Hi and welcome
I have a arduino to program
To program Arduino You have at least 2 approaches:
- Use Arduino IDE and their C Libraries, which are very handy, however somewhat restricted to Arduino devices only.
- Use Atmel Studio 6 IDE and their C Libraries. This way gives You more flexibility later on if You don't want to use Arduino as this approach works for all Atmel microcontrollers
Personally, I never had MCU (augmented board like Arduino). What I did was bought ATmega48 microcontroller for £3 and used Atmel Studio to program it. I didn't get all ready made sockets/connections/pins (as You do with Arduino/Axon/other MCUs), but to start learning all I needed was prototyping board, few resistors, LEDs and caps to get everything connected to my microcontroller. This way, I learnt not only how to program microcontrollers, but also how to setup all hardware.
For useful AVRC tutorials try links in this post -->
http://www.societyofrobots.com/robotforum/index.php?topic=14947.msg109175#msg109175I want to make a robot with it
2 motor (left right)
To drive motors You need to have motor controller or H-bridge that exceed power requirements of motors.
DON'T TRY CONNECTING MOTORS DIRECTLY TO MICROCONTROLLER - IT WILL RUIN IT!!! If You post motors specs, we might be able to guide You towards proper driver for them. There are many choices for motor drivers starting with ready built drivers, with all bells and whistles, like
Sabertooth, going to IC H-bridges like
L298, ending with custom/
DIY built transistor H-bridges.
Regarding programming related to driving motors - You need to learn how timers and PWM work. Link to timer/PWM tutorial is provided in the post I link You to above.
2 bumpersensors
buttons: START STOP
To detect switch/button actuation You have to use interrupt feature of Your microcontroller. Here's post to get You started -->
Newbie's Guide to AVR Interrupts.
Good luck