To make this week assignment, first I went through Instructables and Arduino project Hub sites, and I got inspired by a traffic light project on Arduino project hub. But I added more input and output components as push button and buzzer.
Link of inspiration:
Tinkercad
Tinkercad is a free, web-based application that allows users to create 3D models, electronic circuits, and code blocks in an easy-to-use, beginner-friendly interface. Used for simulation also.
Arduino IDE
Arduino software system used to check and write the code for arduino then upload it on arduino board.
Arduino project hub
used for getting the assignment idea from it
Tools for the circuit on Tinkercad
I used Arduino uno, breadboard, three 220 ohm resistors, three different colors LED, push button and buzzer.
(Used the same tools for the physical circuit + jumber wires for connections.)
Started by adding the components I need in my workspace and also available in my electronic kit.
Then connected each component to the breadboard and to specific pins on Arduino.
connected the GND and 5V of the Arduino to the +ve and -ve rails of the breadboard.
connected +ve terminal of the each LED to one of Arduino digital pins ( red LED to pin 2 , yellow LED to pin 3, Green LED to pin 4).
then connected the push button on end to the GND and the other to digital pin 5.
connected the buzzer where -ve end to the GND and +ve to analog pin 6.
I added If - else condition as when the push button (pin5) is low (pressed) the LEDs turns on one by one with 2 seconds interval and the buzzer makes sound only when red LED or green LED are on.
I added the word (PULLUP) to the code of pin 5 (push button), so the Arduino give it power to be able to accept the signals.
Creating the circuit:
I made the circuit that i designed in tinkercad.
Then uploaded the code to the Arduino board and tested it
, it worked very well.
Challenges:
I forgot about the pullup thing so at first when I uploaded the code the LEDs and the buzzer was working automatically without turning off cause the push button wasn't getting any power and wasn't able to get signals too, but so I watched the LED with push button tutorial that's explained by instrucotrAskar again to fix this problem.
Will in this week I learned more about electronics and coding based on blocks and how to use Arduino, this will help me in using Arduino in my final project to control lcd screen, led matrix and speaker.
the extra session of this week was with Instructor Ahmed Sami was so mush fun🤩.
we learned about the PCB and its important and how it designed and used, we saw how it is milled by the milling machine as when milling a PCB, a milling machine uses a rotating cutting tool to remove unwanted copper from the board's surface, leaving behind the desired circuit traces. This subtractive process allows for the precise creation of complex circuits on the PCB.
also learned how to use the welding machine and weld the components to the PCB by using Tin wire.
Title of Media