Tutorial: CAN Bus Flow Meter Using Arduino
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.
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.