Datasheet - https://www.renesas.com/us/en/document/dst/fs1012-datasheet
I have hooked this flow sensor up as per the differential circuit example in the datasheet. The issue is that this sensor does not seem to be responding to different levels of airflow, I was wondering if anyone here has used this sensor before and has got it to work. Any help is appreciated, Cheers
Hi, @nate13046
Welcome to the forum.
Can you please post your code for us and also some pictures of your project so we can see your component layout.
Tom...
#include <U8x8lib.h>
#include <Wire.h>
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=/ PIN_WIRE_SCL, / data=/ PIN_WIRE_SDA, / reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display
void setup()
{
Serial.begin(9600);
Serial.println("Renesas Flow Sensor Output is:");
Serial.println("-----------------------");
u8x8.begin();
u8x8.setFlipMode(1); // set number from 1 to 3, the screen word will rotary 180
}
void loop()
{
int sensorout = analogRead(A1)*20; // Signal at A1
Serial.print("AnalogValue: ");
Serial.println(sensorout); // print the air sensor with a newline
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.setCursor(0, 0);
u8x8.print("Flowrate:");
u8x8.print(sensorout);
delay(1000);
}
HTR1 is connected to the 3.3V pin on the Seeeduino XIAO and expansion board,
And the Signal line from the op-amp is connected to pin A1 on the seeeduino
And everything else is hooked up per the datasheet
Hi,
Hi,
Welcome to the forum.
To add code please click this link;
Thanks.. Tom...
#include <U8x8lib.h>
#include <Wire.h>
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=*/ PIN_WIRE_SCL, /* data=*/ PIN_WIRE_SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display
void setup()
{
Serial.begin(9600);
Serial.println("Renesas Flow Sensor Output is:");
Serial.println("-----------------------");
u8x8.begin();
u8x8.setFlipMode(1); // set number from 1 to 3, the screen word will rotary 180
}
void loop()
{
int sensorout = analogRead(A1) * 20; // Signal at A1
Serial.print("AnalogValue: ");
Serial.println(sensorout); // print the air sensor with a newline
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.setCursor(0, 0);
u8x8.print("Flowrate:");
u8x8.print(sensorout);
delay(1000);
}
Can you show us a picture of your OP AMP between the sensor and the Arduino? Can you tell us the exact device number you ordered?
Hi,
A schematic of your project would also be helpful.
Thanks.. Tom..
Thermal Mass Flow Sensor - FS1012-1100-NG
Op Amp - TL071CP
Microprocessor - Seeeduino Xiao with Seeeduino Xiao Expansion board
Please post a hand drawn schematic diagram, with pin numbers and parts clearly labeled. The photos are essentially uninterpretable.
Don't forget to use code tags when posting code.
OP amps usually have some resistors and possibly a capacitor or two. I see none of that in your schematic or the picture.
Hi,
Draw a schematic like this, include component names and pin labels.
The heater needs 5V, it looks like you are supplying 3V3, even though the sample circuit says 3 to 5V.
The output is in mV, what are you expecting?
Some bypass capacitors at least on your protoboard would be advisable.
Tom..
Hi,
Did you Google;
"FS1012-1100-NG" "arduino"
There are some other threads on this forum and manufacturers suppor that may help.
Tom...
Hey guys, sorry for the late reply but I have been busy,
This is the circuit that I am running but I am still having the same issue with the sensor not being reactive to an increased flow of air, any suggestions as to why that is? I have also run this set-up on an oscilloscope and I still can't get a steady reading suggesting that it isn't reacting to changes in airflow.
Cheers,
#include <U8x8lib.h>
#include <Wire.h>
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=*/ PIN_WIRE_SCL, /* data=*/ PIN_WIRE_SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display
void setup()
{
Serial.begin(115200);
Serial.println("Renesas Flow Sensor Output is:");
Serial.println("-----------------------");
u8x8.begin();
u8x8.setFlipMode(1); // set number from 1 to 3, the screen word will rotary 180
}
void loop()
{
int sensorout = analogRead(A2); // Signal at A1
Serial.print("AnalogValue: ");
Serial.println(sensorout); // print the air sensor with a newline
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.setCursor(0, 0);
u8x8.print("Flowrate:");
u8x8.print(sensorout);
delay(100);
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.