I am really new to arduino and currently I am working on a digitisation project. I want to collect data from two different sensors which have outputs as below. I want to save the data in txt format.
CO2 flow meter having 4 to 20 mA sensor output
Water flow meter having a pnp type sensor output.
My questions are
How can connect these sensors to PC using arduino? If any body can explain me in detail that will be great.
Can I connect the two sensors to one arduino uno board?
What is the program to read and save data on PC?
I want to use Python as my scripting language for this.
Use Serial.print() to send the sensor data to the PC. A terminal program like TeraTerm or Putty can be connected to the Arduino COM port and log the data to a text file.
Yes. Plenty of examples on line.
Any terminal program, or write your own program to read the serial port.
There are countless tutorials on line describing in detail how to connect sensors to Arduino. Google "arduino water flow meter" for example.
There are also many examples built in to the Arduino IDE (the software development package), to instruct in simple uses of Arduino. From the File menu select Open>Examples> and sift through the dozens of them. Turn on an LED, blink it, read a voltage, a switch, etc.
Finally, the on line Arduino Reference tells you how all the built in functions are to be used.
Arduino is programmed using C/C++, so if you are not familiar with those languages, there are countless tutorials and on line references.
Google "Arduino 4 to 20 ma sensor" for several tutorials.
Water flow meter : Pnp type output
Google "arduino pnp sensor" for several tutorials.
Two meters for percentage of CO2 in air which hav 0 to 10V output type.
Use two 5K resistors to make a 2:1 voltage divider, and connect the divider output to an analog input on a 5V Arduino. Don't forget to connect the grounds.
This is a big project for a beginner, so you should learn to read one sensor at a time. Avoid the temptation to put everything together, until you understand each part completely.