cancel
Showing results for 
Search instead for 
Did you mean: 

Using ACS758 and ZMPT101 with stm32h750vbt6

Inventer
Associate II

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?

2 REPLIES 2
mƎALLEm
ST Employee

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Andrew Neil
Super User

@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/products/sense/current-sensor-ics/fifty-to-two-hundred-amp-integrated-conductor-sensor-ics/acs758

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.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.