



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Title : Control an LED through GPIO pins to understand the physical design of IoT devices and device actuation. Problem Statement: Implement a simple IoT application using an Arduino board to control an LED through GPIO pins in order to understand the physical design of IoT devices and device actuation. Aim: Write a program(simple IoT application) to control an LED through GPIO pins to understand the physical design of IoT devices and device actuation. Objectives:
Digital Input and Output in Arduino (ATmega) Arduino’s analog pins can also function as digital input/output pins. Digital Output Arduino’s digital pins can be configured as outputs to drive devices like LEDs and LCDs. To configure a pin as an output, we use the pinMode() function, which sets the pin’s direction as either input or output. pinMode(pin, mode) - This function configures the specified GPIO pin as either input or output.
Understanding Physical Design of IoT Devices by controlling LED The physical design of an IoT device requires creating a complete electrical circuit from a controller pin to a ground source. Resistors are mandatory in physical design to manage voltage levels and prevent hardware damage. Device actuation Device actuation is the physical process where these systems convert digital control signals into real-world mechanical, thermal, or optical actions. The method of taking a digital command from a processor and driving a physical change in the environment. Signal Conversion: Translates low-voltage electrical pulses into higher power or physical motion using drivers or amplifiers. Common Examples:
Step 5: In the Arduino IDE click on the upload button to compile and download the code into the Arduino UNO. When successfully downloaded, the code will start running. Step 6: Observe and control LED by delay(). Observations: Pins that can be programmed to either read data (input) or command hardware (output).. Observation Table: Conclusion: An application was developed using Arduino for controlling an LED through GPIO pins showing connectivity of the physical design of IoT devices and device actuation successfully. Peripheral Arduino Pin LED Cathode (-ve) GND LED Anode (+ve) Resistor + D 13 Time (in milliseconds) LED State 999 OFF 1000 ON 2000 OFF
Viva Questions: