I am interested in smart desk lamp and i want to make a smart desk lamp for my own work as it is very expensive.
his week I choose to try a relay module and a piezo as I faced problems with relay the weeks before .
It is an open-source Arduino Software (IDE), used it to makes it easy to write code and upload it to the board.
TinkerCad
for the wiring diagram
mobile application (Arduino BlueControl)
to send data for Arduino using Bluetooth
I used :
-Relay , to control with bulb
mobile application
- piezo
- light bulb
-male-female wires :to connect components with Arduino.
start by defining pins of components and a variable to save data on it called (incomingdata)
begin the serial monitor and define outputs components in the void setup
putting if condition if we press 1 on app Arduino sends signal to piezo when pressing 0 Arduino stops sending signal to piezo
if we press 2 on app Arduino sends signal to relay (bulb) when pressing 3 Arduino stops sending signal to relay (bulb)
connect to Arduino
after collect my components , I start to connect components to Arduino
-- Bulb to relay as shown in picture
--Piezo attached one leg with one digital pin and the other with the ground
connect Arduino to laptop using USB cable and upload code and control with GUI app
GUI app
step one connect to Bluetooth
step two buttons settings
step three control
I face a problem with rx and tx inlet and osama advice to restart the Arduino and replace rx and tx pins after searching it works .
This week I have a courage to make my final project
this week skill is to contribute all the knowledge i have in the weeks before to make the project.
Title of Media
Title of Media