Communicate wirelessly with a Smart Circuit via a Graphical User Interface (GUI) on your phone or PC.
My little brother has this toy that operates on batteries and works without a controller. I wanted to combine with it the method of controlling using the phone
The described
This project aims to control the dc motor in RC car using mobile phone , when it operate the yellow led light up and in stop situation the red led light up
From my electronics kit
1- breadboard
2- "voltage source (9 & 5 volte)"
3- red and yellow LED
4- DC Motor inside Rc car
5- jumper wires
6- mobile phone
7- mobile app
8- 1k, 560 & 220*2 ohm resistance
9- Arduino uno
10- dc relay
Arduino ide
car toy
I didn't use Tinkercad because Bluetooth module (HC-05) doesn't exist in Tinkercad. So I directly start in coding and wiring
The circuit on the breadboaed without the enclouser
so i used fritzing software to simulation the circuit
power management :
1- i used 5 volt power supply to feed the relay which give the power to the dc motor
2- i used 9 volt power supply to feed the Arduino , and the Arduino gives the 5 volt to the LEDs
resistance management :
i used the 560 and 1000 ohm resistance with Bluetooth to have voltage regulation
Step 1 :
I assemble all the components to make sure of the connection method and I know the correct wire connection methods , This is an illustrative picture, not a real one. It only shows how to connect the bluetooth module only
Step 2 (plain text) :
i used mainly Arduino IDE for coding it uses C language
the Arduino process the code in parts :
First part defining used library's and used variables and pins numbers.
Second part is Void Setup the code included in this runes one time only.
here also you setup pin Mode on the Arduino for OUTPUT "action component" like a LEDs or motors
Third part: Void loop its the part of the code where you want it to loop and repeat itself
until stopped by something in the code itself otherwise it will loop for ever.
here i used If conditions for waiting serial " if (Serial.available()) "
also" Serial.read();"
Step 1 :
I assemble all the components to make sure of the connection method and I know the correct wire connection methods , This is an illustrative picture, not a real one. It only shows how to connect the bluetooth module only
step 2 :
We use IF-condition for programming based on "C" language
char incomingData = '0';
#define redled 8
#define yellowled 9
#define motor 10
void setup() {
Serial.begin(9600);
pinMode(redled,OUTPUT);
pinMode(greenled,OUTPUT);
pinMode(motor,OUTPUT);
}
void loop () {
while (Serial.available() == 0);
incomingData = Serial.read();
Serial.println(incomingData);
if (incomingData == '1') {
digitalWrite(greenled, HIGH);
digitalWrite(redled, LOW);
digitalWrite(motor, HIGH);
}
else if (incomingData == '2' ) {
digitalWrite(greenled, LOW);
digitalWrite(redled, HIGH);
digitalWrite(motor, LOW); }
else {Serial.println("invaled value");}
Serial.println("you enterd: ");
Serial.println(incomingData);
}
inputs
The brain
Step 1:
remove the old wires in the RC car , and take two terminals from dc motor to control it (The DC motor is the silver thing shown in the figure )
Step 2:
but two leds in the roof of the car to be the output of Arduino when it stop and operate
step 3 :
integrate all the wires on the breadboard a test the led at first without the motor
step 5 :
add the relay to the circuit to feed the dc motor with 5 volt separately without using power from Arduino .
step 6 :
test and lock for any bugs
This week I worked on a project with Hussein Abdel Rahman and it helped me a lot in understanding many points related to connecting the bluetooth module and why we use the voltage divider theory because when we use the bluetooth module the voltage must be 3.3 volts on its ends
My Arduino voltage regulator burned also ,This prevents me from completing the work
in the final project, at complete the user features I aim to use mobile phone to control RC car
so I partially made a phone control this week , This will help me a lot in the final project
in this week i complete about 60% of the final project idea and i know from where i will start in the final project
Title of Media