This week, we were assigned to Build and Program a smart circuit using an Arduino UNO which reads a signal from an input component to control an action component using Code Blocks
I decided to make a simple circuit made of a buzzer and a push button.
jumpers
Thinker cad
cardboarding
Arduino uno
buzzer
push button
First, assemble the components in Tinkercad.
its circuit consists of a buzzer and push-button when u push the button buzzer makes a sound
Then I write code in blocks that is based on an if else condition.
In the simulation, the buzzer kept ringing and I couldn't find the issue. I watched the videos again and noted the pull-up thing. It's the pull-up thing that keeps the buzzer from quitting while your hand is not on the push button.
Title of Media
At the end of the week session, we faced problems due to the wiring and the Arduino programming, but my colluege Salma kept us on track and figured out the bugs in our code and fixed them, and Sherif gave us a hand in that.
When I used the pull-up command in Arduino programming, the buzzer kept dinging, and I lost hope. In the end, I decided to change the output, but I said let's give him a chance again, until I found the answer under my leg. It was there all the time but I didn't notice.
Title of Media
Title of Media
I will use the push button in my final project as an input to the processing process.
It was really gratifying for me to do the weather forecast at home. I love this activity so much that I even keep it running until the next day.
in cold mood
in hot mood