The inspiration :I think about making a flower lamp with variable colors
There will be a song for each color
The source of inspiration : https://www.pinterest.com/pin/12033123998914666/
Tinker cad icon
Arduino IDE
Arduino UNO
bread board
RGB
buzzer
jumper wires
bluetooth module
Software
Tinker cad : to simulate the circuit before connecting it to avoid any errors in the circuit connection
Arduino IDE: makes it easy to write code and upload it to the board.
Arduino Bluecontrol: to control the lamp with the mobile
Materials
Arduino UNO: It can be programmed to control the electronics ,Like the buzzer tones
small bread board & jumper wires :Wires the components together
Buzzer : for music
Bluetooth module :to control the lamp with mobile
RGB: for lighting
Thinking
1-Start with brainstorming and detecting the code and components I need
2 OUTPUTs: RGB & BUZZER
Tinker cad circuit
1-start to simulate the circuit on tinker cad before wiring it in real
2-The connections are :
Arduino UNO : connect the Arduino GND with the -ve side one the breadboard
RGB(OUT PUT 1)
-Ground (black wire)
-pin 9(red wire)--red light
-pin 10 (Blue wire )--blue light
-pin 11(Green wire)--green light
_GND (Black wire )
Buzzer(OUT PUT 2)
-Ground (Black wire)
-Pin 8 (Purple wire )
Bluetooth module
VCC--5v
GND--GND
RX--TX
TX--RX
Coding
1-start to code each electronic components alone then merge the codes together
2-Buzzer songs: I download the library and change the print text
3-Use if codition to control the circuit
if the comingData =1 ---the RGB will light red and play hary potter song
else---the comingData ..........(repeat the step 3 times for the 3 colors)
Connections
Start to connect the components together like in tinker cad simulation
start with one light and one song and test them
connect the bluetooth application on the mobile
VID. & PIC.
https://drive.google.com/drive/folders/13-cKU-ZIh0L3SZsrQYVCABf9z1Idgl3v
The problem:
The buzzer tones not available to use
The reason :
-need specific library for the tones
The solution:
download the library from:
TINKER CAD
* In the process of designing the circuit of the smart planter and connecting the sensors together I will use tinker cad to simulate the circuit before connecting it to avoid any errors
* I will need the basic information about circuits connections and electrons to imagine the path of the electricity in the project circuit
ARDUINO IDE
*helps me in uploading codes on Arduino to control the electronics
Arduino IDE
Tinker cad icon
First time to use libraries and try diff. music on the buzzer🥳