Hi,
Does anyone know if the Pokitto hardware is able to emulate/ act as a USB Keyboard?
I’ve kind of got this idea to use something like this as a random name generator to act as a extra data entry tool. I know other Arduino based things can do this, I do something similar with a Teensy, but I’d like to see if I could do it with the pokitto too.
We can add USB Midi feature to Pokitto Music Tracker (or Pokitto Rboy Tracker. It’s actually yours. I just port Rboy tracker GUI to Pokitto). While playing song it sends midi signals over usb. And with any DAW, Pokitto chiptune sound turn into CD quality sound
Hardware limitation on all Cortex-M0 processors. Not supported in architecture.
Reason is this: USB host stack is much more complex than USB client.
Maybe some limited form of USB host is possible on software (eg. only support for one type of device, lots of stack trimmed out). I came across such a project once but can not remember the name of the project
Reading PS/2 keyboards is covered in many projects. Its very simple stuff.
Another option is to use a XBOX360 controller chatboard. They work, I know that from experience. I haven’t connected one to Pokitto but I tried it out some years ago.
I had only a doubt about voltage, PS/2 keyaboard are 5Volt but it seems to work also at 3.3Volt like pokitto use and provide on I/O header .
Really it should be just a metter of porting a minor part (attach interrupt) of some library like this for arduino.
(and solder 4 wires from a ps/2 connector to some pins)
The Atmel SAMD21 used on the Arduino Zero has a Cortex-M0+ core, just like the Pokitto. The SAMD21 supports USB host mode. There’s an Adruino library for it.
My boy, @MLXXXp to the rescue!! Are you seriously suggesting the the Pokitto could have USB host mode? That would be bad a-word. I have a few USB devices, such as Wi-Fi dongles, keyboards, gamepads, etc, that would be cool to utilize on a mobile device.
I’m just saying that having a Cortex-M0+ core doesn’t rule out USB host mode capability. It depends on the peripherals provided on the particular chip using the core.
The USB controller in the Atmel SAMD21, used by the Arduino Zero, specifically supports host mode (as well as device mode).
I believe the USB controller in the NXP LPC11U68, used by the Pokitto, states only device mode support. However, @jonne posted above about the existence of a library that seems to get around the limitation.