In this tutorial, we will interface 3W Power LED with Surilli GSM. By connecting the signal pin of 3W Power LED to Surilli GSM pin 5, the 3W Power LED will start blinking ON and OFF after some period of delay, and will give off an illuminating light.
What Is a 3W Power LED Module?The 3W Power LED Module is a very bright LED that works on either 3.3 or 5 volts. It is bright enough to be used for illumination.
- Surilli GSM
- Connecting wires
- 3W Power LED Module
- Breadboard
Connections Between 3W Power LED Module and Surilli GSM:
- G (3W Power LED Module) ---> GND (Surilli GSM)
- + (3W Power LED Module) ---> USB (Surilli GSM)
- S (3W Power LED Module) ---> PIN 5 (Surilli GSM)
Make sure you have selected the right port, board and processor for the Surilli as shown in the picture below and it is programmable (compile and upload “Blink” from File>Examples>Digital>Blink onto your Surilli to check if everything is working fine).
STEP 2: The CircuitryThe circuitry is very simple. It's mostly the programming. Follow the figure below to set up your hardware.
Now you have completed setting up your hardware and Arduino IDE. Copy and paste the Arduino sketch given below into your Arduino IDE and hit upload.After it is uploaded, the LED will start blinking ON and OFF after a few periods delay and will give off an illuminating light.
Arduino Code
void setup() {
pinMode(5, OUTPUT);
}
void loop() {
digitalWrite(5, HIGH);
delay(1000);
digitalWrite(5, LOW);
delay(1000);
}
Play with the program to see how it reacts to different values and logic.
If you make something fun and interesting, do share it with our community.
That’s all for now. If you have any queries, visit surilli.io or contact our support. Stay connected with the Surilli family for more amazing stuff. :-)
Comments
Please log in or sign up to comment.