Important changes to questions
We’re making some changes to Mbed Questions. From 10th December 2019 this site will be archived and new questions should be asked on our new forum site. Until that date you can continue to reply to existing questions here but can’t ask new questions.
7 months, 1 week ago.
How to use opamp and set gain for STM32-F303RE?
I need to set gain on my ADC inputs (reading a strain gauge) - is this possible using MBED or am I better off biting the bullet and using CubeMX?
1 Answer
7 months, 1 week ago.
Hello Shane,
I'd suggest to connect the strain gauge to a HX711 module (24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales available on eBay for less than $1) for example as shown here. The HX711 module is equipped with a low-noise programmable gain amplifier and that will allow you to set the gain and process the data with one of the HX711 user libraries available for Mbed targets, for example:
https://os.mbed.com/users/megrootens/code/HX711/docs/tip/classHx711.html
https://os.mbed.com/users/padte/code/HX711/file/a2666eae3d06/HX711.cpp/
You need to log in to post a question