Hi, how are you? I am new to Arduini, I do not know much about re-appearance and I need your help
In the faculty they asked me for several projects with arduin, but I got stuck with 4 and I do not know how to do it, they could help me.
-
Make a program that prints by serial port, at intervals of 200ms, the
voltage present on pin A0. After each voltage should be added a jump of
line to correctly distinguish the measurements. -
Make a program that will flash an LED during the initial 10 seconds
after starting the board (or after a Reset). The flashing speed of the LED may be
configurable by the amount of light that falls on the LDR resistor -
Look at the following code and copy it into the Arduino IDE:
#define LED 13
#define PULSADOR 2
void setup() {
pinMode(LED, OUTPUT);
pinMode(PULSADOR, INPUT);
}
void loop() {
do { //Parpadea mientras el pulsador esté activado
digitalWrite(LED, HIGH);
delay(100);
digitalWrite(LED, LOW);
delay(100);
} while(digitalRead(PULSADOR) == HIGH);
}
Verify, load the program and check its execution. What should the
program when activating the button? And when you deactivate it? Does it work as it should?
Which is the reason?
Maybe it's abusing the group but they could help me with these problems, with the code and with the way to connect it in the breadboard