This is an Arduino based RC transmitter TX.
- Support ExpressLRS 2.4G external TX module
- Up to 500Hz packet rate
- 4 analog channel
- 4 AUX channel
This project includes code, stl file for transmitter shell and pcb board, you can easily diy your own rc transmitter from arduino development board in a very simple way.
I have tested for 6 month since the first prototype (mod from an old Devo7), it works pretty well.
- Simple TX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
I use superslim module in the shell, but any esp32 based tx module should be working.
It was tested for ELRS 1.0 and 2.0.
The old version will was saved in the v0.93 branch
New feature will be most likely happen in the main branch
video:
https://www.youtube.com/watch?v=BPLFkZUoV28
- Add center stick calibration
- Optimze channel reverse use 4 values to handdle reverse in config.h
// Define Reverse 1 = reverse, 0 = normal
Is_Aileron_Reverse =1;
Is_Elevator_Reverse =1;
Is_Throttle_Reverse =0;
Is_Rudder_Reverse =0;
Calibration function added by erstec in Platformio_test_branch, thanks
- enter debug mode by uncomment #define DEBUG
- flash firmware to arduino nano
- open serial monitor at 115200 baud, center stick and keep for 5 seconds
- move stick full range within 20 seconds untill you see "Calibration Done"
- comment //#define DEBUG and flash firmware to arduino nano
- test in bf configurator
- done
platformio
Add Test branch for ppm output
Update STL File:
Solve gimbal & switch interference
Add battery tray
Update PPM to ELRS library, siginal is more stable, still need more test
https://github.com/kkbin505/Arduino-Transmitter-for-ELRS/tree/main/PPMtoCRSF
Increase baud rate to 400K
*** In 400k baud, theoretical maxmum packet rate is 500Hz (400000/320bit per second, 1.6ms per frame). RC data pcket is 32byte=320bit(plus 1 start bit and 1 end bit).
Now simpleTX is supporting 500Hz
Add 3rd pre seeting for 500Hz 25mW
Gestrue: Hold AILERON left and ELEVATOR up at power up.
Update cmd to elrs 2.0 (power setting commond of 2.0 is different from 1.0)
Re write gimbal calibation method, add center stick offset in config file
Add 2 pre settings for power and package rate:
Now you can enter setting 1 and 2 by gesutre:
Setting 1: //250Hz 25mW
Hold AILERON left and ELEVATOR down at power up.
Setting 2: //150Hz 100mW
Hold AILERON right and ELEVATOR up at power up.
Center stick will keep your previous setting.
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:
- Tun UART_INVERTED off.
- Adding a digital invert IC (I tested with SN74LS06N)
** Telemetray is off, 328p do not support half duplex.
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.
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.
I replace the control board with my PCB and system.
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.
This Transmitter is inspired by cruwallero: https://github.com/cruwaller/elrs_handset
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/