The prerequisite instruction introduce the method how to build dual joystick transmitter(Tx) to control Tracked robot via NRF24L01 Arduino 2.4G wireless module.
More information : www.instructables.com
Materials & Tools
Materials
1. 1 - Arduino controller - Nano
2. 1 - NRF24L01+PA+LNA SMA Antenna module
3. 1 - Socket adapter for NRF24L01(For protect & stabilize NRF24L01 module)
4. 1 - LED 5 mm.
5. 1 - Resistor 1 kOhm. 1/4 watt.
6. 1 - Capacitor 0.1 microF /50V.
7. 1 - Capacitor 1 microF /50V.
8. 1 - Capacitor 100 microF /50V.
9. 1 - Diode 1N4001
10. 1 - 7805 IC Regulator 5V.
11. 2 - Joystick for Arduino
12. Dupont cable.
13. Female pin header
14. Electrical wires
15. Heat shrink tube 1.5 - 10 mm.
16. PCB - DIY circuit board
17. Battery Alkaline 9V. or Lipo 7.4 V. 500-1000 mAh
18. Velcro tape
20. 2 - pairs of JST plug
21. 1 - Old toy remote/Electrical box(For making transmitter body)
Tools
1. Soldering gun.
2. Soldering wire.
3. Soldering paste.
4. Screw driver.
5. Plier.
6. Hot glue gun.
7. Electrical Drill.
8. Files.
9. Plastic cutter.
10. Miscellaneous screws ,bolts and nuts.
Parts & DIY PCB Installation
Modify old remote body for installing electrical parts.
DIY PCB Building
Arduino Nano pin to Joystick
Pin No :
A0 - Left Horizontal pin (X-Axis)
A1 - Left Vertical pin (Y-Axis)
A2 - Right Horizontal pin (X-Axis)
A3 - Right Vertical pin (Y-Axis)
Arduino Nano pin to Potentiometer
Pin No :
A4 - Signal output pin
nRF24L01 module Socket Adaptor to Arduino Nano
Pin No :
Vcc - 5 V. supply (Do not connect 5V. directly to nRF24L01 module,it's supplied only 3.3V.)
GND - GND
CE - 9
CSN - 10
SCK - 13
MO - 11
MI - 12
IRQ - 2
*If you have communication problem,you can change connection from pin 13,11,12 to pin SCK,MOSI,MISO of Nano programming pins.
*It's necessary to add 0.1 microF to nRF24L01 module pin Vcc/GND because the module needs stable current and voltage.
*You can use other electrical plastic box to be remote frame.(This instruction use old RC toy car remote.)
Software Installation
Arduino sketch and Library :
1.Down load sketch file .ino and library zip file for nRF24L01 module from GitHub.
2.Add library zip file to Arduino IDE.You will see new library RF24-master in Examples menu.
3.Before using new nRF24L01 modules,we shall burn the modules by uploading default sketch pingpair and GettingStarted for tuning up frequency otherwise it will has uncommunication problem.(Use another Arduino Nano and nRF24L01 modules for pairing)
4.After succeed matching frequency ,we could upload Tx sketch Tx_2CH_robot_V3 _public.ino to Arduino Nano.
Remarks : For this instruction using data[0] and data[1] of Left Joystick only.
Hi, excellent work.
ตอบลบQuestion, why use two joysticks and so that the potentiometer?
Hi, excellent work.
ตอบลบQuestion, why use two control levers and for the potentiometer?
Hi, excellent work.
ตอบลบQuestion, why use two control levers and for the potentiometer?
It's spare joystick.Or you can modify sketch to support tracked robot like tracked vehicle controlling.
ตอบลบGreat!
ตอบลบWhy do you connect the IRQ pin of the NRF24l01 to the digital pin 2 of the Arduino?
Is it really necessary that you are connected?
Does it have any affect if it is not cached?