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).
Connect the Arduino Board via USB cable to the computer. Should illuminate green led ON on the Board.
Cable USB A - USB B
Download the Arduino IDE for your operating system (supports Windows, Mac OS X, Linux) on page can installer, archive. The downloaded file also contains the drivers for the Arduino boards.
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.
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
Specify the development environment its cost. To do this in tools > Board select "Arduino UNO".
Select the Board Arduino
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
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!
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
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
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.
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
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 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
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
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
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
Will select the programmer: Tools -> Programmer -> USBasp (or Tools -> Programmer -> USBasp).
We specify the type of USBasp programmer
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
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.

Advice 3: How to program avr

The simplest way of mastering programming microcontrollers series AVR is the use of hardware platform Arduino. Software the platform supports operating systems Linux, Android and Windows.
How to program avr
Purchase a ready-made Arduino Board or any of its numerous clones. The clone would wear any other name. If you wish, collect any of such clones on their own, using any of the following MCU AVR: ATmega8, ATmega168, ATmega328. In the absence of the computer's COM port will consider on-Board USB to COM Converter, or use a ready-made Converter. In all cases, do not forget also about the level Converter, since the COM ports of computers typically operate at a voltage of 12 V and the microcontroller require 5 or 3.3.
Program the Arduino microcontroller is a special-IOS, if this was not done initially (for example, in the finished Board). Write firmware into the microcontroller you will need only once, in the future you develop the program you will write to it via USB or a COM port without using the programmer. They will run on top of it similar to how the computer programs run on top of operating system.
If your computer does not have Java virtual machine, download and install it.
Download and install the official wrapper integrated Arduino development. This program, located on the official website of the project compatible with both the original Arduino boards series and their unofficial clones.
Connect the card with computer and then feed her food.
Run the shell program. Then select a Board type. If it is unoriginal, select the pay with which it is compatible. Also, select the port to which it is connected.
Consult the shell examples. They are written in a special programming language called Wiring. Take turns to write them into the microcontroller, located on the Board, and run.
Having studied the examples, try to create their own software. If necessary, equip the extra peripherals. Being programmed, in the future it will be able to work standalone without a computer.

Advice 4: How to learn programming from scratch

If you want to create video games, smartphone apps or Internet sites, you need to learn how to program. There are countless different programming languages, but they all usually have common principles.
How to learn programming from scratch

Identify your goal

Language learning programming is quite an interesting experience, but before embarking on the process of learning should clearly state the purpose. For what purpose you need the knowledge of a programming language? Perhaps you want to become a web programmer, flash developer-games or to write applications for the iPhone.

Select the programming language

Learning programming it is recommended to start with C#. This is the basic languages, and they represent a an industry standard programming, their knowledge is considered a must for any professional programmer. Don't start your training with such programming languages as Java. The syntax may seem confusing. Languages C#, for some beginners may be too complex, in this case, you can start learning with Python, also a good basis for beginners.

Learning the basics of programming you can go for about a year. You have to know the features of procedural and object-oriented programming, principles of work with binary trees, arrays, lists, etc. Only after learning the basics move on to more complicated tasks.
Visit the sites of the developers of programming languages, study the documentation. Be sure to talk on the forums of the programmers, they usually answer most questions beginners.


If you want to learn programming, you just need to know math. In the process, you have to face many problems that cannot be solved without knowledge of the basics of this science. There are a large number of mathematical equations, theories and systems (Fourier series, Fibonacci numbers, etc.), which significantly simplify the programming process.

Training does not end

Evolution of programming languages is not in place, their development is ongoing. Try to read as much literature on the field of programming, where you plan to work. Always look for alternative solutions to arising problems, it will help you to constantly improve the efficiency of your generated code. Talk with professional programmers, they will always be able to advise how to deal with a particular problem. Read codes of their programs will also bring you great benefit.
Impossible to keep it all in mind. Feel free to use reference books on programming languages.

Programming tasks, however simple they may be, will never be decided hurriedly. They always need to develop a correct algorithm of actions effective in this particular situation. The search for optimal algorithms requires constant practice and training. Most try to solve a small programming tasks (you can find them on specialized sites), it will help you gradually hone your skills in this area.
Is the advice useful?