Skip to content

Steps for building the page turner

FunkyFab edited this page Mar 23, 2022 · 12 revisions

Order the hardware

You need:

  1. A ESP32-S2 DevKitC board (such as this one)(some 15€)(not U version, which needs an external antenna)
  2. 2 pedals (I've tried these ones but the click is too loud; I've ordered these ones(the double one), and they are much quiter
  3. A USB power bank (beware, it shouldn't be a power bank that turns off when it thinks nothing is connected: the consumption of the ESP32 is so low that the power bank turns off after few seconds)
  4. 2 USB cables (one for powering up the ESP32 board, one for connecting to the tablet (classical cables for sync phones, USB micro B on one side, USB A on the other
  5. An OTG adapter (like this one)
  6. A audio cable male/female with jack 3.5 plugs like this one
  7. Soldering stuff

Prepare the software

Please refer to Adafruit web site for setting up the Arduino IDE for ESP32-S2

Physical interfacing

Cut your audio cable in the middle. Strip the wires on both sides of the cut so that you can solder the wires one by one.

On the ESP32 side

Solder the audio ground to ESP32 ground (pin 5), right wire to pin 33 and left wire to pin 35

On the pedals side

To be performed only if relevant (ie if the pedals do not have a 3.5mm jack plug). Solder the ground to each pedal through any wire on the each pedal (use same cable color). Solder the other wire of the left pedal to the left wire of the jack. Solder the other wire of the right pedal to the right wire of the jack. Carefully insulate the welds with heat shrink tubing.

ESP32 programming

Plug the ESP32 to your computer with the left connector of the ESP32 board. Download the *.ino sketch from Github. Open it with Arduino IDE. In the same folder as the *.ino, create a secrets.h file, containing #define SSID_1 "" #define SSID_2 "" #define WIFI_PASS "" #define OTA_PASSWD "" On the first line, insert a Wifi AP to which the device can connect, between the double-quotes. On the second line, insert a alternate Wifi AP to which the device can connect, between the double-quotes. On the 3rd line, insert the Wifi password (to be adapted in the code if both the AP don't have the same password) On the 4th line, insert the password but update OTA the ESP32.

Compile and upload. The ESP32 should restart, and you should see a yellow flash (indicating the ESP 32 is scanning the Wifi networks), then purple (proper network has been scanned), and yellowish-green (Wifi connection done). An orange blink would mean that either none of the Wifi has been scanned, or the password does not work.

Plug the pedals. When clicking the left pedal, the ESP 32 should blink blue; when clicking the right pedal, the ESP 32 should blink green

On the reMarkable tablet

Prefer refer to here

Final test

Plug the left USB of the ESP32 on a battery. The ESP32 should blink its sequence of colors. Plug the right USB on the OTG adapter, plug the OTG adapter on the reMarkable 2 tablet, and it should work. Last task is to print a nice case with a 3D printer (model included) to give a nice finish. The material used should be translucent, so that we can see the color of the LED

Clone this wiki locally