How to make LED and switch circuit using Arudino UNO?

 Are you a beginner for Arduino UNO? Then this is the right place to learn basics of Arduino with all steps and explanations.

Required things:

  1. Arduino IDE - Can be downloaded in the official website
  2. Arduino UNO board - 1
  3. Arduino UNO cable - USB A to B - 1
  4. Jumper wires - 4
  5. Led - red color - Led1 - 1
  6. Resistor - 220 Ω - R1 - 1
  7. Resistor - 10K or 15K Ω - R2 - 1
  8. Pressing switch - S1 - 1
  9. Breadboard - 1
Before running any project using Arduino, first we need to design the circuit, then program it using Ardiuno UNO and upload it, then make the connections as per circuit design with respect to the pins of Arduino UNO broad and finally power up the board with any 5V USB power supply. Thats all, the project will run based on our program.

Here we turn on a led using a switch. The logic is simple, when the switch is pressed, led lights up, when released, led goes off.

Switch HIGH -  Led HIGH
Switch LOW - Led LOW



Next you need to set up the hardware connections as mentioned in the above circuit diagram.

Watch the full video to make the circuit connection. 

Once the connections are perfect, you can upload the code to the Arduino UNO board using the Arduino IDE.
Click on the download link and get the Arduino file for this project. 

Before powering up the board, make sure everything is connected properly as mentioned here.







Comments

Popular posts from this blog

How to Learn a Rubik’s Cube faster?