Steren ARD-020 Manual De Instrucciones página 38

Tarjeta programadora compatible con arduino tipo leonardo
Tabla de contenido

Publicidad

Idiomas disponibles

Idiomas disponibles

Finally, you are ready to write programs (the Arduino editor refers to them as
"sketches") for your project. You'll need some familiarity with C++programming,
variables, functions, "if" statements and loops, but the Arduino sketches tend to
be simpler.
SKETCHES
The best way to learn programming Arduino is through the example sketches
included in the Arduino IDE. These are located in the fi le menu > examples and
many examples can be found on the Internet.
Once you have written a sketch, simply click the load button and it will be sent
to your Arduino board. The microcontroller will restart and run your sketch until
it gets a different one.
Below you will fi nd small step by step projects.
1. Flashing
It is a basic exercise that shows how to turn a LED that is connected to PIN 13 of
Arduino confi gured as output. Turn on and off time is 1 second.
Plot and scheme
Since Arduino PIN 13 has an internal resistance, the red LED is placed without
resistance in series; if you place the led in another output you should place
a resistance of between 220 and 500 ohms, depending on the power LED
consumption.
6 6

Publicidad

Tabla de contenido
loading

Tabla de contenido