From fe7627f9e750f810757b98d4738e4fcee1af6584 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Mon, 22 Feb 2021 21:08:46 +0100 Subject: [PATCH] docs: add hat hardware information --- docs/hat_hardware.md | 45 ++++++++++++++++++++++++++++++++++++++++++++ mkdocs.yml | 2 ++ 2 files changed, 47 insertions(+) create mode 100644 docs/hat_hardware.md diff --git a/docs/hat_hardware.md b/docs/hat_hardware.md new file mode 100644 index 0000000..8864da8 --- /dev/null +++ b/docs/hat_hardware.md @@ -0,0 +1,45 @@ +# PlanktoScope Hat Hardware + +## Buses and GPIO pinout + +### I2C1 Bus +#### RTC RV-3028-C7 +Address 0x52 +Configured through a kernel driver. + +#### OLED Display +Address 0x3c + +### SPI0 Bus +#### Motor Controller 0: TMC5160 +Chip Enable: SPI0_CE0 +Motor Enable: GPIO23 + +Diagnostic output: +GPIO16 for Error output +GPIO20 for Stall output + + +#### Motor Controller 1: TMC5160 +Chip Enable: SPI0_CE1 +Motor Enable: GPIO5 + +Diagnostic output: +GPIO16 for Error output +GPIO20 for Stall output + +### GPIO +#### Fan control +PWM1 control through GPIO13 + +#### LED0 control +PWM0 control through GPIO18 + +#### LED1 control +PWM0 control through GPIO12 + + +### I2C0 Bus +#### EEPROM M24C32 +Address 0x50 +For HAT information only. \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 7cf853f..d71832d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -9,6 +9,8 @@ nav: - Usage: - User Interface: ui_guide.md - Collection devices: collection_devices.md + - Hardware: + - Planktoscope HAT: hat_hardware.md - Under the hood: - Software architecture: software_architecture.md - MQTT Messages: mqtt_messages.md