Week 8- 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)

This week's project is a remote controller via Bluetooth

controlling a fan and monitoring its speed

with 7 segments LED and colored LED

the purpose of the project is to make fans remotely controlled


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 - hc-05 - h bridge module - motor - jumper wires - breadboard - led - 7 segments led




the inputs

  • bluetooth module


the outputs

  • H-bridge module

  • 7 segment

  • LEDs

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


firstly attach 7 segments led to the breadboard


then add resistors to its legs

connect the resistors to Arduino pins and com also

add resistor to led indicator



connect LEDs to the breadboard and make COM ground connected with the resistor in the previous step




connect LED pins to the A rduino






connect h bridge enable pin and in1 & in2 to the Arduino

connect the motor to the H-bridge then wire power connection





TIP :(don't forget to wire com ground )

the last step in Hardware wire the Bluetooth module power and TX to RX, RX to TX


the coding :

in this project I used functions to make it easier for me

so void one is to : turn red LED on and display (1) on 7 segments , run motor on speed 1

void two : turn yellow LED on and display (2) in 7 segment , run motor on speed 2

void three :

turn green LED on and display (3) on 7 segment , run motor on full speed

then set inputs and outputs pins and serial monitor settings


the loop : when I click 1 on the app call function (one ) that turn red LED and display 1 and run first speed


when I click 2 on the app call function two that turn on the yellow LED and display 2 and run sec speed

when i click 3 on the app call function three that turn the green LED and display 3 and run full speed


(in all function the code show me the serial num that i sent )

when i click num 4 on the app it turns everything off

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)

one of the challenges in this project was the fan it didn't run even at full speed at 5v

after some tinkering I remembered that I should wire com ground of all the components, after wiring the gnd that didn't make a significant difference and the fan ran very slow so I had to change it with the DC motor I used

in conclusion: the problem with the fan was the common gnd that I forgot to wire and after testing the fan with direct connection to the power source also was slow so the issue was also in the fan.

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 , also learned how to make functions and call them again in the code

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

week8.m4v

Assignment Design Files