3.- ARDUINO BOARD: BASIC USES

       Last year we already used the ARDUINO card. This year we are going to use it in a more complex way. First we will use a basic digital output: the LED diode. It is a diode that illuminates when connected in direct polarization. Therefore it is a digital output. It is necessary to connect to the digital pins and define it as an output (OUTPUT). In order for the operation to be optimal, a 220 Ohm resistor must be connected in series with it, except for the PIN 13 that already has it incorporated. The entries will be different In practice 1 the input is time. That although it is a physical input the card itself has, internally, the corresponding sensor. In practice 2 we will use as a digital input a button (INPOUT) that will be connected in PIN 2 and that requires a resistance of 10K. In practice 3 an LDR is used as input. The LDR is a variable resistance with light. More light less resistance. So it is an analog input that should be connected in the analog pins with a resistance of 10K. The last practice is a traffic light and the control is done through the time input that does not require external sensor.



PRACTISE DESCRIPCITION CIRCUIT

CONEXIONS PROGRAMM RESULT
LED flashing LED flashing in PIN 13


Práctise 1 Video 1
Controlling a LED with a push button

When  the button is pushed, the LED lights


Práctise 2 Video 2
Controlling a LED with a LDR If you have poor light the LED lights


Práctise 3 Video 3
Controlling light traffic You have leds to control traffic


Práctise 4 Video 4


       

No hay comentarios:

Publicar un comentario

PROJECT 2021