I Worked on two Project Ideas:-
The First Assignment device is (Smart Alarm device, With 3 LEDs (Green, Yellow, and Red )changes when an object comes at varying distances from an Ultrasonic sensor module When anybody is away from it the Green Led will Emit light. When anybody is in a moderate distance from it the yellow Led will Emit light and a buzzer will emit a sound. When anybody is in a close distance from it the yellow Led will Emit light and a buzzer will emit an alarm sound. )
The Second Assignment device is (Simple Piano which changing its tone due to movement of the wiper of a potentiometer )
I care about this idea: to know the basic principles of electrical circuits and electronics which will help me Creating simple Smart Devices that replicate specific functions or perform cool functions. and it's good to make an alarm device and simple piano.
I Searched on the Internet about smart Arduino Device Ideas, I Inspired by this Project:
https://www.soft-zilla.com/2014/07/arduino-project-ultrasonic-sensor-to.html
I had thought that It will be better If I changed the RGB Led and Connect Three Different LEDs With Buzzer Instead.
Components List For Project 1:- Components List For Project 2:-
I Used:-
Arduino Uno3 as a Micro Controller.
Ultrasonic Distave sensor as an Input Component
Piezo and LEDs as Output Components
Resistor to set the current of the LEDs (Proppant Current)
I Used Tinkercad as the Software of Design and Simulate as Tinkercad has many features such as:
Tinkercad is very easy to use. Most of the 3d design software have steep learning curves.
It is compatible with 3d printing. It is a proper tool that gives you solid 3d files needed for 3d printing.
Tinkercad is fun to use. There are tones of 3d models created by the community. You could share your designs or even collaborate on designs.
Tinkercad can simulate all the electrical circuits with all the components.
Design Process of the Project:-
I searched on the internet about the Sample project circuits Ideas
I imagined the schematic diagram of the circuit in my mind, then I sketched it using paper and pen.
I searched about the datasheets of all the components to know the (operating voltage and current) and to know to connect the Components together with the Arduino.
I opened the Tinkercad
I dragged all the components that I will use into the Working Area.
I Connected the 5v of Arduino to + on Breadboard and the GRD to the -.
I Connected The LEDs with the Resistors to the Breadboard and to the Arduino as it is on the wiring diagram for components with the Arduino board.
I Connected The Buzzer to the GND on the breadboard and Vcc with the Arduino.
I Connected The Ultrasonic Sensor as it is on the wiring diagram for components with the Arduino board. (VCC to +, GND to -, Trigger to 6 and Echo to 5)
I Coding the Arduino MicroController to make the Function of the Device
After finishing. I simulated the circuit to make sure that all is ok.
The Coding sequence and Logic:-
Set the (Reading of Ultrasonic Distance Sensor) as the Input Data of the Device.
Define the Input Data with (Distance)
If Distance > 100 cm the Green LED Will be ON
If 100 > Distance > 50 The Yellow LED will be ON and The Buzzer will emit a calm sound
If Distance < 50 Red LED will be ON and The Buzzer will emit an Alarm sound
Fabrication Process:-
I Used the Simulated diagram for components with the Arduino board to make it.
I collected all the parts that I will use to make the circuit device.
I joined and assembled the parts of the design together to show the final design of the project on the breadboard.
After making sure that all the connections are ok such as the Simultaed device on the Tinkercad.
I Connect the Arduino to My PC
I Opened Arduino IDE
I Uploaded the Programming code to The Arduino Micro Controller.
Start powering
Here we have a Smart Distance alarm Device which LEDs and Buzzer.
we supported each other to know how to deal with the Electronics and connections and use them, Moreover we helped each other with a lot of problems witch occurring during the connecting and design.
We supported and helped each other in The Coding Process
The instructors helped us on how to make the week Exercies Projects.
I had some problems with the internet connection and on Recording the Simulation from Pc Screen.
I had some problems with understanding how to connect the Sensors to the Arduino and The Coding Part , After research and (Try & Error) all became ok.
I learned how to:-
Program an Arduino to control a single action component (LEDs, Motors...etc), using Code Blocks
Program an Arduino to read signals from input components (Sensors, switches, and variable resistor), using Code Blocks
Differentiate between digital and analog signals and use them efficiently to program smarter devices
Understand how code blocks translate into Arduino C programming language
Tinker with existing code in order to achieve a different/desired outcome
After this week I learned how to design, Program, and make an Arduino read signal from input component (sensor, switch...etc) to control action component using Code Blocks.
Coolest Thin that i have learned is Coding With Blocks.
The Thing that I Will never Forget from this week is (Differentiate between digital and analog signals and use them efficiently to program smarter devices )
The diagram for components with Arduino board
The screen shot of your code blocks
The Tex Code
The screen recordings of your projects simulation in TinkerCad
The video recording of the complete project in action