current sensing

Hello everyone,
i'm trying to deal with the ACS714T sensor 
but i can't find any samples or guide through internet 
the communication need to be done through ADC and SAADC HAL
but i don't know from where to begin with this 
i tried the ADC sample on the Zephyr documentation to have a closer look but it didn't help me a lot
is there a guide on how to do with the sensors that are not premade by Nordic 
what do i need to do first to deal with this sensor ?  
i'm a bit lost with it 
can you give me some guidance please 
i would appreciate your help 

  • Hello again,

    Rihab said:
    it compiled 

    Great, I am happy to hear that!

    Rihab said:
    i need to get the current and average values from the acs714 sensor 
    do you know how to proceed to collect those values through ADC please 
    can help me with that please 
    do i need to add things to the prj.conf about the sensor ?

    I have never worked with the acs714 personally, but from your description I assume that you are supposed to measure a voltage, and the process the measured value to get the current?
    If so, you could use the same setup as Simon describes in the tutorial you looked at earlier where you make sure that the pin you would like to measure on the acs714 is connected to the NRF_SAADC_INPUT_AIN0 pin on the NRF, or change the pin to match your connection.
    How do you need sampling to be triggered in your application? In the tutorial it just samples every 200 ms, but what are the requirements for your application?

    Best regards,
    Karl

Related