![motor arduino motor arduino](https://i.ytimg.com/vi/XP044wTL_to/hqdefault.jpg)
#Motor arduino Bluetooth
We'll use the same Bluetooth Terminal app to send different commands and control these motors likewise. Servo Motor with metal/plastic gear 10 Kg-cm torque. Metal Geared DC motor with 3 Kg-cm torque and 100 RPM using L298 Motor Driver. The following command on the receiver side will get the data from the transmitter, and after mapping the data to 0-180, we will move the servo. BO DC Motor with plastic gears using L293D Motor Driver. In the loop function for the transmitter, we read from the joystick module and send the value at the address we set earlier. Then we set the power amplification range to minimum because both our modules are closer to each other.įor the receiver side, we used the following command and set the module to receive the data from this address. In the setup function for the transmitter, we set the address where we will send the data. This address can be any five-letter string. This address should be same on the transmitter as well as receiver side. After that, we initialize the address where we will send and receive the data. Then, define the pins where we have connected the CSN and CE pins of NRF24L01. Make the connections for the servo motor with Arduino as follows:įirst, include the libraries for the NRF24L01 and the servo motor. On the receiver side, the connections for NRF24L01 with the Arduino are same as those made for the transmitter side. HOR of joystick module to A0 of Arduino.VER of joystick module to A1 of Arduino.GND of joystick module to GND of Arduino.VCC of joystick module to 5V of Arduino.Then connect the joystick module with Arduino as follows: Connect the MISO pin of NRF24L01 with pin 12 of Arduino.Connect the MOSI pin of NRF24L01 with pin 11 of Arduino.Connect the SCK pin of NRF24L01 with pin 13 of Arduino.Connect the CE pin of NRF24L01 with Pin 7 of Arduino.Connect the CSN pin of NRF24L01 with pin 8 of Arduino.
![motor arduino motor arduino](https://i.ytimg.com/vi/IzFuvHrclCo/hq2.jpg)
Connect the GND pin of NRF24L01 with GND of Arduino.Connect the 3.3V pin of NRF24L01 with 3.3V of Arduino.Make the connections for the transmitter side with the Arduino as follows: The connections are a bit lengthy, so I will explain the connections for transmitter and receiver separately.