I got a tip from Mr. Vlk to try Microcontrollers with native USB and read buttons via I2C.
Also Attiny85 can be reprogrammed via USB with digispark bootloader !
My fake Micro SD give me 8 wires (list only, not exact pinout):
- GND
- VCC
- SDA
- SCL
- SPEAKER
- Analog 1
- Analog 2
- Analog 3
Maybe in next version I can try this pinout:
- GND
- VCC
- SDA
- SCL
- SPEAKER
- Analog 1
- D -
- D +
With this I can expand offer of usable controllers with etc. SAMD21 or STM32
SAMD21 add now very popular Adafruit circuitpython programming feature ;)
What do you think about it?
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
i use MCP23017 I2C gpio expander in my ESPboy gadget for buttons. Anyway you can put lot of devices on i2c at the same time. I'am not sure that USB will bring something extraordinary... but if you'll put micro usb connector on your console and add D- D+ pins to SD it could expand opportunities. with 2 SD slots you can also add UART and SPI also... But in this case you have to make double SD card PCB to use all this pins in both slots ))
Are you sure? yes | no
I also thought about this solution, It save I2C chip for reading keyboard. Maybe I can have PCB usb connector on sd card like https://hackaday.io/project/28516-business-card-gamepad And 2 parallel SD slots 1. MCU 2. SENSORS
I try draw something ;)
Are you sure? yes | no
You can use my code for attiny24 for the keyboard from #D1 Mini X-Pad Shield — it does debouncing and buffering, and you just read a single byte over i2c.
Are you sure? yes | no
And with a bit of extending, you could also make it play music.
Are you sure? yes | no
Alternatively, you could have the USB connector on the card itself.
In fact, you could even have cards with some additional sensors on them, if the game requires them — light, accelerometer, breath (for an ocarina opp), etc.
Are you sure? yes | no