An STM32 HAL example of reading the Avia Semiconductor HX710B 24-bit ADC for pressure sensors.
Source: HX710B Datasheet
In the example MOSI is used as CLK to produce the required number of cycles/pulses for HX710B. It enables a straightforward use of DMA just by calling HAL_SPI_TransmitReceive_DMA().
Don't worry 🙂 Just hit Alt-K to generate /Drivers/CMCIS/ and /Drivers/STM32F7xx_HAL_Driver/ based on the .ioc file. After a couple of seconds your project will be ready for building.
- HX710B water pressure sensor
- Alphanumeric HD44780 LCD display
- PCF8574 I2C converter for HD44780 LCD display
- Bidirectional 4-channel logic level shifter
- MOSI as CLK for HX710B: My original idea, i.e. not copied from other sources. It doesn't mean that I'm the first one to do it this way - probably I'm not. I just didn't came across such a solution in other projects known to me.
- LCD: kurs-stm32-e16-lcd or kurs-stm32-e17-lcd-znaki (MIT license)
Start building your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them!
Warning
Control engineering - try this at home ❗
190+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.
Stay tuned!