Controlling unit designed for adventure bikes.
Controlling unit is a Bluetooth remote device that lets you to operate various applications from handlebar without any need to touch the display.
This repository contains the software, designed by Alper Akcan, to run the hardware controller project, also known as Seyrusefer, designed by Sefa Dogan.
Hardware design files and DIY building instructions are available in the "docs" directory.
ESP-IDF is a great software development environment for the hardware based on the ESP32 chip by Espressif. Please follow the ESP-IDF Programming Guide at https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/ if you are not familiar with ESP-IDF.
sudo apt-get install \
git \
wget \
flex \
bison \
gperf \
python3 \
python3-pip \
python3-setuptools \
python3-venv \
cmake \
ninja-build \
ccache \
libffi-dev \
libssl-dev \
dfu-util \
libusb-1.0-0
sudo usermod -a -G dialout $USER
git clone -b v5.2.1 --recursive https://github.com/espressif/esp-idf.git esp-idf-v5.2.1.git
cd esp-idf-v5.2.1.git
./install.sh esp32,esp32c3
cd esp-idf-v5.2.1.git
. export.sh
cp -r $IDF_PATH/examples/get-started/hello_world esp-idf-example-hello_world
cd esp-idf-example-hello_world
idf.py set-target esp32
idf.py menuconfig
idf.py build
idf.py -p /dev/ttyUSB0 flash
idf.py -p /dev/ttyUSB0 monitor
idf.py set-target esp32
idf.py menuconfig
idf.py build
idf.py -p /dev/ttyUSB0 erase-flash
idf.py -p /dev/ttyUSB0 flash monitor
idf.py set-target esp32
idf.py menuconfig
idf.py build
( \
cd build && \
esptool.py --chip esp32 merge_bin -o ../seyrusefer-esp32-v1.1.0-full.bin @flash_args && \
cp seyrusefer-esp32.bin ../seyrusefer-esp32-v1.1.0.bin \
)
esptool.py -p /dev/ttyUSB0 erase-flash
esptool.py -p /dev/ttyUSB0 write_flash 0x0 seyrusefer-esp32-v1.1.0-full.bin
idf.py -p /dev/ttyUSB0 monitor
Please download latest full bin file from https://github.com/alperakcan/seyrusefer/releases and flash.
Please download and install USB to UART Bridge Controller driver from https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads for CP210x, https://wch-ic.com/search?q=CH340&t=downloads for CH34x, https://wch-ic.com/search?q=ch9102&t=downloads for CH9102.
Please download and approtiate version for windows (ex: esptool-v4.7.0-win64.zip) from https://github.com/espressif/esptool/releases
Select file as seyrusefer.bin and offset as 0x0000.
./esptool.exe erase-flash
./esptool.exe write_flash 0x0 seyrusefer-esp32-v1.1.0-full.bin
Button combinations (press and hold for 2.5 seconds):
-
1 & 2 : mode selection
Select mode (press once):
- 1 : mode 1
- 2 : mode 2
- 3 : mode 3
- 4 : mode 4
- 5 : mode 5
-
1 & 3 : wifi setup
SSID : Seyrusefer Password: Seyrusefer
Open URL: http://192.168.4.1 to access controller
Press any button to exit wifi setup.
-
1 & 4 : restart
-
1 & 5 : restore to defaults