Smart System
I like to control everything from my phone while laying in my bed, I wanted to make something that controls a lamp and a DC fan from my phone.
so the idea of the assignment is to control anything remotely using Bluetooth and my phone.
Fritzing for drawing the circuit diagram.
arduino ide for uploading the code on the board.
Arduino Uno board based on the ATmega328P
Breadboard to connect all components on it.
Relay module to control the 9v lamp.
lamp.
Bluetooth Control android application.
Jumpers to wire all componets
Bluetooth Module to communicate with the mobile application.
fan/5v fan.
Adapter 9v for powering the circuit.
schematic
I used fritzing to draw the project schematic and implement the circuit to check the wiring.
So, I started to connect components like the Bluetooth module, Lamb, Relay module, and DC fan.
Bluetooth: connected its VCC, and GND to the breadboard and RX pin to TX in Arduino, TX pin to RX in Arduino, and make a simple code that checks the functionality of the Bluetooth.
the main function of the code is to get a char from the user and according to the input, something happens like turning on/off the lamb or the DC fan.
I started to connect the components as the schematic. I connected the Bluetooth, relay, Lamb, and DC Fan to the breadboard and Arduino.
And here it's my final project working as I planned.
controlling a lamp and a fan from my phone.
I didn't find the lamb, DC fan, and relay module in fritzing.
so I searched about it on google to get it and I found it here.
so I downloaded it and imported it into my project.
Dealing with the Bluetooth module would help a lot and give me new ideas, like controlling my game through my phone.
This Week, We made a robot arm that hunts for fish
Great Activity, I enjoyed it with my team, Ahmed.