Which version are you trying to get running?
This is a cut from
my post early in this thread regarding using an UNO or an UNO clone (with a ch340/341 USB/serial bridge chip) instead of the Alamode, using the
original RaspberryPints kit. Theoretically it should also work for the Tobor fork:
----------------------------------------------------------------------------------------------------------------------------------------------------
If using an Uno instead of AlaMode
Do not perform the AlaMode support installation in Step 6 of the raspberrypints installation procedure. Skip Step 6 entirely.
The Python port "listener" needs to know what device to monitor for "pour" messages.
The default setting is to listen for TTYS0, while an Uno connected via USB will typically show up as TTYACM0.
Edit /var/www/html/python/flow_monitor.py
Find these lines:
#The following line is for serial over GPIO
port = '/dev/ttyS0'
#The following line is for serial over USB
#port = '/dev/ttyACM0'
Add a comment # in front of the ttyS0 line and remove same from the ttyACM0 line.
If using an Uno CLONE instead of AlaMode
Do not perform the AlaMode support installation in Step 6 of the raspberrypints installation procedure. Skip Step 6 entirely.
Again, the Python port "listener" needs to know what device to monitor for "pour" messages.
The default setting is to listen for TTYS0, while an Uno Clone connected via USB will typically show up as TTYUSB0
I believe this is due to clones using a CH340 USB/serial bridge chip instead of the Mega16U2 used on "genuine" Arduino Uno boards.
Edit /var/www/html/python/flow_monitor.py
Find these lines:
#The following line is for serial over GPIO
port = '/dev/ttyS0'
#The following line is for serial over USB
#port = '/dev/ttyACM0'
Add a comment # in front of the ttyS0 line and remove same from the ttyACM0 line.
Then change /dev/ttyACM0 to /dev/ttyUSB0.
----------------------------------------------------------------------------------------------------------------------------------------------------
You still need to Enable the flow meters in the RaspberryPints management gui (Personalization - Show/Hide Columns) and set the number of faucets as well (Basic Setup - My Taps).
And assuming you are not running the RandR+ fork, you need to edit the raspberrypints.ino file to set the number of meters (numSensors) and the pins they're wired to (pulsePin[]). In the below example from my keezer I have 6 taps on pins 2 and 5 through 9.
Code:
//This line is the number of flow sensors connected.
const uint8_t numSensors = 6;
//This line initializes an array with the pins connected to the flow sensors
uint8_t pulsePin[] = {2,5,6,7,8,9};
Then you need to load that sketch to the UNO.
There are a couple of more changes needed if you are NOT using Swissflow meters but the above should get you in the ballpark...
Cheers!