Advice 1: How to start programming with Arduino

Want to learn how to create electronic gadgets with your own hands, but do not know where to start? Intend to learn the basics of electronics? Then Arduino is the best choice for a beginner. Particularly good for this purpose Arduino UNO.
Arduino - basic set
You will need
  • - Arduino UNO
  • - USB cable (USB A - USB B),
  • - personal computer
  • - led
  • - 220 Ohm resistor,
  • - pair wires 5-10 cm,
  • - in the presence - prototyping Board (breadboard).
Instruction
1
Connect the Arduino Board via USB cable to the computer. Should illuminate green led ON on the Board.
Cable USB A - USB B
2
Download the Arduino IDE for your operating system (supports Windows, Mac OS X, Linux) on page http://arduino.cc/en/Main/Software can installer, archive. The downloaded file also contains the drivers for the Arduino boards.
3
Install the driver. Consider for Windows. To do this, wait until the operating system prompts to install the driver. Give up. Press Win + Pause, start the device Manager. Scroll to "Ports (COM & LPT)". You will see there is a port named "Arduino UNO (COMxx)". Just right click on it and select "Update driver". Next, choose the location of the driver you just downloaded.
4
The development environment already contains a lot of examples to explore the work of the Board. Open the example "Blink" File > Examples > 01.Basics > Blink.
Arduino - Open example Blink
5
Specify the development environment its cost. To do this in tools > Board select "Arduino UNO".
Select the Board Arduino
6
Select the port assigned to Arduino Board. To find out what port is connected to the Board, start device Manager and look under Ports (COM & LPT). In brackets after the title Board will specify the port number. If the Board is not listed, try unplugging it from the computer and waited a few seconds, plug in again.
How to know the port number of the Arduino
7
Unplug the card from the computer. Assemble a circuit as shown in the figure. Please note that the short leg of the led should be connected to the GND pin, long through the resistor to digital pin 13 Arduino. Easier to use development Board, but in its absence you can connect the wires by twisting.
Important note! Digital pin 13 already has a resistor on the Board. So when you connect the LEDs to the Board, an external resistor is optional. If you connect a led to any different conclusions Arduino using a current-limiting resistor must!
8
You can now load a program into memory card. Connect your Arduino Board to the computer, wait a few seconds while the initialization of the Board. Click the "Download" button, and Your sketch written in the Arduino memory. Programming Arduino is very intuitive and not difficult. Look at the image in the comments to the program is a little explanation. This is enough to deal with your first experiment.
Load the sketch into memory
9
The led should start fun to poke you with a periodicity of 2 seconds (1 second lit, 1 off). Your first sketch is ready!
Arduino in action
Note
Be careful when working with the Arduino Board is electronic product, which requires careful treatment. Bottom boards are bare conductors, and if You put charge on the conducting surface, it is likely to burn cost. Also don't touch the cost with wet or damp hands and avoid when working wet locations.
Useful advice
In the network there are many websites dedicated to the Arduino. Read, learn, don't be afraid to experiment and learn new things!

Advice 2: How to program Arduino Pro Mini using the programmer

In the life of a novice againsta sooner or later there comes a time when you want to save on the amount of their products, without sacrificing functionality. And then the Arduino Pro Mini is a great solution! This fee is due to the fact that it does not have a built-in USB connector and a half times less Arduini Nano. But in order for her to program, you will have to purchase additional - external - USB-programmer. How "pour" is written in the program memory of the microcontroller and make the Arduino Pro Mini to work, and will be discussed in this article.
Programmable Arduino Pro Mini with the help of a programmer
You will need
  • - Arduino Pro Mini;
  • computer;
  • - USBASP-programmer;
  • - connecting wires.
Instruction
1
First, a few words about the programmer. You can buy one for $ 2 in any Chinese online store.
Connector type USB-A is used, of course, to connect the programmer to the computer.
The ISP connector is needed to connect to the programmable circuit Board.
The jumper JP1 controls the voltage at the output VCC ISP connector. It can be 3.3 V or 5 V. If the target programmable device has its own power supply, you need to remove the jumper.
Jumper JP2 is used for updating the firmware of the programmer; this article is not considered.
Jumper JP3 is needed if the clock frequency of the target device below 1.5 MHz.
Two LEDs indicate: G - power is supplied to the programmer, R programmer connected to the target device.
Programmer USBASP
2
Connect the programmer to the USB port of the computer. Most likely, after a short while, the operating system will report that it failed to find a driver for this device.
In this case, download the driver for the programmer from the official website http://www.fischl.de/usbasp/. Unpack the archive and install the driver in a standard way. In device Manager you should see the USBasp programmer. Now the programmer is ready to work. Disconnect it from the computer.
Install the driver for the USBASP programmer
3
Next you need to connect the charge Arduino Pro Mini with the programmer. The scheme shows how to do it.
Wiring diagram for the Arduino Pro Mini to the programmer
4
We use development Board and connecting wires - it will be fast and reliable. Connect the connector of the programmer with insights on the Arduino Pro Mini as described above.
Connection of the programmer with the Arduino Pro Mini
5
Open the Arduino development environment IDE. Select the desired card through the menu: Tools -> Board -> Arduino Pro or Pro Mini (Tools -> Board -> Arduino Pro or Pro Mini).
You must also select the type of microcontroller, which is set using menu Tools -> Processor. I have is the ATmega 168 (5V, 16 MHz). These options are usually written on the housing of the microcontroller.
Select the type of the target microcontroller ATmega
6
Will select the programmer: Tools -> Programmer -> USBasp (or Tools -> Programmer -> USBasp).
We specify the type of USBasp programmer
7
Open the sketch you want to load into memory of the microcontroller. For example, let it be the flashing led on: File -> Examples -> 01. Basics -> Blink.
Connect the programmer connected to Arduino Pro Mini to the computer.
Now, in order to load a sketch to Arduino using the programmer, you can proceed in several ways.
1) Through the menu File -> Upload using programmer;
2) using Ctrl + Shift + U;
3) hold down the Shift key, press the right arrow button, which is normally used to download the sketch in the Arduino memory in a standard way.
All, the program is "flooded" in memory of the microcontroller.
Loaded the sketch into the Arduino using the USBasp programmer
Note
Maybe the IDE will give you a warning: "warning: cannot set sck period. please check for usbasp firmware update." Don't panic, the sketch is still recorded in the memory of the microcontroller and it will work.
Is the advice useful?
Search