How to connect three Unit Reflective IR via Unit PaHUB V2 in UIFlow2?
-
I would like to build a line follow robot and read the analog values of three sensors. How can I connect three Unit Reflective IR via Unit PaHUB V2 to my AtomS3 Lite? It seems in the UIFlow2 GUI I can only add a single Unit Reflective IR. And it needs some custom pin input?
-
Hello @mb
Unit Reflective IR is a port B unit (black connector). So in order to connect multiple units you'll need a PbHub. (The b stands for port B.)
(A PaHub is meant to connect multiple port A units (red connector) aka I2C with the same I2C address.)
I created an UIFlow2 example to read three Unit Reflective IR via PbHub in UIFlow2 Project Zone called M5AtomLite_Three_ReflectiveIRUnit_UIFlow2.4.2
Note: The example is how I think three reflective IR units can be read via PbHub. But actually this method is untested by me as I do not have the necessary hardware.
Thanks
Felix