Hello I am using an ADS1115 to read a current on a SCT-013-030 based on an example setup by the manufacturer.
I have followed the setup where i have to use differential mode, and connected to the end of the transducer to A0 and A1.
What I am expecting is a graph that is a sine wave ( or relatively close to looking one), basing from the analogy that since the SCT-13-030 is a current transducer the voltage reading i should get from it should relatively look like a since wave, since the current of Mains line is a sine wave too.
Here is my code, I am using Python in MU on a Raspberry Pi 4
import board
import busio
i2c = busio.I2C(board.SCL, board.SDA)
import adafruit_ads1x15.ads1115 as ADS
from adafruit_ads1x15.analog_in import AnalogIn
ads = ADS.ADS1115(i2c,data_rate=475,mode=256)
chan = AnalogIn(ads, ADS.P0, ADS.P1)
import time
arrays = []
arrays2 = []
t_end = time.time() + 1
while time.time()<t_end:
arrays.append(chan.value)
arrays2.append(chan.voltage)
for x in arrays:
print((arrays2[x]*1000,0))
and here is my output graph
I could not tell if this is the actual reading off a current from the transducer ( unfortunately i have no access to an oscilloscope ) or noise or even my programming.
The load i am using is a soldering iron.
I have tried running the program with no load and i am getting a reading of 0volts with some noise spikes here and there that are less than 0.1 which is acceptable, which led me to believe that those value are actual readings.
import AnalogIn
be on a new line? \$\endgroup\$