Little motor by cam and follower feet
I wanted to create a mini robot like the one in the video. Just as a funny little thing that you can make movements and colorful lights easily with.
A mobile app that sends data to the Arduino through bluetooth
Arduino IDE to program the board
Fritzing for drawing the schematic
Bluetooth module
Arduino Uno
DC motor
220, 1000 ohm resistors
Single channel relay
RGB LED
Wiring the actual components
Full circuit schematic
DC motor
RGB led
Test of full system
Defining a variable for each of the outputs
Setting the pinmode and turning everything off at the start of the code
Circuit implementation
Chaning the state of each of the output pins based on the data the Arduino receives from the Bluetooth module in a nested if.
I first tried powering the motor directly from the Arduino. ستر ربنا it didn't work, I guess it is because the motor was trying to consume a greater current than that the Arduino can provide. I searched again for the relay connection and rewired the motor to get its signal from the relay as an intermediary and it -surprisingly- worked!
I asked the instructor in the random review about the weird behaviour, Asker explained that the technical problem was that the Arduino can't directly provide the motor with a high current. That's why we need the relay as an intermediary, it receives a small current from the Arduino and allows out a big enough signal to power the motor.