Devesh36/bench-eight
Eight-channel 0–10 V measurement and control console: dual ADS1115 ADCs, buffered inputs, Pico controller, microSD, RTC, RS-485, four protected low-voltage outputs and a separate OLED/encoder panel in a tscircuit assembly.
- Version
- 0.1.3
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone Devesh36/bench-eight # download the package files into ./bench-eight
tsci add Devesh36/bench-eight # add it to your project as @tsci/Devesh36.bench-eightIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
PIN-MAP.md
# Bench Eight pin map
## Main-to-panel harness
J_UI on MAIN connects pin-for-pin to J_MAIN on PANEL. Use twelve conductors; pin 1 must go to pin 1, including when viewing the opposite faces of mating connectors.
| Pin | Signal | Function |
|---|---|---|
| 1 | V5 | Switched 5 V, OLED supply |
| 2 | GND | Common ground |
| 3 | SPI_SCK | Pico GP18 |
| 4 | SPI_MOSI | Pico GP19 |
| 5 | OLED_CS | Pico GP17 |
| 6 | OLED_DC | Pico GP20 |
| 7 | OLED_RST | Pico GP21 |
| 8 | ENC_A | Pico GP10 |
| 9 | ENC_B | Pico GP11 |
| 10 | ENC_SW | Pico GP12 |
| 11 | V3V3 | External 3.3 V rail for encoder pull-ups |
| 12 | STATUS | Pico GP13, panel LED |
Panel J_OLED pins 1–7: **5V, GND, DIN, CLK, CS, DC, RST**. Adapt these to the corresponding labels on the Waveshare module's supplied cable. It uses 3.3 V SPI logic and 5 V module power.
## Controller
| Pico GPIO | Signal / use |
|---|---|
| GP0 / GP1 | RS_TX / RS_RX; also J_UART pins 1 / 2 |
| GP2 | RS_DIR: high transmits, low receives |
| GP3 | SD_DETECT |
| GP4 / GP5 | SDA / SCL, 4.7 kΩ pull-ups to external 3.3 V |
| GP6–GP9 | OUT1–OUT4, high turns on the low-side MOSFET |
| GP10 / GP11 / GP12 | Encoder A / B / push switch, active low |
| GP13 | Status LEDs |
| GP14 | RTC_INT, active low |
| GP16 | SPI_MISO from microSD |
| GP17 | OLED chip select |
| GP18 / GP19 | Shared SPI clock / MOSI |
| GP20 / GP21 | OLED DC / reset |
| GP22 | microSD chip select |
| RUN | SW_RESET to ground; 10 kΩ pull-up to Pico 3V3 |
## I²C devices
| Component | Address | Connections |
|---|---|---|
| U_ADC1 ADS1115 | 0x48 | AIN0–AIN3 = CH1–CH4 after buffers |
| U_ADC2 ADS1115 | 0x49 | AIN0–AIN3 = CH5–CH8 after buffers |
| U_CURRENT INA219 | 0x40 | Common 0.1 Ω load-supply shunt |
| U_RTC DS3231 | 0x68 | Time, alarm interrupt on GP14 |
## External connectors
| Connector | Pin 1 | Pin 2 | Notes |
|---|---|---|---|
| J_IN1–J_IN8 | Signal 0–10 V | GND | Console must be powered first |
| J_OUT1–J_OUT4 | LOAD_V | Switched return | Attach one load across each pair |
| J_LOAD_POWER | +5–12 V DC | GND | External supply, separate from USB |
| J_RS485 | A | B | Common signal ground on J_RS_GND |
| J_RS_GND | GND | GND | Not isolated |
| JP_TERM | A | 120 Ω resistor to B | Fit a shunt only at a bus end |
| J_BAT | +3 V battery | GND | RTC backup only; never charged |
J_UART pin 3 is GND. USB-C is power-only; program through the Pico's onboard USB connector with the lid removed. Pico BOOTSEL is on the module. No external SWD connector is included; the Pico exposes its own SWD pads.