I have an arduino nano setup with a TCRT5000 sensor, found a little sketch online and now I can measure my power usage from my old meter.
When I open up a serial monitor on my laptop I see the data
Starting Cycle 2 ms, 5047.32 W Cycle 3 ms, 4349.80 W Cycle 4 ms, 5122.73 W Cycle 5 ms, 5133.69 W Cycle 6 ms, 5985.04 W Cycle 7 ms, 126.62 W Cycle 8 ms, 3.00 W
When I connect it to my Pi, set the baud rate and open a cat /dev/ttyUSB0 I sometimes see “starting” and then some random garbish you also get when baud rate is wrong.
A few times I actualy saw the data but shortly after the same random characters
pi@raspberrypi ~ $ sudo stty -F /dev/ttyUSB0 57600 pi@raspberrypi ~ $ cat /dev/ttyUSB0 Starting ^C
What can it be, some buffer or something?