The assignment for this week was to communicate wirelessly with a Smart Circuit via a Graphical User Interface (GUI) on my phone or PC.
I make a circuit that control servo motor via Bluetooth and display the angle on LCD display
I used Arduino IDE to write the code.
The used components are:
Arduino
LCD display with I2C
Servo motor
Breadboard
Bluetooth module (HC-05)
Jumpers
I didn't use Tinkercad because Bluetooth module (HC-05) and LCD with I2C doesn't exist in Tinkercad. So I directly start in coding and wiring
coding steps in Arduino IDE:
first I include servo library then start coding for only servo motor
then I include the LCD I2C library to display the angle
before setup function I include "Servo.h" and "LiiquidCrystal_I2C" libraries to use the servo and the LCD display
I create an object called "lcd" which will be used to control the LCD display
I create an object called "servo" for the servo motor
in the setup function I define the pins and begin Serial and LCD and define pin 9 for the servo motor
in the loop function I start with printing "Servo Angle: " in the LCD display
then I make condition to control the servo motor and another two conditions to control DC motor but I didn't wire the DC motor because I don't have DC Jack to terminal block converter and I need to give it more that 5 volt to work properly
then ended the with two condition to make the angle always between 0 and 180 degree
1
2
I was wiring during coding and this is the final shape of the circuit
In Saturday's session there was a hackathon, and we had to make a mini robot arm, me and my team work hard to make it and I got a lot of help from Sara Samir and Salma Sherif. I was focusing in coding and they were focusing in wiring, and we face some problems due to wiring and the power but the instructors help us solving this problems.
In this week we focus on the final project and I needed help and feedback from the instructors in my project. I cannot find the hamster ball (25cm) which will be the sphere and the body of my robot. and if I don't find it till Wednesday I will change the mechanism of the robot, I still need my teammates and instructor feedback, and I hope I can do well.
the only problem I faced was while uploading the code to Arduino while the Bluetooth module was working. There was an error and the code failed to be uploaded.
some of my teammates face the same problem, then one of the instructor respond and we understand the problem, we should turn off the power of the Bluetooth module (HC-05) or remove TX & RX pins while uploading the code to Arduino.
In this wee I learned how to communicate wirelessly with the components through Arduino.
I can use this skill to communicate with my robot wirelessly
The coolest thing was the Hackathon on Saturday session.
we made a mini robot arm then we make some games.
first game was fishing, we put a magnet on a string connecting to the hook of the robot
Second game was (X,O) and our team win the 1st place
Title of Media