แสดงบทความที่มีป้ายกำกับ instruction แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ instruction แสดงบทความทั้งหมด

วันพฤหัสบดีที่ 12 พฤษภาคม พ.ศ. 2565

วันพุธที่ 24 มกราคม พ.ศ. 2561

How to build DIY Arduino Transmitter OpenTx firmware




        Instruction "How to build  DIY Arduino Transmitter OpenTx firmware" will describe how to build 2.4G 8-channel DIY transmitter using MEGA2560 Arduino controller installing OpenTx firmware which similar to commercial transmitter in the market.       
       The Arduino MEGA2560 will produce traditional PPM signal to send to RF module that can  communicate to general transmitter modules like Frsky,Flysky,Orange,..etc.
        Difficulty : Hard
Materials
1. 1 - Arduino controller - MEGA2560 Core











2. 1 - 128x64 LCD display  12864ZW with ST7920 controller









3. 1 - Old RC transmitter body












4. Joy stick gimbals.(mode1,mode2)

5. Push buttons









6. Capacitors - See detail in BOM
7. Diode 1N4007













8. 1 - 7805 IC Regulator 5V.

9. Female pin header












10. Double rows female pin header









11.Single row male pin header












12.Single row long male pin header












13. Double rows male pin header
14. 1 - LED 5 mm.









15. Resistors














16. Ribbon wires.













17. Male JST Battery Pigtail







18. Heat shrink tube 1.5 - 10 mm.







19. Velcro tape










20. 1 - PCB.DIY. circuit board











22. Electrical 26 AWG wires

23. 1 - Piezo speaker





















26. 1 - SD card














Tools


2. Soldering wire

3. Soldering paste


5. Plier



8. Two sides glue tape



DIY PCB building

1.Installing electronic parts on DIY PCB according to electrical circuit diagram.(see in Github)
2.Install switches,joy stick gimbals,push buttons on transmitter body.
3.Wiring and connecting PCB - MEGA2560 - Gimbals - Switches - Push buttons according to circuit diagram.

Firmware installation (can do before hardware installation)
1.Downloading software OpenTx companion2.2.x from OpenTx website.

2.Installing OpenTx companion on PC.

3.Running OpenTx companion,downloading firmware by using OpenTx companion.
   3.1 Edit setting menu 
      - Radio type : DIY MEGA2560 radio
   3.2 Build option 
      - ST7920
      - frsky
      - sdcard
      - more option as you want

    3.3 Default Stick Mode(Futaba)
      - Mode3 (AIL ELE THR RUD) 
    3.4 Default Channel Order (Futaba)
      - A E T R
4.Flashing Arduino MEGA2560 by using usbtiny.
    See detail of flasing procedure in Github.


5.Testing hardware post-installation.








วันอาทิตย์ที่ 12 กุมภาพันธ์ พ.ศ. 2560

Arduino Tracked Robot-IR Remote control




This instruction introduce how to make Arduino tracked robot control via general IR remote.

Materials and Tools
1.Track and wheel set.

2.Gear box - Individual drive-two motors















3.Tamiya Universal Perforated Plate Kit










4.Arduino UNO
5.Dupont wires 200mm.












6.VS1838B IR reciever.


7.Battery 6-7V.
8.IR remote (Can use any TV,VDO,Stereo,etc. remote)
9.L298N Dual H-Bridge motor drive module.
 


Tools

1. Screw driver.
2. Plier.
3. Screw , Bolt & Nut.

Parts assembly & Electrical Wiring

1.Assembly Track and wheel set as manual sheet.
2.Install Arduino UNO controller ,IR reciever , L298N motor drive module and battery on chassis.
3.Wiring
Arduino pins to IR reciever :
11 - IR reciever o/p signal
5V - IR reciever Vcc
GND - IR reciever ground
Arduino pins to L298N motor drive module :
10 - ENA
9 - IN1
8 - IN2
7 - IN3
6 - IN4
5 - ENB
 Connect Arduino GND pin and L298N motor drive module GND.
L298N motor drive module :
Connect power o/p to Motor A and B

Connect battery to Arduino controller and L298N drive module (can use battery up to 12V.)
Collect IR remote code
- Down load library zip file from Github ,import zip file into Arduino IDE. Open IR_Decode_sketch.ino and upload to UNO.
- Push remote buttons to IR receiver,serial monitor will show their HEX codes. 
Collect each IR remote button's hex code.We will use 9 buttons' hex codes for 9 function.



In this instruction ,IR remote code  :
Button 2 - Forward direction - hex code - FF18E7
Button 8 - Backward direction - hex code - FF4AB5      
Button 1 - Forward left direction - hex code - FF30CF     
Button 3 - Forward right direction - hex code - FF7A85
Button 6 - Rotating right direction - hex code - FF5AA5
Button 4 - Rotating left direction - hex code - FF10EF
Button 5 - Stop all direction - hex code - FF38C7
Button 7 - Backward left direction - hex code - FF42BD
Button 9 - Backward right direction - hex code - FF52AD



- Open IR_remote_L298N_V3.ino file put your own hex codes to the right functions in the sketch.
- Upload to UNO.
- Test the robot.
   If the installation,the IR code correct.It should run fine.