I see that children nowadays are excited to learn more about new technologies , so I wanted to make them know how a smart home be like and we can reach using "coding" . Taking the advantage of their love to tiny furniture , I making a small smart home for them to play with and learn from ♥.
I have used those softwares to help me design my project so that I can fabricate later.
I used fusion to design the shape of the home , then used laserCAD to define power and speed values.
I used Cura APP to slice the furniture files that I have downloaded from www.thingiverse.com/
cure App
laserCAD
Fusion App
I started with drawing the sketches for each part taking in mind the mounting of each electronic component I'll use (I got the dimensions from the real components I have) , Actually they were 12 sketches.
Then I started extruding each sketch of them to a new component , and I used Joint option to make all components appear in a 3D shape.
Finally I've downloaded the components from grabcad.com/ and mounted them in the 3D design to see the final shape.
All Sketches
Back
Higher floor
Second floor
Lower floor
Keypad holder
Door
Lower limiter
Higher limiter
right and left Upper cover
Garage door
Left side
Right side
All Components
Back
Second floor
Lower floor
Higher floor
Right side
Left side
Door
Lower limiter
Higher limiter
Top of home
Garage door
Final Design
Using Cura To Slice
I have used Cura APP to Slice All the furniture I have downloaded .
I made them all to be 5g and with no supports and with 0.3mm layer high.
Actually ,I printed 11 files.
Black filament
2.4mm white wood
Laser cutter machine
3D printer machine
I used laserCAD APP to set cutting to speed 15 and power 75, also I set engrave power to 50 with speed 300 to write "welcome", "faten" and the girl shape.
I had wooden sheets of 60*40 cm ,so I put parts to be fit that size .
I have noticed that the machine started with the engraves then it did all the cutting parts.
My whole system can be divided into 3 parts:
Keypad as an input device and servo as an output device to open and close the door.
DHT sensor as an input device and a fan as an output device so that the fan opens when temperature is greater than 26 Celsius degree and closes when it's equal or lower than 26 .
LDR sensor as an input device and LED's as output devices so that when there is light around the LED's dim so power is saved and when there's no light the they shine.
Arduino Uno and it's cable
Some male-female and male-male wires
Breadboard
Servo motor
3*4 Keypad
2 LED's
DHT Sensor
5V DC Brushless FAN
LDR Sensor Module
for the power management:
I have searched for every component how much volts it needs and found that the 5V adaptor is enough so I can use the adaptor or the Arduino power.
acinfinity.com/pages/hvac-setup/voltage-current-and-wattage.html
5V Adaptor
Preparing For The Main Code
Before writing the main code we have to import all libraries we need , so I imported for Keypad and Servo. We also need to define all the variables we may need : like defining key buttons, digits (which will accept what is entered), readings from sensors.
After that inside the void set up() ,we need to define all the Arduino pins that we need and define the speed of sending data using Serial.
The third and final part is writing inside the void loop() , we write here the things what we need to be repeated.
We get the password and put each digit to it's suitable variable (with the help of a counter).
After entering the password and storing it in variables , it's time to check if it's correct or not .So I used switch case to check if it's "3456#" or there is a problem .
Finally, we set variables to NULL to be able to get another enter from the user.
We receive the sensor readings in a variable from an analog pin, then we use mapping to be able to control how shining the LED's are according to the sensor reading.
DHT With Fan
We need to get humidity and temperature using DHT and store that in variables then we use if condition to check if the temperature is greater then 26 C OR humidity is greater than 30% . If so , we will open the fan . If not, we will close it.
After I have made sure that the first part is functional , I add the second part wiring and upload it's code to check, Finally the third wiring was added and checked.
After I have checked all the parts, I found all the wirings were done and it was time to add all the codes in just one file.
Keypad with servo
LDR with LED'S
DHT with fan
Final shape ♥
To the left is my first design for the home and as you can see the garage door (complete feature) was at the bottom, but my instructor didn't like this and asked me to make it up to act like a real door opened with servo.
When I was designing on fusion360 I was making a repeated mistake which is copy and past bodies not sketches , which leads later to : when I make an edit in one body the other is being affected as we can see in this photo (making a hole in one copy affect the other) .So, my instructor advised me to open a new project on fusion360 with no body copy.
If I had more time I'd close the upper floor from the two sides so that no wires could appear only the furniture can be seen.