My Interesting DIY Project about igniter a Firecracker with Arduino and the BT Lab App
I’ll share a fun DIY project using Arduino and the BT Lab app in this article. The project demonstrates how to set off a firecracker using your smartphone. We’ll be using an Arduino to make this project a success. I’ll explain each step and include diagrams to guide you. Let’s get started!
A Simple Idea for this Firecracker Project
First, let me explain how the process works. I’m using the BT Lab app from Ehicode (available on the Play Store) which connects to an Arduino Bluetooth module and sends commands to it. For this project, I used an Arduino Nano board, an HC-06 Bluetooth module, a relay module, a 3.7v 2A lithium-ion battery, and some wires.
Here’s how it works
after sending a command from the app to the Arduino Bluetooth module, the Arduino Nano switches the relay module. I connected a 3.7V (2A) lithium-ion battery to one side of the relay module’s switching terminal. Check the diagram below for a better understanding. I then connected another wire to the other terminal of the relay module.
Next, I soldered a 2mm copper wire to the other side of the battery. Now, I had two wires, one from the battery and another from the relay module. I connected a very small copper wire to the ends of these two wires, completing this part of the circuit. The small copper wire should have a smaller diameter than the battery wires(I use a string copper from a copper wire ) because, when the relay switches and completes the circuit, this small wire heats up and glows red. I used this heat to ignite the firecracker.
The diagram is below
Below is the code used for this project. You can copy it and paste it into Arduino IDE.
char data;
#define relayPin 2
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
if(Serial.available()){
data = Serial.read();
}
if(data == '1'){
digitalWrite(relayPin , HIGH);
}
else if(data == '0'){
digitalWrite(relayPin , LOW);
}
}
How to make the switch for this project with BT Lab App
First, we understand the desired values of this relay's on-and-off. The on value is 1, and the off value is 0. You can change these values by modifying the above code. If you didn't download BT Lab app. Click the below button and download the BT Lab application. It is very useful for your next Bluetooth projects.
Download BT Lab AppNow you create a switch using the BT Lab app. First, open the BT Lab application and click the bellow plus button. Now you can see two options first is Add Switch and second one is Add Seekbar. Click the Add Switch button and Give a Name for the controller ( Eg: "Igniter" ) Next, add the on Value to 1 and the Off value to 0.
After that click Blue color Add Button. If you complete the progress correctly, you can see a switch in the Control panel.
Connect Bluetooth Module to BT Lab app.
First, you should turn on your Bluetooth Module and paired with your smartphone. Next, Open the BT Lab app and click the Connect Button in the top right in the app. If you didn't on Bluetooth in your phone. you can see a request about turning on Bluetooth on your smartphone. after you turn on Bluetooth click again Connect button. now you can see your Bluetooth module name and MAC. click your Module and connect it with the BT Lab app. Now you can Switch the Relay Module with the BT Lab application. Now you can switch relays and fire the Fireworks with your smartphone.
Tips: You should fix the circuit in a safe box or other safe area. because after igniter the firework it can damage your circuit.
The below video shows how I made that igniter using Arduino in Sinhala
I think you enjoy this project. Thank you for reading this article and exploring more knowledge with us.