Tutorial: CAN Bus Flow Meter Using Arduino
Summary
This guide is aimed at customers who have successfully set up their Arduino and connected their Sensirion liquid flow sensor (Arduino Interface for Liquid Flow Sensors with Level Shifter Tutorial). Please see the below Arduino Quick Start Guide for help in setting up your Arduino and liquid flow sensor.

Required Materials
- Sensirion liquid flow sensor. An SLF3S is being used in this example
- Flat ribbon cable (comes with the SLF3x evaluation kit)
- Screw headers (277-1275-ND, from www.digikey.com) to connect the sensor to your
- Arduino board
- 2x Arduino Uno
- 2x Seeed Studio CAN Bus Shield v2
- Sensirion’s Arduino Sample code
Instructions
Attach the CAN Bus Shields to the two Arduino UNO boards. Connect the CANH and CANL lines of the boards with each other. Then follow the tutorial (link here) to interface your SF06 liquid flow sensor via the level shifter break out board to one of the Arduinos and follow the instructions to prepare the software. Ideally test the sample code to make sure that the communication with the sensor is working for sure.
Then, upload the CAN Bus sample Code (examples 16 and 17) to the two Arduinos and open the serial monitor for the Arduino that receives the data.
Alternatively, you can use just the send example to transmit data to your own CAN bus receiver. Please refer to documentation of your receiving system and online documentation for the CAN Bus Shield.