Expansion board for hoverboard firmware. Communicates to board via UART and Interfaces to Nunchucks, Gametraks, IMUs or wirelessly to itself.
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.
phail 1736a4808e clean up functions and electrical measurements 3 months ago
include new protocol tested and running 3 months ago
lib new protocol tested and running 3 months ago
src clean up functions and electrical measurements 3 months ago
thunkableApp added thunkable app (http://app.thunkable.com) Based on https://www.instructables.com/id/ESP32-BLE-Android-App-Arduino-IDE-AWESOME/ 10 months ago
.gitignore removed old UDP code fragments 11 months ago
.gitmodules new protocol tested and running 3 months ago
LICENSE based on https://github.com/AlphaLima/ESP32-Serial-Bridge 11 months ago
README.md Rewrite Nunchuk error handling 8 months ago
min_spiffs.csv increased partition size 10 months ago
platformio.ini switch to common repo for protocol files 3 months ago

README.md

Paddelec control

ESP32 based control board to read Gametraks attached to a paddle. Provide input via serial to control a hoverboard with custom firmware. See https://git.hacknology.de/projekte/bewegungsappar.at (mirrored on https://github.com/p-h-a-i-l/hoverboard-firmware-hack). Additional feature to work as a gateway for Wii Nunchuk (I²C)

Used IDE: platform.io

ESP32-Serial-Bridge

functionality based on https://github.com/AlphaLima/ESP32-Serial-Bridge Transparent WiFi (TCP, UDP) to all three UART Bridge, supports both AP and STATION WiFi modes.

Accesspoint

IPAdress: 192.168.4.1 AP SSID: paddelec AP Password: paddelec Used Ports: 192.168.4.1:8880 <-> COM0 192.168.4.1:8881 <-> COM1 192.168.4.1:8882 <-> COM2

Hardware

Pinning COM0 Rx <-> GPIO3 COM0 Tx <-> GPIO1 COM1 Rx <-> GPIO15 COM1 Tx <-> GPIO4 COM2 Rx <-> GPIO16 COM2 Tx <-> GPIO17

===============================================================

In some cases the memorylayout is to small for this scetch. If you face this problem you can either disable Bluetooth by removing #define BLUETOOTH in config.h or change the partition size as described here: https://desire.giesecke.tk/index.php/2018/04/20/change-partition-size-arduino-ide/

=======================================

Pinning Adarfuit Feather Huzzah32

UART to motor control

SERIAL2_RXPIN 16 // receive Pin UART2 SERIAL2_TXPIN 17 // transmit Pin UART2

I2C (Nunchuk)

NUNCHUK_VCCPIN 14 // Pin used to supply Power I2C SCL 22 I2C SDA 23 (21 on NodeMCU boards)

GAMETRAK1_RPIN 39 // wire length Pin Gametrak 1 GAMETRAK1_PHIPIN 36 // horizontal angle Pin Gametrak 1 GAMETRAK1_THETAPIN 34 // vertical angle Pin Gametrak 1

GAMETRAK2_VCCPIN 27 // Pin used to supply Power