Agent 1 Analog Input Test

Industrial Arduino ESP32 Home FORUMS Example programs Agent 1 Analog Input Test

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10643
    help20
    Participant

    <Example program for NORVI Agent 1 reading analog inputs attached.
    The Channels shows 65535 unless an input is connected to it. Only 3 channels of the ADS1115 Used in the device. 
    Reading 3 channels of analog inputs over arduino.
    ADS1115 chip is used in NORVI Agent 1 addressed as 0x48

    Analog Input wiring Agent 1 0-10V and 4-20mA

    Use Adafruit ADS1115 Library for reading Analog Inputs
    In your Libraries folder, find ‘Adafruit_ADS1X15/Adafruit_ADS1015.cpp‘ and edit:
    The Wire.begin(); on the Adafruit_ADS1015::begin()  function  to Wire.begin(21,22) ;

    In your Libraries folder, find ‘Adafruit_ADS1X15/Adafruit_ADS1015.h‘ and edit:
    #define ADS1115_CONVERSIONDELAY ( 8 )
    to be:
    #define ADS1115_CONVERSIONDELAY ( 9 )

    Link to Adafruit library
    https://github.com/adafruit/Adafruit_ADS1X15

     

    • This topic was modified 1 month, 1 week ago by icd_admin_123@.
    • This topic was modified 1 month, 1 week ago by help20.
    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.