2025-06-09 1:31 AM - last edited on 2025-06-09 1:45 AM by mƎALLEm
am developing smart meter with stm32h750vbt6,I develop my own stm32 PCB board and is working well if I run the project with other hardware that has libraries .the problem is for the ac voltage current and voltage sensor am using ACS758 for current and ZMPT101B for voltage ,the ADC are not reading any thing while everything is well .does any libraries exist for them or any way I can use to get the measurements so that the smart meter will work well?
2025-06-09 1:44 AM - edited 2025-06-09 1:56 AM
Hello,
You need to either find the sensors on the internet:
https://github.com/ElectroRush4u/ACS712
https://github.com/Abdurraziq/ZMPT101B-arduino/tree/master/src
-> you need to understand and adapt these libraries to STM32
Or read their datasheets and develop your own drivers. You can inspire from the drivers shared above.
2025-06-09 2:13 AM - edited 2025-06-09 2:15 AM
@Inventer wrote:for the ac voltage current and voltage sensor am using ACS758 for current and ZMPT101B for voltage?
As @mƎALLEm suggested, these are 3rd-party products - nothing to do with ST - so you need to go to the respective manufacturers for support with their products.
eg,
https://www.allegromicro.com/en/design-support
You will need to study the device datasheets, and ensure that your software complies with the requirements stated in them.
The chips neither know nor care what microcontroller you use; they just do what is stated in their documentation.
Use an oscilloscope and/or logic analyser to see what's actually happening on the interfaces - check this against the requirements of the datasheets.