Skip to main content

01. Blink - First program

Hello everyone!
Today, we will be starting our journey in Arduino. The first project in Arduino is Blink an LED, and today I will teach you how to do it successfully. If you are familiar with coding, you would definitely know the program: "Hello World". This is the first program every programmer learns to code. Similarly, making an LED blink is the "Hello Word" of physical computing.
Before starting this project, make sure you have read the 'Introduction' page.

Supplies:

  • LED

LED, short for Light Emitting Diode is a diode that emits light as current flows through it. The Arduino board has an in-built LED which can be used for debugging purposes. LEDs have polarity(remember that it is a diode) and only allow current to flow in one direction. The cathode must be connected to GND (Ground pin) and the anode must be connected to one of the digital pins.
As mentioned in the home page, you will need:

  • Resistor - 220Ω
  • Arduino Uno R3
  • Solderless Breadboard 
  • Jumper wires

Setting up your hardware


Connections:

  • Cathode -----> GND
  • Anode -----> D9

Coding

You can find the codes for this project in:
File ---> Examples---> 01.Basics---> Blink
Make sure to modify the codes to make it compatible with the hardware setup.
Read the comments beside each function, to make sure you understand how it works. If you are unable to understand it, please feel free to comment below and I will help you.
The final look of the codes:
After completing, compile your sketch by clicking on the tick button. It will verify your sketch  and once it's done, upload the sketch to your Arduino board by clicking the right arrow button. Make sure you have connected the Arduino board to your computer before uploading.

Final look 

If anyone has questions, please feel free to comment below or send an email to arduinoprojectsbyr@gmail.com.

Follow my blog to stay updated with my projects.



Comments

Popular posts from this blog

77. Controlling Micro servo Robotic Arm with MPU-6050 sensor module

 Hey everyone! I am back with an interesting project. Today, you will be learning about controlling a Simple 2 axis Robotic Arm, made from Micro servo motors, with an MPU-6050 sensor module. Please feel free to visit my previous blog post to learn about the MPU-6050 sensor module. Hardware components used in this project Arduino Mega 2560 - You could use any other Arduino microcontroller, but make sure you use an external power supply. USB Type A/B cable (for Arduino Mega 2560) MPU-6050 sensor module SG-90 Tower Pro Micro Servo motor (x2) Male-to-Male Jumper wires (x6) Male-to-Female Jumper wires (x5) Setup Schematic MPU-6050 sensor module VCC - 3.3V GND - Ground SDA - D20 (Arduino Mega 2560), A4 (Arduino Uno and Nano) SCL - D21 (Arduino Mega 2560), A5 (Arduino Uno and Nano) INT - D2 Micro servo motor (Roll) S (Yellow/ Orange) - D9 + (Red) - 5V - (Black/ Brown) - GND  Micro servo motor (Pitch) S (Yellow/ Orange) - D10 + (Red) - 5V - (Black/ Brown) - GND Coding As I alread...

85. Analog and Digital Clock on Adafruit TFT Display using Arduino

 Hey everyone, Sorry I have not posted in a while. Today, I will be presenting you my Analog and Digital Clock on Adafruit TFT Display using Arduino. You can find the schematic and code explanation within this post. Read on further to learn how I did this project. Hardware components used in this project Arduino Mega 2560 Adafruit 2.8" TFT Touch Shield for Arduino w/ Capacitive Touch - You could also use any other Arduino compatible TFT display DS1307 RTC Module Solderless Breadboard - Half+ (This is optional if you are connecting the RTC module to the development board directly) Jumper wires (x4) - Male/Male jumper wires if using solderless breadboard. Female/Male if connecting RTC module directly to Arduino Mega. Software apps Arduino IDE - latest version is recommended Setup Connections DS1307 RTC Module SCL - A5 SDA - A4 VCC - 5V GND - Ground Adafruit TFT Touch shield You can simply place the Adafruit TFT Touch shield onto your Arduino Mega 2560 development board. Make sure to...

57. Using Blynk with Arduino Uno and ESP8266 WiFi module

Hello Everyone! Today I am going to explain you how to connect your Arduino Uno with Blynk using the ESP8266 WiFi module. I have already demonstrated you about connecting your Arduino Uno with Blynk app using the Ethernet Shield W5100 and this will be the second version of that project .  Hardware components used in this project Arduino Uno ESP-01 ESP8266 WiFi module USB to TTL converter Solderless Breadboard - Half+ Breadboard power supply module - 3.3V/ 5V RGB LEDs (x3) - Common Anode Resistors (x3) - 220 Ω Relay module - 5V single channel Male-to-Male Jumper wires Female-to-Male Jumper wires Setup Your setup must look somewhat similar to that shown in the images above. Connections ESP8266 ESP-01 wifi module GND - Ground GPIO0- Not connected GPIO2 - Not connected RXD - D2 TXD - D3 CH_PD - VCC - 3.3V RESET - Not connected VCC - 3.3V  *Note: Do not connect your ESP8266 ESP-01 wifi module with 5V. RGB LED - Common Anode Anode -...