![]() |
Forum Index : Microcontroller and PC projects : USB-Panel for shortcuts
Author | Message | ||||
Arne Newbie ![]() Joined: 05/01/2025 Location: GermanyPosts: 30 |
Hi, I built a panel (basis: bad USB) to enter shortcuts via USB-Hub to Picomite. My keyboard and mouse are working perfect, but when I connect the a.m. panel to the hub it is not detected by the picomite. To test the panel I connected it on a PC/Mac - it was detected and worked as planned. To check if another programmed bad USB would work on the picomite I tried one programmed for ATtiny85. This was detected an worked. The difference in the programming of the bad USB’s was: - The panel was programmed with circuit python on a raspberry pi pico - The ATtiny85 via Arduino C Has anyone an idea why the panel will not be detected by the picomite but on PC/Mac? |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7858 |
Hi Arne, and welcome to the 'shed. :) I'm not certain that the PicoMite will recognise two keyboards. There are four USB "channels": In any case, your device will have to correctly report itself to be a keyboard. MM.INFO(USB n) Returns the device code for any device connected to channel ‘n’ which is a number from 1 to 4. The returned device code can be: 0=not in use, 1=keyboard, 2=mouse, 128=ps4, 129=ps3, 130=SNES/Generic Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Arne Newbie ![]() Joined: 05/01/2025 Location: GermanyPosts: 30 |
Hi Mick,thanks for your welcome and help I think I found the Problem: Circuit Python try’s to mount a „combo USB-device“ at startup (e.g. USB-serial, USB-Midi,USB-Storage, USB-Keyboard, USB-Mouse etc.). The single devices can be deactivated/activated during the boot process but not be deleted (at least I don’t know how to delete those not needed USB-devices from the system and activate an USB-Keyboard HID only).Therefore the PicoMite USB-Driver doesn’t see only an „USB-Keyboard HID„ and doesn’t do anything. If an ATtiny is plugged in at first it mounts an USB-serial HID for some seconds to allow programming via USB. Will no data be uploaded it dismounts the USB-serial HID. This is a normal behavior of the ATtiny . Afterwards the ATtiny starts the user app for the USB-Keyboard HID and will be mounted on the PicMite „as Keyboard connected on channel 1“. If I now connect in parallel a real keyboard to the hub it is connected on channel 4 and can be used as usual. Because of the a.m. facts I cannot use CircuitPython for my project. Due the ATtiny is very limited in IO‘s I will check to use a Arduino Nano with V-USB. Arne |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |