Week 6- journal
Week 6- journal
The assignment for 6th week :
Building and Program a smart circuit using an Arduino UNO which reads a signal from an input component (Sensor, Switch, or variable resistor) to control an action component (Motor, Buzzer, LED...etc) using Code Blocks
I applied all process as the following with a consideration of instructions:
Inspiration (Relationship Circle) !
always we have who has especial effect on our mode, some one can make us talk more than usual or turn light on our faces! that is the circuit.
Idea!
Circuit as: the relationship range.
my hand simulates as: the effective Human.
Buzzer, RGB LED as: the effect of the relationship statement. (getting high and cheerful when NO.1 is closed, getting turn off, and dark when No. 1 is far.)
Software/Tools/ materials has been required for the project as the following:
Components:
Arduino- RGB LED - Nano USB Cable- 3 Resistors 220 ohm - Ultrasonic Distance Sensor- Breadboards - Buzzer-Plug wires - Power supply (5V)- Power Connector.
I designed the circuit depending on the sequence of the main idea, used the Tinker-Cad to simulate the circuit connections as the following:
Circuit Connections guide!
First I started creating the circuit on tinker-cad as I imagined.
I connected 3 components to the Arduino board, an ultrasonic sensor, and two action devices, an RGB LED and a buzzer.
The ultrasonic sensor has its power outsource (Power Supply 5V).
the RGB LEDs connected to the Arduino but passing to 3 resistors (220 Ohm) decreasing the current flow not to blowing up.
the buzzer was the simplest connect, Ground (GNB) and out put pin to Arduino.
I selected and arranged the code blocks depending on the sequence of the main idea, used the Tinker-Cad /code/blocks to simulate the circuit and the code blocks as the following:
Code Blocks
then I created the code by codeblocks in tinkercad as:
you getting Closed, So it worked heart! in Relation
Less than 10 cm:
I programmed the LED to shine red in closest distance.
the buzzer in its highest range (happy Mode).
Getting Colde, Average range, On the edge
more than 20 cm:
programmed the LED to shine Blue.
for the buzzer in its average sound.
switch off being far! Breaking Down
more than 30 cm:
the LED turns off in the fare distance.
the buzzer getting silent in the same range and parameters.
I connected the circuit as the following:
block+Text.
Copy code Text
open Arduino IED software: Past the code text in the white spacr.
Insert The Caple.
press tools, port, select the port.
verify the code. (Check icone).
press Upload.
The End but..............!
ultrasonic sensor has an error. also, RGB led gives only blue!!. I checked the simulation on tinker card, RGB gives changes its color, but the circuite works whatever the distances!!
I can use RGB LED as indicator for diffrent actions linked to sensors.
say bye with a nice smile!
waving manual and automatic task. Marwa was very active team colleague and smart.
we designed the circuit by tinker-cad and simulated the input/output actions by Blocks on tinker-cad too.
in manual Section: a potentiometer Servo motor, did not work in the beginning we bugged the circuit, and discovered that my Servo had an error, once we used the servo of Marwa it has been done!.
In automated section: we created a stand for the waver and hid the circuit behind it, but the surprise came from Ultrasonic Distance sensor, it did not work. seems as it has an error!