No hay artículos en el carro
No hay artículos en el carroSpeedD408
Comentado en los Estados Unidos el 8 de enero de 2024
I bought this for one of my first Arduino designs. As part of my first program it works great.
Customer
Comentado en India el 1 de abril de 2021
Perfectly worked.
harish
Comentado en India el 6 de julio de 2019
Good product
J. Singer
Comentado en los Estados Unidos el 12 de junio de 2018
The are ok and somewhat accurate.
BikerBud
Comentado en los Estados Unidos el 25 de agosto de 2016
Fairly accurate (+/- 0.10v). It's hard to find anything on the net about this sensor if you are new to Arduino. But after searching the interwebs, and experimenting, this is my final result on an Arduino UNO:- pin hooks to ground+ pin not useds pin hooked to pin A0 (Analog 0)Then I tinkered with the following code:int analogInput = A0; //Change if not connected to pin A0float vout = 0.0; //do not changefloat vin = 0.0; //do not changefloat R1 = 30000.0; //onboard resistor 1 valuefloat R2 = 7500.0; //onboard resistor 2 valueint svalue = 0; //do not changevoid setup(){pinMode(analogInput, INPUT);Serial.begin(9600);}void loop(){svalue = analogRead(analogInput); //this reads the value from the sensorvout = (svalue * 5.0) / 1024.0;vin = vout / (R2/(R1+R2));Serial.print(vin,2); // prints the voltageSerial.println(" volts DC"); // prints the words "volts DC"delay(1000); //delay loop for 1 sec}This code will give you results in the serial monitor. Make sure to set your baud to 9600.I haven't figured out how to calibrate the module yet. I'm assuming I'll just add or subtract some from the vin variable depending on which way I the sensor is off.Hope this helps anyone else out there,
Productos recomendados