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 -
@felmue Thanks again! It's now placed in my shopping basket :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login