Skip to content

Reading 4 controllers at once? #52

Answered by Skuzee
colejd asked this question in Q&A
Jun 13, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You should be fine. I've read 4 controllers before. You'll need to read them one at a time, of course, since the sending the controller command and receiving the data is real-time assembly. Each send/receive takes about 1/3 millisecond per controller.

You'll need to send the data over serial as bytes (don't send the buttons individually). Each controller has 3 status bytes and 8 data bytes. It adds up fast and filling you serial buffer often will halt the program. I would suggest you use a device that has hardware serial because you might find that software serial may not keep up with a high polling rate.

You might run into an issue when you have at least one controller unplugged. Since t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@colejd
Comment options

@Skuzee
Comment options

@colejd
Comment options

Answer selected by colejd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants