please send a program for 4 to 20 ma input and get 1 digital output for required valvues
Please read the "How to use this forum" post.
baskar0395:
please send a program ....
please send money ...
baskar0395:
4 to 20 ma input and get 1 digital output for required valvues
I'm pretty sure, although I've never used one, that you read a 4-20mA current as a voltage drop across a 220 ohm resistor on an analog pin.
The code will be pretty much just the same as this.
float mAreading;
void setup()
{
}
void loop()
{
mAreading=((float) analogRead(A0)) / 1024.0*16.0+4.0;
}
That wasn't hard. Anymore and it would cost you.