Week # - 8

Smart home system

Ideation

when I was watching a video for a smart home maket that I made before I was using end-user devices made by Wulian brand

so I decided to make a smart home system to open certain remotely using an Arduino and Bluetooth module and servo motor to open my curtain and a relay module to turn my room light on/off

Toolchain

Arduino uno

9V battery

breadboard

Electric wires

Micro servo

relay module

bluetooth module

Preparation Process

Tenkercad

I used Tinkercad to simulate my circuit before wiring it physically

Tenkercad

Tenkercad

my code

  • at first, I define incoming data in a variable of char kind

  • and also define servo name as (s1)

  • and add a definition for inputs and outputs in the void setup

  • and in the void loop, I used while to avoid serial intrrupt data

  • and I used the if condition to command my Arduino to take action based on the if condition and the number impeded at the incoming value

Inputs

1*Bluetooth module

2*Smart phone

Outputs

1*Relay module to control light on or off

2*Servo motor to push on my curtain switch to open or close it

Final Project

Assignment Design Files

Community of Learning

In the first place youtube platform, slack community troubleshooting

Devolpment

in the next phase, I will add astepper motor to my system to make it compataple ass posipole

this an example of a srepper motor mounted to a window curtain

Overcoming Challenges

stepper motor not supported in tinkecad

*so I add a sevro motor to to control the physical switch of my window certin

serial monitor send not allowed

*if you connect an Arduino RX pin to a Bluetooth module TX pin at this case you cant send any command using

ide serial monitor

*the solution is to disconnect the Bluetooth TX