int TP1 = A1; int TP2 = A2; float TP1_Value = 0; float TP2_Value = 0; float diff = 0; void setup() { // put your setup code here, to run once: pinMode(TP1,INPUT); pinMode(TP2,INPUT); Serial.begin(9600); analogReference(INTERNAL); } void loop() { // put your main code here, to run repeatedly: TP1_Value = analogRead(TP1); TP1_Value = TP1_Value*(5.0/1023.0); TP2_Value = analogRead(TP2); TP2_Value = TP2_Value*(5.0/1023.0); diff = TP1_Value - TP2_Value; Serial.print("TP1 "); Serial.print(TP1_Value); Serial.print(" TP2 "); Serial.print(TP2_Value); Serial.print(" diff "); Serial.println(diff); }
Hi AdamC!
Thank you for the request. Your request, in Renesas sensor, is very valuable to us. I have attached application notes regarding Arduino Uno board interface please go through it. You may need to…
Thank you for the request. Your request, in Renesas sensor, is very valuable to us. I have attached application notes regarding Arduino Uno board interface please go through it. You may need to check the code; this is only an example to be used with the Arduino Uno. Please let me know if you are still having problems.
Application Note_User Guide for FS1012 Flow Sensor with Arduino Uno.docx
Regards:
raja.
Hola, tengo el mismo sensor de flujo y mis problemas quedaron arreglandos con la ayuda del documento . Sin embargo aún me preguntó ¿cómo pasar los mV a una medida de flujo, ya sea SLPM o L/min o alguna similar? Es que el datasheet no es claro, espero me puedan ayudar.
Hi Mitzi!
Thanks for reaching out to the Renesas engineering community. Sorry to say I cannot understand this language so, could you please ask your query in English language It will be easy for me?
Raja.