Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
solved this by the way, it was because i didnt have the arduino grounded to my sensing circuit, when i connected the A0 pin to the diode side of the resistor, and the digital ground to the grounded side of the resistor the value stayed at 0 until voltage was detected then it worked extremely...
im aware of all of these, i believe you missed my question, my only issue is to get the displayed value from jumping all over the place when there is no input ( no voltage going into) on A0, it jumps from like 0.0 to 17.5 to 49.9 and back down repeatly
- - - Updated - - -
i have come across...
digitalWrite(A0, INPUT_PULLUP); // set pullup on analog pin 0 is this the code i am looking for to stop the no input value from "floating" to random values?
ok so i got it to work messing around with the code... one problem was order of operation in the code itself, another problem was /1023 was actually supposed to be 5/1023= dividing by 204.6.... the only thing i am unsure of now is when there is no input coming into the A0 the value jumps around...
so i verified that there was ~4.9 volts coming off of the 5v pin, and feed that into the arduino. Before i did that the lcd was reading like 3240 to 3350 amperes ???? has something to do with that conversion in the code i think. any way when i feed the 5 volts into A0 nothing changed it stayed...
im getting outputs from the sensor... thats the easy part.. and i have the lcd reading "current =" its the coding i am not sure about.. i just tested it out and that conversion is no good, i had .6 volts going into A0.. it seems like its not changing the reading value of the lcd.. heres the...
Hello, i have spent hours on this problem over the past few days reading countless articles and came up with something, here is your original code that i altered...
#define LEM_LA_55_P A0
double current = 0;
int voltageinput_pin=A0;
int voltageinput;
// include the library code:
#include...
So I tried your code to no avail, unless I have my lcd hooked up wrong, I used the pin layout a friend used for a timer hooked up to an ardunio to lcd as the pin diagram.. here is a picture of the test setup, I had roughly .60volts going into A0 but nothing at all displayed on the lcd
- - -...
i have now, interesting project.. it seems to be using the same sensor as i, although i believe it to be overly complicated for myself, i am just a student of electronic technologies and my project is for my thesis class. The documentation i have to do with the project is worth a lot more point...
but where as the sensor is in the current domain, the output current shouldn't be effected by the diodes in series, since current in series is equal throughout and the resistor is after the diode shouldn't there be no voltage drop considered in the calculation?
- - - Updated - - -
Just checked...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.