This repository contains the microcontroller code for the enterococcus detection research project I'm working on, led by Trace Martin, a PhD student at UCSB. It is written in Rust for the STM32 NUCLEO-f446re board.
To build & flash, simply run cargo build followed by cargo flash-chip.
Below, for my own organization as well as the convenience of anyone else looking at this repository, is a list of all serial communication protocols employed, the devices using those protocols, and the pins used for them, as well as what alternate functions are used on those pins.
CLK: PB10 AF5 SDI: PB15 AF5 SDO: PB14 AF5 CE: PB12 AF5
Peripherals:
- Camera (B0400)
SCL: PB8 AF4 SDA: PB9 AF4
Peripherals:
- Temperature sensor
- LCD display (CN0295D)
LED: PB5 5V, controlled by MOSFET
All pins are in GPIOB so that, when testing is complete, GPIOA can be disabled to save power.