This sensor outputs an analog signal from 0 to 5V. You cannot connect it directly to CC2530, CC2531, CC2652, or CC1352 because they measure up to 3.3V. Therefore, you should use a resistive voltage divider.

Note: The firmware supposes that ACS758 is powered by 5V and used a voltage divider. If the sensor is unidirectional, you must calibrate the zero point (see the corresponding command below).

Type – the sensor type
Frequency and Voltage – parameters of the power source where the sensor is attached.
Monitor output – The GPIO output number defined in the configuration determines whether a load is connected or disconnected. If the selected GPIO output is off, the firmware assumes that no load is connected and that the current should be zero. In this situation, the firmware can initiate a zero calibration procedure to enhance accuracy. Additionally, the firmware reports zero current at this point.

Zigbee2MQTT commands

read - immediately reads the sensor's value.
Topic: zigbee2mqtt/[friedly_name]/get/[channel]
Channel: l1, l2, l3 … l16
Payload: 1
Returns: The counter value {"[channel]": float_value}
write - starts the calibration procedure for the sensor. The power like should be off (current is zero).
Topic: zigbee2mqtt/[friedly_name]/set
Payload: {"[channel]": 0}
Channel: l1, l2, l3 … l16

Comments
Harvey Specter
Posted at 17:24 February 14, 2024
JJAUTRET
Reply
Author

I am not sure to understand how Monitor output Works. What is the reference to for value 1 to 8 (Virtual GPIO ?).What is the possible tuning ?

    Harvey Specter
    Posted at 12:52 February 15, 2024
    Owner
    Reply
    Author

    The GPIO output number defined in the configuration determines whether a load is connected or disconnected. If the selected GPIO output is off, the firmware assumes that no load is connected and that the current should be zero. In this situation, the firmware can initiate a zero calibration procedure to enhance accuracy. Additionally, the firmware reports zero current at this point.

Harvey Specter
Posted at 14:25 June 16, 2022
Kirill
Reply
Author

Can i measure 24v dc correctly using this firmware?

    Harvey Specter
    Posted at 14:30 June 16, 2022
    Owner
    Reply
    Author

    No, you cannot measure voltage over 3.3V. In your case, you need a divider with two resistors.

Leave a Reply