This repository contains sample Arduino projects for IoT applications using Wokwi, Arduino, and various components. Each project is designed to help you understand and experiment with different aspects of IoT development.
Before getting started with the projects, ensure you have the following software installed:
-
Wokwi Account:
- Create an account on Wokwi.
- This will allow you to simulate the Arduino projects online.
-
Arduino IDE:
- Download and install the Arduino IDE.
- The Arduino IDE is essential for uploading code to physical Arduino boards.
-
Upload Codes to Wokwi:
- After creating an account on Wokwi, navigate to the platform.
- Open the Wokwi Arduino simulator.
- Copy the code from the respective project folder in this repository.
- Paste the code into the Wokwi Arduino simulator's code editor.
- Arrange the virtual components on the Wokwi canvas as per the provided schematics.
-
Simulate the Circuit:
- Press the "Run" button in Wokwi to simulate the Arduino circuit.
- Observe the virtual components responding to the uploaded code.
- Troubleshoot and experiment with the circuit in the simulated environment.
If you have an Arduino board (recommended: Arduino Mega), follow these steps to test the projects on a physical device:
-
Connect Arduino Board:
- Connect your Arduino board to your computer using a USB cable.
-
Open Arduino IDE:
-
Configure Arduino IDE:
- In Arduino IDE, go to
Tools > Board
and select the appropriate Arduino board model (e.g., Arduino Mega).
- In Arduino IDE, go to
-
Upload Code:
- Open the Arduino code file from the respective project folder in this repository.
- Click the "Upload" button in Arduino IDE to upload the code to the connected Arduino board.
-
Observe Output:
- Observe the connected components (LEDs, sensors, etc.) responding to the code on your physical Arduino board.
-
Project 1: LED Blink
- Simple Arduino code to blink an LED.
- Components Used:
- Arduino board
- LED
- Resistor (220 ohm/ if needed)
- Instructions:
- Connect the LED to pin 12 on the Arduino.
- Upload the provided Arduino code.
- Observe the LED blinking at different intervals.
-
Project 2: Ultrasonic Sensor and LED Control
- An Arduino project that uses an ultrasonic sensor to control multiple LEDs based on the detected distance.
- Components Used:
- Arduino board
- Ultrasonic sensor
- LEDs (10x)
- Resistors (as needed)
- Instructions:
- Connect the ultrasonic sensor and LEDs as per the schematic.
- Upload the provided Arduino code.
- Observe the LEDs lighting up based on the distance detected by the ultrasonic sensor.
-
Project 3: Buzzer and LED Sequence
- A simple project with an Arduino controlling a buzzer and LED sequence.
- Components Used:
- Arduino board
- Buzzer
- LED
- Resistor (if needed)
- Instructions:
- Connect the buzzer and LED to the specified pins on the Arduino.
- Upload the provided Arduino code.
- Observe the buzzer and LED sequence.
-
Project 4: LCD and Ultrasonic Sensor
- An Arduino project that uses an LCD display to show the distance measured by an ultrasonic sensor.
- Components Used:
- Arduino board
- Ultrasonic sensor
- LCD display
- Resistors (as needed)
- Instructions:
- Connect the ultrasonic sensor and LCD display as per the schematic.
- Upload the provided Arduino code.
- Observe the distance displayed on the LCD.
-
Project 5: Servo Motor Control
- An Arduino project that controls a servo motor to sweep between 0 and 180 degrees.
- Components Used:
- Arduino board
- Servo motor
- Instructions:
- Connect the servo motor to the specified pin on the Arduino.
- Upload the provided Arduino code.
- Observe the servo motor sweeping between 0 and 180 degrees.
-
Project 6: Sound Sensor
- An Arduino project that detects sound using a sound sensor and turns on an LED.
- Components Used:
- Arduino board
- Sound sensor
- LED
- Instructions:
- Connect the sound sensor and LED to the specified pins on the Arduino.
- Upload the provided Arduino code.
- Observe the LED lighting up when sound is detected.
-
Project 7: PIR Motion Sensor
- An Arduino project that detects motion using a Passive InfraRed motion sensor and activates LEDs and a buzzer.
- Components Used:
- Arduino board
- PIR motion sensor
- LEDs
- Buzzer
- Instructions:
- Connect the PIR motion sensor, LEDs, and buzzer to the specified pins on the Arduino.
- Upload the provided Arduino code.
- Observe the LEDs and buzzer activating when motion is detected.
- Projects
-
Project1
LED_Blink.ino
: Arduino code for LED Blink project.schematics/
: Circuit schematics for LED Blink project.
-
Project2
Ultrasonic_LED_Control.ino
: Arduino code for Ultrasonic Sensor and LED Control project.schematics/
: Circuit schematics for Ultrasonic Sensor and LED Control project.
-
Project3
Buzzer_LED_Sequence.ino
: Arduino code for Buzzer and LED Sequence project.schematics/
: Circuit schematics for Buzzer and LED Sequence project.
-
Project4
LCD_Ultrasonic.ino
: Arduino code for LCD and Ultrasonic Sensor project.schematics/
: Circuit schematics for LCD and Ultrasonic Sensor project.
-
Project5
Servo_Control.ino
: Arduino code for Servo Motor Control project.schematics/
: Circuit schematics for Servo Motor Control project.
-
Project6
Sound_Sensor.ino
: Arduino code for Sound Sensor project.schematics/
: Circuit schematics for Sound Sensor project.
-
How to use Wokwi sample video
This repository is licensed under the MIT License. See the LICENSE file for details.