
Racer
StuckAtPrototype/Racer
These are structured into their own files. I could have used submodules, but decided against it.

Z21 Throttle implementation on ESP32
ThrottleAdapterBoard is an open-source printed circuit board by strofos, from the strofos/ThrottleESP repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 156.3 × 56.1 mm with 26 parts on 36 nets, routed with 186 tracks and 6 vias.
It is built around the BC547 and JS102011SAQN. Its parts include 8 connectors, 5 resistors, 2 capacitors, 2 switches and 1 transistor.
Z21 throttle implementation on ESP32 like a light Z21 lok maus. You might even build it on ESP8266 as there is no ESP32 specific functions used. It uses a standard variable resistor (pot) to handle the speed. Only 126 DCC steps is implemented. A 3x4 keyboard is used to navigate throw the menu and handle the functions 0 to 9. The code gets data from the Z21 asyncronous, so if you change the locomotive or the tracks gets an EStop you get notified on the throttle also.
Use a standard Arduino IDE to flash the code. Just make sure you have the correct board selected and install the graphic libraries from Adafruit. I used a Nokia 5110 display, PCD8544 chipset, SPI driven, so is easy to adapt it to another SPI display.
The wifi SSID and password are set inside the Config.h file. Just edit it and put your own settings.
The IP can be found in the menu of the throttle, goto Menu (hold * for 1 sec) and then select Wifi (press 2). The default port is 5983. The open Putty, add the IP and port and then select Telnet. If successful a command promt will apear. You can now send the desired command to the throttle. Here is the complete list of commands implemented on the throttle:
After you print the Top and Bottom enclosure parts on a standard 3D filament printer you need some M3 insert-threads and M3 standard screws to put it all together. See the images for more information. I test-printed them on my Anycubic Kobra S1 3D printer. The 18650 cell lid is still under design so it is missing from the current repo.
Fell free to download, make and share this project! A like or share of this repo will be much appreciated!
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | MountingHole | MountingHole:MountingHole_3.7mm | H1, H2, H3, H4, H5, H6 |
| 3 | 10k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R3, R4, R5 |
| 2 | 100nF | Capacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolder | C1, C2 |
| 2 | 1k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1, R2 |
| 1 | 10k | TerminalBlock_Altech:Altech_AK100_1x03_P5.00mm | RV1 |
| 1 | BAT_HOLDER | ThrottleAdapterBoardLibrary:BatteryHolder_18650_THT | J8 |
| 1 | BC547 | Package_TO_SOT_THT:TO-92_Inline_Horizontal1 | Q1 |
| 1 | FUSE | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | F1 |
| 1 | JS102011SAQN | Button_Switch_SMD:SW_SPDT_CK_JS102011SAQN | SW1 |
| 1 | KY-040 | Rotary_Encoder:RotaryEncoder_Alps_EC12E-Switch_Vertical_H20mm_CircularMountingHoles | SW2 |
| 1 | Keypad | Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical | J7 |
| 1 | LCD5110 | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J1 |
| 1 | POWER | TerminalBlock_Altech:Altech_AK100_1x02_P5.00mm | J2 |
| 1 | WemosS2MiniA | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J3 |
| 1 | WemosS2MiniB | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J4 |
| 1 | WemosS2MiniC | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J5 |
| 1 | WemosS2MiniD | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J6 |
It measures 156.3 × 56.1 mm and has 2 copper layers, 1.6 mm thick.
26 parts, built around the BC547 and JS102011SAQN. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the strofos/ThrottleESP repository on GitHub, at the commit this page was made from: the board is ThrottleAdapterBoard/ThrottleAdapterBoard.kicad_pcb and its schematic ThrottleAdapterBoard/ThrottleAdapterBoard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

StuckAtPrototype/Racer
These are structured into their own files. I could have used submodules, but decided against it.

LNH-team/Lost-NDS-TV
The Lost Nintendo DS Television Output, brought back to life

StuckAtPrototype/PCB_business_card_remake
A custom PCB based "business" card that lets you play a version of Flappy Bird.

Mew463/esp32-caliper
It features a built in 150mAh battery and a USB C interface for charging/uploading code.


