This week assignment idea was to Program an Arduino UNO to read a signal from a single input component ( Ultrasonic Sensor) to control a single action component (, Buzzer, LED) using Code Blocks
I was inspired by this game ( LED distance indicator )
Tinker CAD for simulation ,designing my project and i used tinker cad blocks to write the code
Electronics components
Jumper Wires
Mini Buzzer
7 LEDs
Bread board
Ultrasonic sensor
Resistors
Arduino UNO
First I used Tinker cad to simulate the circuit and write the code blocks, before starting Using the physical components on Arduino UNO board
I used the bread board to fabricate / implement my project:
The Brain : Arduino UNO
I used for input components ( Ultrasonic sensor)
I used for output components ( Mini buzzer - 7Leds)
- jumper wires
- 7 Resistors
- First, I Used the physical components and Arduino UNO board to build and control the project
- Secondly , I used Code Blocks Primarily to write the code in TinkerCad. Then, copied the Arduino C code into Arduino IDE, and Uploaded it to the Arduino Board
At first , I was having a problem in using Ultrasonic sensor and how to use the code blocks , then Menna helped me in the midweek session to understand the differance between the digital and analog and the difference between the input and output
When she explained to us how the code itself is written , it was extremely helpful to understand the whole concept next .
I was having a problem with wiring the temperature sensor (LM35) with Arduino after I connected it got very hot , so menna told me that i was wiring the pins in the wrong way and finally it worked :).
I have learned how to use Code Blocks Primarily to write the code in TinkerCad., copy the Arduino C code into Arduino IDE, and Upload it to the Arduino Board
I have temperature sensor (LM35) in my final project I have learned how to wire it with the Arduino using code blocks.
This week was easier and more comfortable than the last week I got more familiar with electronics, I understood more things that I couldn't understand the last week, It becomes easier to wire and deal with more than one component .
I made this week activity, Actually it was very interesting and how it was easy to wire the components with Arduino and make things smarter .
I have learned how to :
How to install Arduino IDE, Installing drivers, and Connecting Arduino Board
Control DC motor: Setting DC Motor Direction and Speed - Using L293D Motor Driver
Controlling DC motor: Setting DC Motor Direction and Speed - Using L298N Motor Driver
Control a Buzzer with an input signal from a Microwave sensor
Control an LED with an input signal from a temperature sensor (LM35)
Program the Arduino board to control one 7-segment display so that it counts down from 9
Program the Arduino board to control one RGB LED so that it lights up with the following colors in order: Red, Blue, Green, Purple, Orange, and White
I tried to Program The Arduino board so that a servo motor (connected at the output) will change its rotation angle in correspondence to the changing value of a potentiometer (connected at the input)
I tried Program the Arduino board so that an LED (connected at the output) will be OFF when an LDR sensor module (connected at the input) is exposed to light, and the LED will be ON when the LDR sensor module is not exposed to light .
I tried to Program your Arduino board so that the color of an RGB LED (connected at the output) changes when an object comes at varying distances from an Ultrasonic sensor module (connected at the input) as follows: Green when an object is far, Yellow when an object gets closer, and Red when an object is very close.