Action - Reaction
Last updated
Last updated
The LED toggle application with a button is the most used project for simple input/output project example. This project allows the user to control the with the by simply toggling an LED.
About Tools and Materials:
()
Project Key Components
Project Key Features
A Basic Physical Interaction
The application supports a toggle functionality, allowing the user to press the button to toggle the LED. This provides a simple physical interaction with project.
Visualizing the Input
Getting Started
Hardware Setup
Make sure that the SMD is powered and all connections are correct
Run the Script
Toggle LED State
()
()
()
()
The SMD acts as a bridge between the script and the modules. It is responsible for interpreting the commands sent by the script and translating them into actions that read input from the button module and toggle the .
The is designed to emit different colors, allowing users to experiment with different lighting effects.
The is the physical interface for receiving input from the user. The input can be used to trigger the script in an encoded way.
The SMD library is at the heart of the application. It communicates with the SMD using a specific communication protocol, sending commands to read the and toggle the LED on the .
The serves as a visual indicator of the current state of the . When the button is pressed, the LED turns on; when the button is not pressed, the LED turns off.
Connect the SMD to the PC or Arduino board using or .
Connect the and the to the SMD using an RJ-45 cable.
Run the script on your computer. This will establish communication with the SMD and initiate control of the and .
Press the button on the to toggle the RGB LED. Observe the visual feedback of the LED.