razorbac91 / RazorPad

Very simple 8 keys bluetooth controller intended to work with Drive Mode Dashboard 2 or similar navigation apps
GNU General Public License v3.0
3 stars 0 forks source link

image

RazorPad

Very simple 8 keys, with 5 way navigation switch, bluetooth controller intended to work with Drive Mode Dashboard 2, Osmand or similar navigation apps

BE AWARE!!! I'm not a programmer nor a skilled maker, i just don't want to spend 150 or more euros for commercial controller (that is surely better engineered, water resistant, FW mainteined, etc, etc) so i gathered info around other free project and mixed them on something functional FOR ME.

The code is actually intended for ESP32 C3 Dev Module (I use a C3 super mini, Lolin mini and Lolin pico (with battery and voltage measurement) ESP32)

The project is actually built with the last ESP32 BleKeyboard 0.3.2-beta from https://github.com/T-vK/ESP32-BLE-Keyboard/releases/download/0.3.2-beta/ESP32-BLE-Keyboard.zip

Many thanks to @MotoMongrel for making the tutorials about settings and schematics

Some of the inspiration come from:

Useful link:

I also uploaded my STL file but be aware they are actually untested cause my Z Axis stepper driver gave up on these days so i can't actualy print it

Arduino IDE settings for compiling Razorpad with C3 SuperMini Board:

Arduino Preferences: https://raw.githubusercontent.com/espressif/arduino-esp32/ghpages/package_esp32_index.json

Libraries to install: image image

Arduino Library: Bounce2 https://github.com/thomasfredericks/Bounce2

Arduino Library: Keyboard https://github.com/T-vK/ESP32-BLE-Keyboard/releases/download/0.3.2-beta/ESP32-BLE-Keyboard.zip

Due to a bug in 0.3.2-beta, a small change needs to be made to

My Documents\Arduino\libraries\ESP32-BLE-Keyboard-0.3.2-beta\BleKeyboard.cpp. (Open in Notepad++ https://notepad-plusplus.org/downloads/)

On line 130 change :

From pSecurity->setAuthenticationMode(ESP_LE_AUTH_REQ_SC_MITM_BOND); to pSecurity->setAuthenticationMode(ESP_LE_AUTH_BOND);

FROM image

TO image

image

Setup Board Manager with 2.0.17 – NOT with 3.0.3

Select Board: “Lolin C3 Mini” in Tools/Boards Manager

SKQUCAA010 5 way Wire & Pin Layout for C3 Super Mini

image

HS1 5 Way Joystick Wire & Pin Layout for C3 Super Mini

image