Week 08

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 inspired from emergency bracelets with an integrated emergency call button for elderly people, so they can call for help using bluetooth.

The Device depends mainly on 4 buttons:

1- Blue LED means they need something not urgent

2-Green LED means they need something a bit urgent

3-Red LED means they need something very urgent.

4-Buzzer as an alarm.

Tool Chain

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

For building the CIRCUIT

1 . Software:

TinkerCAD, for circuit simulation.

Arduino IDE

Arduino Bluetooth Control

2 . Tools:

Breadboard

Jumper Wires (male-male)

Resistors

Arduino Uno - R3

Bluetooth Module HC-05 , Serial TTL

Piezo Buzzer

RGB LED_Clear_Common_Cathode

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?

  1. Designing the circuit on Fritzing:

-The Device parts:

  • Breadboard.

  • Arduino Uno R3.

  • RGB LED common cathode.

  • Bluetooth Module HC-05 , Serial TTL

  • Piezo Buzzer.



  • Piezo Buzzer.

  • Wires

  • 3 resistors (1k ohm)

  • 3 resistors (220 ohm)

-Connections:

  • Connect the three LED anodes to three 330ohm resistors then Arduino pins 3,5 and 6 . The LED Cathode to the GND.

  • Connect +ve buzzer terminal to pin 9 and -ve terminal to GND in Arduino.

  • Connect two 330 ohm resistors with 1k ohm resistor to create a voltage divider to limit the voltage from the Tx of the Arduino 5V

  • Connect the Tx of the Bluetooth module with the Rx of the Arduino.

  • Connect the 5v and ground pins of the Arduino to the breadboard.

Circuit Wiring Diagram

-Code:

  • Define that incoming data is the value that will come from the Arduino control.

  • Void Setup:

Code Serial begins with value 9600

Define Outputs, LEDs pins (3,5,6) and Buzzer (9).

  • Void loop :

While serial avaliable =0 a declaration that all outputs won't work without giving them a certain value

Setting values for each output : B1 : Blue LED , B2 : Green LED, B3 : Red LED work B4 : Buzzer.

  • Delay 1 sec after every condition in the loop.

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?

1.Building the circuit on breadboard:


Connecting RGB LED and the Buzzer

Connecting the Bluetooth Module

Voltage divider

The Whole circuit connections

2.Open Arduino IDE and write the code and verify .


The Code

3.Connecting the Arduino and testing the device.

  • Before uploading the code we hace to remove the TX and RX pins from the arduino and connecting them after uploading.

Testing the device/code using serial monitor.

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)

  • After connecting the circuit the bluetooth device didn't work i tried to pair the module with mobile and it wasn't reachable.

  • I connected to the VCC of the Bluetooth module and the GND and TX and RX direct to the arduion without divider circuit to make sure the module itself is working, but it doesn't work.

  • Rawan and Sehetry Helped me alot in this week, thanks to them :')

Final Project

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

  • Using Arduino IDE and learning about programming.