Introduction

This week I was doing embedded programming at home using the kit which our lab sent.

Experience


The kit contains Arduino boards, breadboards, wiring, LEDs, stepper motors, some sensors ext.
To start the process firstly I downloaded Arduino software then connect the board to the computer
to program it. The soft already contains some simple programs like turning LEDs on and off.
I change the blinking time of built-in LEd that was my first achievement. Then I tried to blink
LED on a breadboard, I connected the breadboard to Arduino using 11 digital port and put 220-ohm resistor ,
the second wire was GND. Run the program and it works well. The second thing I have done was to put a
button on the breadboard and turn LED on and of with a button. To be honest, that was not difficult to
program Arduino there are many tutorials and open-source ready codes that can be copied. I used this tutorial
to make the button work.

screenshot screenshot screenshot screenshot

void setup() { Serial.begin(9600); pinMode(2, INPUT_PULLUP); pinMode(13, OUTPUT); } void loop() { int sensorVal = digitalRead(2); Serial.println(sensorVal); if (sensorVal == HIGH) { digitalWrite(13, 0); } else { digitalWrite(13, 1); } }

Some wrong connection of LEDs. At that point I haven't understood breadboard working principles. And want to mention that the LED is turning of when button is pressed

screenshot

Conclusion

The information will be updated.