In the tutorial for any programming language there is the very first example, the canonical program for outputting the string “Hello, World!” Since the Arduino is not really a programming language, but a piece of hardware, besides (for now) without text output, we first program the controller to control the flashing LED. But first, let's prepare our minilaboratory and decompose the necessary tools.
Photo 1. Arduino Diecimila microcontroller. Without it, nothing happens :)
Photo 2. A set of watch screwdrivers. It is useful to sort out the gadgets and pick out the details of them.
')
Photo 3. Set of jumper wires. With the help of them it is very convenient to assemble the circuits on the breadboard without soldering.
Photo 4. Chinese multimeter Noname. The Soviet switch device will do as well, provided that you know how to use it. It is useful for checking the voltage, reliability of contacts and other experiments.
Photo 5. Chinese breadboard for quick assembly schemes. Details stuck to show the principle of use. The rows of contacts are interconnected.
Photo 6. USB-cable is needed to connect the Arduino with a computer.
Here I decided to omit the technical details of the connection and device settings (they will be discussed in the next posts), so I immediately post the program text and video recording of the result of its work.
/* Blinking LED
* Created 1 June 2005
* copyleft 2005 DojoDave <www.0j0.org>
* arduino.berlios.de
*
* based on an orginal by H. Barragan for the Wiring i/o board
*/
int ledPin = 13; // 13
void setup()
{
pinMode(ledPin, OUTPUT); // ()
}
void loop()
{
digitalWrite(ledPin, HIGH); //
delay(1000); //
digitalWrite(ledPin, LOW); //
delay(1000); //
}
ru.youtube.com/watch?v=m14QfYCduEUPS - If someone knows how to insert a video from YouTube into a habratopic - let me know. Habrategi youtube and video do not help.