Week 7 - Journal

Ideation

Tell us about your assignment's idea for this week. Why do you care about this idea? What inspired you? (Please include images or links to sources of inspiration)

the idea is a smart home device that senses two things.

temperature/humidity , and sunlight

when it senses sunlight it activates automatic curtains to close and cover the window

and display the temperature and humidity for the user



Tool Chain

Which software/machines/materials did you use in the assignment? Why?

softwares:

Design/Preparation Process

Explain the design and/or preparation process of your assignment. How did you use the tool or software to design and/or prepare your assignment before fabrication/implementation?


The components of the project:

Arduino - ldr module - lcd screen - h bridge module - motor - jumper wires - breadboard


the inputs

  • LDR module

  • DHT module

the outputs

  • H-bridge module

  • LCD screen I2C

  • Geared motor

Development/Implementation Process

Explain the development/implementation process of your assignment. How did you use the machine/tool to manufacture or implement the design of your assignment?

the wiring:

wired the components to Arduino using the schematic shown in tinkercad


first attach DHT to bread board and wire power jumpers as shown and data pin to pin 3


then add LDR module next to DHT and wire power , digital output ( DO ) to pin 4 on arduino

add the sreen SCL to pin A5

SDA to pin A4

and power wires of course

H-bridge

wire in1& in2 to pins 6 and 7

ena to pin 5

and wire the power from an external power source



wire the motor to OUT 1 & OUT 2

the coding :

first included the needed libraries

and set variables

then set inputs and outputs pins and serial monitor settings

this part controls the motor which closes and opens the blinds

( if the sun is rising close the curtains )

the DHT part and defining its parameters and printing the atmosphere stats on the serial monitor

the final step is the LCD part tell Arduino to print temp and humidity on separate lines on the screen to be displayed at the same time

Overcoming Challenges

What kinds of challenges or problems did you face while doing the assignment, tutorials, or exercises? How did you solve them? Did you ask for help from an instructor or peer? Please provide a link to the tutorial or article that you used to solve your problem (if any)

the challenge this week was in the EOW session we had a problem (logical problem) in codding the project

the problem was a clash between the auto mode and the manual mode, that made one mode only work at the time

we discovered the problem when Menna our instructor mentioned that we need to separate the two modes to troubleshoot and find where is the problem and that really worked well


we solved the problem when adding if condition and else that separated each mode and wiped off the problem and the code worked flawlessly

in conclusion you should separate the functions if they have the same IN/OUTPUTS

to avoid clashes between them.

Final Project

How can you use the skills and knowledge that you've acquired this week in your final project?

the coding process learned me more about coding and how to think in the right way to get the desired result from code and how to write it in the right , and how to avoid clashes in multiple output functions

WOW!

What is the coolest thing that you've learned this week? What is something that you will never forget from this week?

Weekly Digest [OPTIONAL]

Tell us about any other cool things that you've made this week: in the Hands-on activity, tutorial examples, exercises, or any other cool mini-project that you tried out aside from the assignment.

final results

20220905_151148.mp4

Assignment Design Files