I am always out of the house, and when I come home I am tired and too lazy to turn on the lights and the fan because I come back tired, so I wanted to turn them on the phone while I am sitting comfortably, and I got the idea from here .
For Electrical Design
Tinkercad Software for designing the electric circuit
Materials :
1- Breadboard and Jumpers to connect the components.
2- Bluetooth Module.
3-Arduino UNO.
4- Arduino Cables.
5- Led.
6- LCD Screen.
7- Fan
8- Relay
Arduino Uno for implementation using Arduino board
Bluetooth Control android application.
Relay
Arduino UNO
LED
Jumpers
Adaptor (9V)
Arduino Cable
Breadboard
Crocodile Wires
Bluetooth Module
Fan
LCD Screen
Final Code using Arduino IDE
Definition of libraries.
Define Relay Pin
Initialize LCD.
Setting Relay as Output and starting Serial Communication.
Initializes LCD and displays "Smart Control" for 2 seconds.
Clears LCD and shows "Device OFF".
Check if serial data is available.
Reading Character
If it, '2' Turns ON the device (Relay HIGH) and displays "Device OFF" on LCD.
If it, '1' Turns OFF the device (Relay LOW) and displays "Device ON" on LCD.
The circuit is turned off.
The circuit is turned on.
Hardware Test of Wireless Device
I worked with my friend Sarah on an IOT project, and my friend Arwa and I also worked on a robot arm project to catch fish.
The nice thing is that they are both from the architecture department, and I am not the best person in the field of programming, so we were searching and solving the problems we encountered in the code.
The First Challenge:
The problem:
When I uploaded the code on Arduino, an error happened.
The reason :
I forget that I connect RX and TX of the Bluetooth Module.
The solution:
I remembered that I should remove RX and TX from Arduino, and upload code.
The Second Challenge:
The problem:
Can not find Bluetooth and Relay Module directly in Tinkercad
The reason :
No module in library of Tinkercad
The solution:
Search and find examples, then design the circuit on it.
I learned more about coding and IOT , and I went to learn about functions and used them in the project, and I learned more about controlling the outputs, and thus it will help me measure the moisture in the soil.
The coolest thing of the week is that we did an IOT project.
Assembling and programming the Arm robot to catch fish