Week 8

Garage Door 

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)

Communicate wirelessly with a Smart Circuit via a Graphical User Interface (GUI) on your phone or PC.

My idea this week was smart garage door controlled by GUI on phone.

I found a tutorial for a "DIY"ed one for a doll house and decided to do it 

Tool Chain

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

Make sure to search for the datasheet of the components before connecting it to know its specifications( safe range of voltage and current intensity and connections)

Circuit Components:

dc geared motor 

led light (output)

220 ohm resistor

breadboard and jumper wires

Arduino Uno (brain)

bluetooth module

Arduino IDE

Arduino bluetooth control

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?

1st. we designed the circuit on tinker cad using:

then we made the actual circuit with same wiring and components and add the bluetooth module connecte the RX of the module to TX pin of the Arduino and the TX to the RX

so first we had to add character the data coming from the serial read then in the void setup we had to serial begin Notice in Serial.begin() we pass in the value 9600.  This is called the baud rate – it sets the speed of the serial communication, and represents bits per second. Both devices must have the same baud rate selected for Serial Communication to work.

then we mention the pins used and its state ether input or output

the three pins are analog output.

last the void loop

first we make the incomping data character take the serial read from the monitor

then we add the if condition the device have two modes only 

1st. the green led and the motor is off and the red is on which is the default.

2nd. the green led and the motor is on and the red is off when the serial read is 1

so we needed only one condition if the serial read is 1 then pins(9,10) are HIGH to turn the components onand pin(11) is low , else pins(9,10) are Low and only pin(11) is high.

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?

then we build the actual circuit and insert the Bluetooth module.

circuit with bluetooth.mp4

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)

there were something weird with the Bluetooth module it works for a while then it doesn't without changing anything that was weird but we changed it

and then it worked but it keep disconnecting but that was i powered the Arduino with 5v in vin pin which need 9v so that wasn't enough so we connected it to the 5v pin and all is good.

last the arduino didn't accept the code arduino ide starts uploading then it lasts forever or it just show error message, we tested my arduino with different laptop as well as the cable we uninstall the software and reinstalled it but nothing happene then ''Mohamed Rabie'' recommended to instal an older version of the arduino ide(1.8.18) and it worked it was that simple.

Assignment Design Files