News for hackers. Stuff that matters.
Re:Show HN: A Truly Modular Keyboard by NotARoomba on Tuesday October 27, 2026 @02:46PM (#50263881)
Yes it is a relay hop and the latencies do stack. If a key is connected on all 4 sides then in the worst case scenario it will have to receive 4 and send out 1 to the best path to the master. Ideally the master doesn’t poll and an interrupt would be triggered on a keypress. there might be a way to batch them but it would probably run on a FIFO basis. I could turn it into a CAN bus but I still have to test out if that would be better than the current system.
Re:Show HN: A Truly Modular Keyboard by SV_BubbleTime on Tuesday October 27, 2026 @11:46PM (#50269142)
Can requires a transceiver, but they can get quite small now. I don’t know if it fits in your cost model, but again all your chips would be single can module which is easy to do. Gets hard when you need 3+ CANs. IDK, I’m sure there are other masterless systems out there, I just have twenty years automotive experience with CAN.
Re:Show HN: A Truly Modular Keyboard by SV_BubbleTime on Wednesday October 28, 2026 @04:19PM (#50280302)
Actually, I changed my mind.

It’s a keyboard you don’t need masterless. You would be fine with one master, as you have USB to work out anyhow, and none of your keys need to talk to each other.

You could look into single wire LIN. You might still need a transceiver. And you might want to use it with 12V but that isn’t necessary.

There is an interesting way you could do othangonal position detection. And while it’s much slower than I2C, there would be no relaying at every step. I bet it would be lower latency overall.