hi, I try to run the example here(https://c2vt.svn.beanstalkapp.com/pm_arduino/) which contain an USB host device and connect the PM5 to Arduino with an USB cable. I can read the data in arduino but the data on PM5 freeze immediately if only an plug the USB cable(in USB-B port) and the data(like distance, time, calorie etc) will no longer change(when I Row it). After I unplugin the cable, every thing return to the normal, data keep change again...
I'm wondering if I'm wrong somewhere, or it is designed to be that...
Thx!
PM5's data freeze after plugin the USB cable
Re: PM5's data freeze after plugin the USB cable
If the Arduino is ONLY connected to the PM5 with the USB cable this should not happen. However, if you are making any other connections (such as to the 2.5mm jack for the generator/sensor wire) I can imagine this happening. I assume you are plugging a USB Type A cable into the Arduino and the B connector into the PM5's B socket.
All in all, with Bluetooth available, it may be easier to connect with a BLE enabled device.
All in all, with Bluetooth available, it may be easier to connect with a BLE enabled device.
Re: PM5's data freeze after plugin the USB cable
I have a small circuit in betweeen (small optocoupler to feed the sensor data to a Raspberry Pi), and I didn't encounter any issues. Been using it for six months now.
Re: PM5's data freeze after plugin the USB cable
What are you trying to achieve? There is also PyRow, which can poll the PM5 data.swortain wrote: ↑May 16th, 2022, 10:41 pmhi, I try to run the example here(https://c2vt.svn.beanstalkapp.com/pm_arduino/) which contain an USB host device and connect the PM5 to Arduino with an USB cable. I can read the data in arduino but the data on PM5 freeze immediately if only an plug the USB cable(in USB-B port) and the data(like distance, time, calorie etc) will no longer change(when I Row it). After I unplugin the cable, every thing return to the normal, data keep change again...
I'm wondering if I'm wrong somewhere, or it is designed to be that...
Thx!