planktoscope/docs/hat_hardware.md

61 lines
855 B
Markdown
Raw Normal View History

2021-02-22 21:08:46 +01:00
# PlanktoScope Hat Hardware
## Buses and GPIO pinout
### I2C1 Bus
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
#### RTC RV-3028-C7
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
Address 0x52
Configured through a kernel driver.
#### OLED Display
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
Address 0x3c
2021-09-03 15:53:16 +02:00
#### LED control: LM36011
2022-11-03 14:16:53 +01:00
2021-09-03 15:53:16 +02:00
Address 0x64
Control through specific software, current range from 0 to 376mA in normal mode, up to 1.5A in flash mode.
2021-02-22 21:08:46 +01:00
### SPI0 Bus
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
#### Motor Controller 0: TMC5160
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
Chip Enable: SPI0_CE0
Motor Enable: GPIO23
Diagnostic output:
GPIO16 for Error output
GPIO20 for Stall output
#### Motor Controller 1: TMC5160
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
Chip Enable: SPI0_CE1
Motor Enable: GPIO5
Diagnostic output:
GPIO16 for Error output
GPIO20 for Stall output
### GPIO
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
#### Fan control
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
PWM1 control through GPIO13
2021-09-03 15:53:16 +02:00
#### LED Output selection
2022-11-03 14:16:53 +01:00
2021-09-03 15:53:16 +02:00
GPIO18: high for LED1, low for LED2
2021-02-22 21:08:46 +01:00
2021-09-03 15:53:16 +02:00
#### LED Strobe
2022-11-03 14:16:53 +01:00
2021-09-03 15:53:16 +02:00
GPIO22 for pulse
2021-02-22 21:08:46 +01:00
### I2C0 Bus
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
#### EEPROM M24C32
2022-11-03 14:16:53 +01:00
2021-02-22 21:08:46 +01:00
Address 0x50
2022-11-03 14:16:53 +01:00
For HAT information only.