Skip to content

danxdz/Arduino-Transmitter-for-ELRS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Transmitter is inspired by cruwaller, you can find the 3D shell file in this repo: https://github.com/cruwaller/elrs_handset

Simple TX

This is an Arduino based RC transmitter TX. Features:

  • Support ExpressLRS 2.4G external TX module
  • Serial communicatin (Up to 250Hz packet rate)
  • 4 analog channel
  • 4 AUX channel
  • M7 hall Gimbal

微信图片_20220123195009

Due to the hardware limitation of the ATMega328p, the follow functions are not supported:

  • The 328p do not support inverted UART (which OpenTX use), there are 2 options:
    1. Tun UART_INVERTED off.
    2. Adding a digital invert IC (I tested with SN74LS06N) ** Telemetray is off, 328p do not support half duplex. *** The 328p only support 115K baud, theoretical maxmum packet rate is 250Hz (115200/256bit per second, 4ms per frame). RC data apcket is 32byte=256bit.

The uart logic voltage of ESP32 is 3.3V, my ATMega328p is 5V. However mine TX work fine, it seems ESP32 UART is 5V tolerance.

Tips

Default RC channel order is AETR, you can change channel order whatever you like, by changing the RC channel order. Current gimbal calibratin method is complex (but you need to do only once):

  • Enter debug mode by delete "//" before #define DEBUG
  • Flash with arduino IDE
  • Open serialmonitor change baud rate to 115200
  • Record max and min RC channel value and write in map() function (reverse order if neede) example:map(Aileron_value,893,223,RC_CHANNEL_MIN,RC_CHANNEL_MAX)
  • Add "//" back before #define DEBUG
  • Flash with arduino IDE

There are many amazing Expreslrs handset. But I want a simple arduino based transmitter for my DIY 2.4G external TX module.

https://youtu.be/PrfSfnqcBgk

Add PCB V0.9

I replace the control board with my PCB and system.

微信图片_20220123195005

Below is old prototype

I replaced the control board in a DEVO 7 with arduino nano and DIY 2.4G Elrs module, after some wiring and codeing and it works.

Make sure to uncheck uart_reverse when upload firmware to TX module, because the board do not support reverse uart.

Otherwise you need to use a digital revese cycle for example a NOT gate SN74LS06N.

I need more test to see if it works stable.

This is still a working process project.

IMG_20211231_230305 IMG_20211228_215915 IMG_20211227_221222 IMG_20211227_213607

Some code are based on Pawel's amazing work on SBUS generate code.

https://quadmeup.com/generate-s-bus-with-arduino-in-a-simple-way/

About

Arduino based RC transmitter for ELRS external TX Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 57.1%
  • C 42.9%