serial_debugger/hardware/mux_rpi
KemoNine d8e9621ed9 Tweak pin based on working header 2020-09-20 17:11:59 -04:00
..
.gitignore Fixup git ignore 2020-09-20 16:13:37 -04:00
README.md Tweak pin based on working header 2020-09-20 17:11:59 -04:00
build.ps1 Add additional serial ports via SERCOM ; the mux_rpi build now has uart0/1, uart5 and a generic ttl pinout in case others are needed 2020-09-20 04:19:04 -04:00
make.ps1 Start implmenetation of rpi mux 2020-09-10 22:28:31 -04:00
mux_rpi.ino Add conditional logic / config for rpi mux uart selection -- default to all on 2020-09-20 16:14:06 -04:00
upload.ps1 Start implmenetation of rpi mux 2020-09-10 22:28:31 -04:00

README.md

MUX - Raspberry Pi Edition

This folder contains the necessary sources and information to build a MUX for Raspberry Pis. This mux can be used independently or with the controller.

Note : The mux needs to be configured via sources if not used with the controller.

Important Considerations

  • The Raspberry Pi 4 has 5 available UARTS and we only document how to wire for UART0/1 and UART5
  • The Raspberry Pi's prior to the 4 had only UART0 exposed. Please use ONLY the UART0 configuration and setup for these devices.

Hardware / BoM

Item Quantity Unit Cost
Feather M0 Basic Proto 1 $19.95
FeatherWing Proto 1 $4.95
2x20 pin IDC Box Header 1 $0.75
GPIO Ribbon Cable for Raspberry Pi 1 $2.95
Header Kit for Feather 1 $0.96
I2C Non-Volatile FRAM Breakout 2 $9.95

Schematic

This build is i2c focused for additional parts. Please hookup using standard i2c methods.

Raspberry Pi Header Pin Arduino Pin
39 Gnd
8 (TX) D11 (RX)
10 (RX) D10 (TX)
32 (TX) MISO (RX)
33 (RX) MOSI (TX)
1 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
2 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
3 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
4 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
13 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
14 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
15 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER
16 NOT CONNECTED TO ANYTHING / CUT PIN ON HEADER

Libraries Used

Local

These libraries are used by the project and contained in the src/ folder local to the project.

External

These libraries are used by the project and can be installed via the Arduino IDE library manager.

Implementation (Incomplete)

  • FRAM break out for configuration persistence
  • Fall back to saved config and goes into stand alone via usb port if it's not seeing the main board
  • Receive configuration over i2c
  • Save configuration to FRAM
  • FRAM config reading
  • Ability to have USB and i2c for the UART output
    • Use ring buffer @ 16k for i2c
    • Send direct to USB and then add to ring buffer (always send over usb even if not used)

Implementation (Complete)

Building / Uploading

The make.ps1, build.ps1 and upload.ps1 scripts can be used to build/upload this project. These scripts call the arduino-cli commands programatically.