You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Englebert 956a702120 Prefixed the Yaw and Pitch orientation using the fastest way without interrupting too much on calculations. 2 years ago
include Initial 2 years ago
lib Initial 2 years ago
openscad Prefixed the Yaw and Pitch orientation using the fastest way without interrupting too much on calculations. 2 years ago
sounds Initial 2 years ago
src Prefixed the Yaw and Pitch orientation using the fastest way without interrupting too much on calculations. 2 years ago
test Initial 2 years ago
.gitignore Initial 2 years ago
LITTLEFS.patch Initial 2 years ago
README.md Added ESPNow RC screen 2 years ago
bert2M_fat12M_16MB.csv Initial 2 years ago
platformio.ini Initial 2 years ago

README.md

OBJECTIVE

  1. Creating a controller running for RubyFPV [ Using it on Ground Station ]
  2. Long Range via 5.8GHz [ Using it on ground station ]
  3. Swappable 18650 [ NO NEED. As I had upgraded to 700mAH ]
  4. High Power. Running on at least 2S2P (7.4v) for supplying 5V. [ NO NEED! As I am only using it and broadcast via ESPNow to Ground Station. ]
  5. Having another M5Core2 as touch switches and interfacing with the gimbala.
  6. Having a 800x480 pixel as FPV screen [ No NEED. Because using it at ground station ]
  7. Extendable USB for the antennas sticks. [ No NEED. Using on grond station ]

FEATURES

SILENT MODE: During power up, push up the PITCH stick to the maximum then press power ON.

LAYOUT DIAGRAM

M5Core2 Pinout: +---------------+ +-------+-------+ | GND | | ADC | G35 | +---------------+ +-------+-------+ | GND | | ADC | G36 | +---------------+ +-------+-------+ | GND | | RST | EN | +-------+-------+ +-------+-------+ | G23 | MOSI | | DAC | G25 | +-------+-------+ +-------+-------+ | G38 | MISO | | DAC | G26 | +-------+-------+ +-------+-------+ | G18 | SCK | | 3.3V | +-------+-------+ +-------+-------+ | G3 | RXD0 | | TXD0 | G1 | +-------+-------+ +-------+-------+ | G13 | RXD2 | | TXD2 | G14 | +-------+-------+ +-------+-------+ | G21 | iSDA | | iSCL | G22 | +-------+-------+ +-------+-------+ | G32 | pSDA | | pSCL | G33 | +-------+-------+ +-------+-------+ | G27 | GPIO | | GPIO | G19 | +-------+-------+ +-------+-------+ | G2 | I2SOUT| | I2SCK | G0 | +-------+-------+ +-------+-------+ | NC | | PDMDT | G34 | +---------------+ +-------+-------+ | NC | | 5V | +---------------+ +-------+-------+ | NC | | BAT | +---------------+ +-------+-------+

ESP32 Dev Pinout: +-----------------------+ | O | USB | O | | ------- | 3V3 | [ ] [ ] | VIN
GND | [ ] [ ] | GND
Touch3 / HSPI_CS0 / ADC2_3 / GPIO15 | [ ] [ ] | GPIO13 / ADC2_4 / HSPI_ID / Touch4 CS / Touch2 / HSPI_WP / ADC2_2 / GPIO2 | [ ] [ ] | GPIO12 / ADC2_5 / HSPI_Q / Touch5 Touch0 / HSPI_HD / ADC2_0 / GPIO4 | [ ] [ ] | GPIO14 / ADC2_6 / HSPI_CLK / Touch6 U2_RXD / GPIO16 | [ ] [ ] | GPIO27 / ADC2_7 / Touch7
U2_TXD / GPIO17 | [ ] [ ] | GPIO26 / ADC2_9 / DAC2
V_SPI_CS0 / GPIO5 | [ ] ___________ [ ] | GPIO25 / ADC2_8 / DAC1
SCK / V_SPI_CLK / GPIO18 | [ ] | | [ ] | GPIO33 / ADC1_5 / Touch8 / XTAL32 U0_CTS / MISO / V_SPI_Q / GPIO19 | [ ] | | [ ] | GPIO32 / ADC1_4 / Touch9 / XTAL32 SDA / V_SPI_HD / GPIO21 | [ ] | | [ ] | GPIO35 / ADC1_7
CLK2 / U0_RXD / GPIO3 | [ ] | | [ ] | GPIO34 / ADC1_6 CLK3 / U0_TXD / GPIO1 | [ ] | | [ ] | GPIO39 / ADC1_3 / SensVN SCL / U0_RTS / V_SPI_WP / GPIO22 | [ ] | | [ ] | GPIO36 / ADC1_0 / SensVP MOSI / V_SPI_WP / GPIO23 | [ ] |___| [ ] | EN | | | | | ____ ____ | | | | | | | | | | | | ||| || || | | O O | +-----------------------+

REF:

Document on How to Use: https://github.com/m5stack/m5-docs/blob/master/docs/en/api/lcd.md Pinout and labels - https://docs.m5stack.com/en/core/core2_for_aws MP3 Sound generator - https://ttsmp3.com/

GPIO35 - Throttle GPIO36 - Yaw GPIO32 - Pitch GPIO33 - Roll

FLOW

HOW TO COMPILE

After pio run you will hit into issues. Use the below way to patch the downloaded libraries.

  1. Run the below commands: patch .pio/libdeps/m5stack-core2/LittleFS_esp32/src/LITTLEFS.cpp < LITTLEFS.patch
    patching file .pio/libdeps/m5stack-core2/LittleFS_esp32/src/LITTLEFS.cpp

HOW TO PUSH FILES

  1. For all the voice files, go to sound folder and issue the commands below once connected to M5Core2TX WiFi: for i in $(ls *.raw); do echo "Pushing [$i]..."; ./upload.py http://192.168.1.1/webupload $i; done Pushing [bluetooth.raw]... Pushing [pitchdecrease.raw]... Pushing [pitchincrease.raw]... Pushing [poweroff.raw]... Pushing [rccontroller.raw]... Pushing [reboot.raw]... Pushing [reset.raw]... Pushing [rfscanners.raw]... Pushing [rfsettings.raw]... Pushing [rolldecrease.raw]... Pushing [rollincrease.raw]... Pushing [rxbinding.raw]... Pushing [savesettings.raw]... Pushing [stickcalibration.raw]... Pushing [stickpositions.raw]... Pushing [systemrebooting.raw]... Pushing [systemshuttingdown.raw]... Pushing [throttledecrease.raw]... Pushing [throttleincrease.raw]... Pushing [trims.raw]... Pushing [welcome.raw]... Pushing [wifi.raw]... Pushing [yawdecrease.raw]... Pushing [yawincrease.raw]...

HOW TO DELETE THE FILE

To delete it is easy: curl -s http://192.168.1.1/erase?filename=the_filename

REFERENCE

  1. https://randomnerdtutorials.com/esp-now-auto-pairing-esp32-esp8266/ - Auto pairing
  2. https://github.com/Servayejc

TODO

  1. ESPNow RC Controller
  2. ESPNow SBUS (FPV Bridge)
  3. Changing + and - sign