Wireless Arduino Servo Control

Posted on  by

LewanSoul 24 Channel Digital Servo Controller with Wireless Handle. MeArm Robotic Arm USB Servo Controller, Arduino Compatible Programable ROBOTIO NANO Micro. Red / Orange wire of servo to 5V. GND from Arduino to GND rail. Incremental control of Servo(s). The Arduino robotic arm controlled by Xbox 360 Wireless.

  1. Multiple Servo Control Arduino
  2. Arduino Control Servo With Keyboard
  3. Arduino
  4. Arduino Servo Shield
  5. 2 Servo Arduino

Hardware components

Arduino UNO & Genuino UNO
×1
PS3 Controller
×1
Servos (Tower Pro MG996R)
×1
USB Shield
×1

Story

caption (optional)

Please respect the project and follow me.

Our members download database is updated on a daily basis. That's how much we trust our unbeatable service. Take advantage of our limited time offer and gain access to unlimited downloads for $3.99/mo! We currently have 419,000 full downloads including categories such as: software, movies, games, tv, adult movies, music, ebooks, apps and much more. Minecraft texture pack maker. Zedload.com provides 24/7 fast download access to the most recent releases.

Step #1

Put the USB Shield on the top of the Arduino.

Step #2

Upload the code to your Arduino.



Step #3

Plug the Bluetooth dongle in the USB shield.


Final Step

open the serial and wait until the Arduino will read the Bluetooth dongle then unplug it and connect your PS3 control to the USB shield and wait until the Arduino will change the mac address of the PS3 controller then unplug it an plug the Bluetooth dongle again and press the center button in the PS3 controller (HOME BUTTON(power on)) and the PS3 will be connected by seeing the number 1 on the controller is on. and on the serial it will tell you that the PS3 controller is connected and ready to use. then the angle of the servo will be showing in the serial.

Enjoy. Please Respect this project and follow me Youssef Emad. :-)

Read more

Code

Youssef Sabaa

Hardware components

Arduino Board (Nano)
×2
nRF24L01+ Transceiver Module
×2
nRF24L01+ Adapter
×2
MG996R Servo Motor
×5
4.5 Inch Flex Sensor
×5
Resistor 10k ohm
×5
18650 3.7V Battery
×2
18650 Battery Holder
×1
9V battery (generic)
×1
9V Battery Clip
×1
Jumper Wires
×1
Mini Breadboard
×3

Hand tools and fabrication machines

Gloves
String / Braid Line
Electronic Drill + Dremel Tool
Hot glue gun (generic)
Cable Ties
Super Fast Adhesive
Rubber / Tire or Spring
Steel Wire or Filament
Anet A8 3D Printer
Screws Nuts Assortment Kit

Story

In this project; 3D robot hand assembly, servo control, flex sensor control, wireless control with nRF24L01, Arduino receiver and transmitter source code are available. In short, in this project we will learn how to control a robot hand with a wireless glove.

3D Models of the Hand and Forearm

The hand is part of an open-source project called InMoov. It's a 3D-printable robot, and this is just the hand and forearm assembly. For more information, visit the official InMoov website.

Thanks to InMoov -- http://inmoov.fr/ - http://inmoov.fr/hand-and-forarm/

Anet A8 3D Printer is used in this project. Models were printed at the lowest qulity.

All 3D parts used in this project -- https://goo.gl/npCuQd

Assembly of Parts

Assembly of robotic arm parts is very detailed and complex, so you can visit the 'Assembly Sketches' and 'Assembly Help' pages in the InMoov website for more details on assembly. it is explained very thoroughly on the InMoov website. Or you can watch the video I shared.

When assembling the fingers, make sure the parts are oriented correctly before gluing. Keep all servo motors at 10 or 170 degrees before attaching the servo pulleys to the servo motors. When mounting the servo pulleys, keep fingers in the closed or opened position (according to your servo angles). Then wrap around the servo pulley until the braid wires or strings becomes stretched.

Connections of Hand (Receiver)

At this point, the servos should already be mounted into the forearm. To connect them to the power supply and Arduino, you can use a small breadboard.

  • Remember to connect the negative on the breadboard to the Arduino's GND. All the GNDs in a circuit need to be connected for it to work.
  • I recommend using the power adapter for the nRF24L01+ module. Otherwise, communication may be broken due to insufficient current.
  • If you encounter the these problems: vibration in servo motors, servo motors not working, communication breakdown and in similar situations, supply your Arduino board with external power (like USB).
  • If you used different pins than pins shown in below, change them in codes.

Connections of the Servo Motors:

  • Servo-1 connect to the analog 01 (A1) of the Arduino.
  • Servo-2 connect to the analog 02 (A2) of the Arduino.
  • Servo-3 connect to the analog 03 (A3) of the Arduino.
  • Servo-4 connect to the analog 04 (A4) of the Arduino.
  • Servo-5 connect to the analog 05 (A5) of the Arduino.

Connections of the nRF24L01 Module:

  • VCC connect to the +5V of the Arduino.
  • GND connect to the GND of the Arduino.

Multiple Servo Control Arduino

  • CE connect to the digital 9 pin of the Arduino.
  • CSN connect to the digital 10 pin of the Arduino.
  • SCK connect to the digital 13 pin of the Arduino.
  • MOSI connect to the digital 11 pin of the Arduino.
  • MISO connect to the digital 12 pin of the Arduino.

Connections of the Glove (Transmitter)

The flex sensors require a circuit in order for them to be compatible with Arduino. Flex sensors are variable resistors, so I recommend using a voltage divider. I used 10K resistor.

  • The main GND (ground) wire connected to all individual GND wires from the sensors, gets connected to the GND of the Arduino. The +5 V from the Arduino goes to the main positive voltage wire. The wire from each flex sensor is connected to a separate analog input pin via the voltage divider.

Arduino Control Servo With Keyboard

  • I soldered the circuit onto a small PCB, one that could be easily mounted onto the glove.You can build the circuit on the small breadboard instead of the PCB.
  • You can use 9V battery for circuit of the glove.
  • If you used different pins than pins shown in below, change them in codes.

Connections of the flex sensors:

  • Flex-1 connect to the analog 01 (A1) of the Arduino.

Arduino

  • Flex-2 connect to the analog 02 (A2) of the Arduino.
  • Flex-3 connect to the analog 03 (A3) of the Arduino.
  • Flex-4 connect to the analog 04 (A4) of the Arduino.
  • Flex-5 connect to the analog 05 (A5) of the Arduino.

Source Code of the Project

For the source code to work correctly, follow the recommendations:

  • Download the RF24.h library and move it to the Arduino libraries folder. https://github.com/maniacbug/RF24
  • After the flex sensors are connected o the glove, read and note the minimum and maximum values that each flex sensor has detected.
  • Then enter these values into the transmitter (glove) code.
  • Keep all servo motors at 10 or 170 degrees before attaching the servo pulleys to the servo motors.
  • When mounting the servo pulleys, keep fingers in the closed or opened position (according to your servo positions).
  • Then wrap around the servo pulley until the braid wires becomes stretched.

Arduino Servo Shield

  • Move all the fingers to the closed and opened position by checking the servo motors one by one.
  • Then get the best angles for servo motors (servo angles while fingers closed and opened).
  • Enter the servo motors angles and flex sensor values to the transmitter code as follows.

flex sensor min. value,flex sensor max. value,servo min. angle,servo max. angle

  • There is only one change in the receiver source code. Which flex sensor in the transmitter will control which servo motor in the receiver? For example, msg[0] sends the data of the x sensor-5. If you want to control the servo motor-5 with the flex sensor-5, you can do this by typing 'servo-5.write(msg[0])'.
  • If you used different pins than pins shown in circuit, change them in both codes.

I know it's a little complex the last part, but please do not forget: there is no hard! You can do it! Just think, research, trust yourself and try.

Read more

2 Servo Arduino

MertArduino

I have a YouTube channel and hoping to help people, share some of my knowledge.