Open konsumer opened 3 years ago
Using the serial port is actually a very smart idea ! I feel stupid to not thought about it when doing the I2C.
The Linux-Arduino-Serial-Joystick project seems perfect for this!
I was originally looking for i2c, and it helped my find this project. I think both are good, depending on what you're doing (if I were doing a bunch of i2c, I could have them share the 2 pins, saving the serial for something else.) Also, I'm not sure if serial timing is ok without a XTAL. I'll do some tests and report back. It may make sense to have both options.
I do like that they use the standard inputattach
as a driver, emulating stinger
serial joystick, and it creates /dev/js0
instead of /dev/uinput
which might make more stuff work easily. It makes me start to think about other protocols doing similar, like maybe classic wii controller (which is also i2c) would enable this to immediately seem like a joystick, but I'm not sure how available drivers are for this.
Hi, I like the design of the board, but I was thinking I could free up 2 more IO pins from arduino if I used the RX/TX instead of i2c to talk to pi, and this would also allow me to write the "firmware" from pi, and allow other styles of firmware like firmata (keep logic in the driver, and the Arduino is just used for it's GPIO.) Do you have any opinions on this? Am I wrong about this as an alternative?