How to use a Pro Micro as a cheap controller/converter
- mac80211
- Favorite switch: Cherry
- DT Pro Member: -
- Contact:
I have some Soarer's XT / AT USB Converter listed on my site at www.tinkerboy.xyz if you do not want to get through all the steps in building one yourself.
-
- Location: --
- Main keyboard: --
- Main mouse: --
- Favorite switch: --
- DT Pro Member: -
apologies if this has been asked before, but if I'm on linux, do I type in the same AVRdude command, just without 'AVRdude?'
- scottc
- ☃
- Location: Remote locations in Europe
- Main keyboard: GH60-HASRO 62g Nixies, HHKB Pro1 HS, Novatouch
- Main mouse: Steelseries Rival 300
- Favorite switch: Nixdorf 'Soft Touch' MX Black
- DT Pro Member: -
I don't think I understand your question. The commands I posted are exactly what you need for Linux. Are you having trouble?
-
- Location: --
- Main keyboard: --
- Main mouse: --
- Favorite switch: --
- DT Pro Member: -
oh okay, so just those? I don't think I have AVRdude on my computer, but if my package manager is enough (pacman?) then I just do 'pacman[command]' instead of AVRdude?
-
- Location: --
- Main keyboard: --
- Main mouse: --
- Favorite switch: --
- DT Pro Member: -
Hello! I assembled my converter, and even after double checking my USB ports, it still gives me this error . I'm so unlucky today.
- Attachments
-
- unt1tled.png (162.52 KiB) Viewed 9289 times
- scottc
- ☃
- Location: Remote locations in Europe
- Main keyboard: GH60-HASRO 62g Nixies, HHKB Pro1 HS, Novatouch
- Main mouse: Steelseries Rival 300
- Favorite switch: Nixdorf 'Soft Touch' MX Black
- DT Pro Member: -
I said the same on Telegram, but can say it again here - your device is not in the bootloader by the time you run that command. Maybe try to run it in a loop while you short the pins. You have seconds between the device appearing and disappearing.
Then short the pins again.
Code: Select all
while true; do sudo avrdude blah blah; sleep 2; done
-
- Location: --
- Main keyboard: --
- Main mouse: --
- Favorite switch: --
- DT Pro Member: -
hm. kinda lost... still having some issues.
So here's my understanding of the possible way of flashing it is:
1st: Check /dev/tty/
2nd: while true; do sudo avrdude -p atmega32u4 -P /dev/ttyACM0 -c avr109 -U flash:w:Soarer_at2usb_v1.12_atmega32u4.hex; sleep 2; done
(2a: while shorting RST and GND)
3rd: profit?
So here's my understanding of the possible way of flashing it is:
1st: Check /dev/tty/
2nd: while true; do sudo avrdude -p atmega32u4 -P /dev/ttyACM0 -c avr109 -U flash:w:Soarer_at2usb_v1.12_atmega32u4.hex; sleep 2; done
(2a: while shorting RST and GND)
3rd: profit?
- Laser
- emacs -nw
- Location: Romania
- Main keyboard: Plum TKL \w Topre domes (work) / Novatouch (home)
- DT Pro Member: 0180
I usually just hit Enter on the already prepared command "sudo avrdude ..." *right after* (i.e. ~1s) removing the short between RST and GND. I.e. in one hand have some metal wire that hooks on those pins, remove it, and quickly hit Enter with the other hand. You have to remove the short, otherwise the Pro Micro won't enter the bootloader mode (where/when it can be flashed).
- snacksthecat
- ✶✶✶✶
- Location: USA
- Main keyboard: SSK
- Main mouse: BenQ ZOWIE EC1-A
- DT Pro Member: 0205
- Contact:
How to get a pro micro into bootloader mode:
- Get a piece of wire
- plug in the pro micro
- Throw the piece of wire away
- Say a prayer
- Cough three times
- Backflip
- Fly around the world
- Pick up the pro micro
- ...
Spoiler:
- kokokoy
- Location: Singapore
- Main keyboard: FC660C
- Main mouse: CST L'trac
- Favorite switch: Topre, Green Alps, Vintage Black
- DT Pro Member: 0145
This.Laser wrote: ↑I usually just hit Enter on the already prepared command "sudo avrdude ..." *right after* (i.e. ~1s) removing the short between RST and GND. I.e. in one hand have some metal wire that hooks on those pins, remove it, and quickly hit Enter with the other hand. You have to remove the short, otherwise the Pro Micro won't enter the bootloader mode (where/when it can be flashed).
In windows though, sometimes the com # changes so usually I have an open device manager. But nowadays I use QMK toolbox to flash my hex.
-
- Location: --
- Main keyboard: --
- Main mouse: --
- Favorite switch: --
- DT Pro Member: -
So.. I tried trying to flash it within 1sec, and even with the help of my dad (who plugged in the promicro into the usb as fast as he could), then I tried to short the pins (the two pin extenders I found always fell out, never could do it fast) and then press enter. But again, never worked. Also, i could never short it two times that fast. (my usb cable is 10cm long)
I will keep trying, but I will never buy a promicro for a controller ever again, if I need to do this for flashing.
Though TBF, the fact that I don't have a functional soldering iron may play a part in why it's not AS easy to do it.
I will keep trying, but I will never buy a promicro for a controller ever again, if I need to do this for flashing.
Though TBF, the fact that I don't have a functional soldering iron may play a part in why it's not AS easy to do it.
-
- Location: --
- Main keyboard: --
- Main mouse: --
- Favorite switch: --
- DT Pro Member: -
can't do it fast enough!snacksthecat wrote: ↑How to get a pro micro into bootloader mode:
- Get a piece of wire
- plug in the pro micro
- Throw the piece of wire away
- Say a prayer
- Cough three times
- Backflip
- Fly around the world
- Pick up the pro micro
- ...
Spoiler:
-
- Location: Hungary
- Main keyboard: Ducky One 2
- Main mouse: Roccat Kone Pure Owl-Eye
- Favorite switch: Thick Clicks
- DT Pro Member: -
Hi everyone,
I am pretty new to any DIY electronic projects, I managed to brake the Pro Micro (Chinese one) USB jack from the PCB of a friends WYSE keyboard . He used Soarers converter so I bought a new Pro Micro, desoldered the broke one, flashed 1.12 to the new one, soldered and all I have at the moment is the keyboard LEDs (Scroll Lock...) are on constantly, no inputs from the keyboard. On the Pro Micro the power LED is on, no other LEDs are on. I am new to anything like this so I am stuck at the moment. Took pictures, notes... before desoldering from the wiring (just you know, to make sure...), so I am pretty sure the wiring is OK, checked conductivity with a multimeter between the solder joints and the end of the cables (end=just before they connect to the PCB of the keyboard), all OK, no bridges... Executed hid_listen but nothing. These are the outputs I collected to debug, could someone be so kind to help me out with some suggestion?
flash output: https://pastebin.com/HLH7vM07
journalctl output when connecting the keyboard: https://pastebin.com/PmJkQYNt, the only "red" in the log is: hid-generic 0003:16C0:047D.0005: No inputs registered, leaving
the output of hid_listen (keyboard is still connected): https://pastebin.com/1L8vXWd9, nothing else when hitting any keys
I desoldered the pro micro controller and did the clock/data short test Soarer suggested on page 4, output: https://pastebin.com/DyUZwtLf
What I did not do is to "send" any config to the cotroller (like modify keyboard mapping...) but according to the step-by-step guide is not necesseraly needed.
I am pretty new to any DIY electronic projects, I managed to brake the Pro Micro (Chinese one) USB jack from the PCB of a friends WYSE keyboard . He used Soarers converter so I bought a new Pro Micro, desoldered the broke one, flashed 1.12 to the new one, soldered and all I have at the moment is the keyboard LEDs (Scroll Lock...) are on constantly, no inputs from the keyboard. On the Pro Micro the power LED is on, no other LEDs are on. I am new to anything like this so I am stuck at the moment. Took pictures, notes... before desoldering from the wiring (just you know, to make sure...), so I am pretty sure the wiring is OK, checked conductivity with a multimeter between the solder joints and the end of the cables (end=just before they connect to the PCB of the keyboard), all OK, no bridges... Executed hid_listen but nothing. These are the outputs I collected to debug, could someone be so kind to help me out with some suggestion?
flash output: https://pastebin.com/HLH7vM07
journalctl output when connecting the keyboard: https://pastebin.com/PmJkQYNt, the only "red" in the log is: hid-generic 0003:16C0:047D.0005: No inputs registered, leaving
the output of hid_listen (keyboard is still connected): https://pastebin.com/1L8vXWd9, nothing else when hitting any keys
I desoldered the pro micro controller and did the clock/data short test Soarer suggested on page 4, output: https://pastebin.com/DyUZwtLf
What I did not do is to "send" any config to the cotroller (like modify keyboard mapping...) but according to the step-by-step guide is not necesseraly needed.
- chuckdee
- Location: USA
- Main keyboard: Clueboard/RS Ver.B
- Main mouse: Logitech g900
- Favorite switch: Cherry MX Brown
- DT Pro Member: 0151
Funny story... I tried mine with 3 different USB cables on 3 different machines on different USB ports on each. Only after the guy that sold me the pro-micro sent another did I realize that all 3 were bad. Did you socket the pro-micro? If so, I'd suggest trying another in order to rule out that the pro-micro is bad. I'd also check the USB cables on something that works to verify your test cables.ergya wrote: ↑Hi, thanks for the answer, you mean the USB cable? I tried with 2 different cable, tried with 2 different USB port on my computer, no luck .
-
- Location: Hungary
- Main keyboard: Ducky One 2
- Main mouse: Roccat Kone Pure Owl-Eye
- Favorite switch: Thick Clicks
- DT Pro Member: -
I tried with 3 different cables, with the 1 I flashed the controller too, same... for the pro-micro, they mentioned for test 1 that I should see "R04" code too, I did not see any (checked multiple times), donno what that means but maybe that is the problem. I also tried with 1.10, same outcome.chuckdee wrote: ↑ergya wrote: ↑Funny story... I tried mine with 3 different USB cables on 3 different machines on different USB ports on each. Only after the guy that sold me the pro-micro sent another did I realize that all 3 were bad. Did you socket the pro-micro? If so, I'd suggest trying another in order to rule out that the pro-micro is bad. I'd also check the USB cables on something that works to verify your test cables.
- ThePillenwerfer
- Location: Yorkshire, England.
- Main keyboard: IBM KB-8926
- Main mouse: Unbranded optical PS/2.
- Favorite switch: Blue Alps
- DT Pro Member: -
- Contact:
I successfully followed this guide last week. I did encounter one problem which nobody else seems to have mentioned.
AVRdude was on my computer as part of the Arduino IDE. When I tried to upload the .HEX file it produced errors. I eventually fixed it by temporarily renaming the ~/.avrduderc file.
Thanks to Scottc for his original instructions and to Arakula for his modified firmware.
AVRdude was on my computer as part of the Arduino IDE. When I tried to upload the .HEX file it produced errors. I eventually fixed it by temporarily renaming the ~/.avrduderc file.
Thanks to Scottc for his original instructions and to Arakula for his modified firmware.
-
- Location: United States
- DT Pro Member: -
Hi, does anyone have an idea what I could be doing wrong here? I'm trying to convert a Model F XT to USB
I flash the atmega32u4 hex to the pro micro:
then figured out which pinouts go to which wires on my 5 pin adapter:
and connected them to the pro micro:
But when I connect the pro micro to the computer nothing happens. I've tried both Windows and Linux.
I flash the atmega32u4 hex to the pro micro:
Spoiler:
Spoiler:
Spoiler:
- snacksthecat
- ✶✶✶✶
- Location: USA
- Main keyboard: SSK
- Main mouse: BenQ ZOWIE EC1-A
- DT Pro Member: 0205
- Contact:
For my XT, I had to connect the plate/case Gnd wire to the circuit Gnd before it would work. I don't think there is any harm in trying this but maybe someone else can chime in with a more informed perspective.
- ThePillenwerfer
- Location: Yorkshire, England.
- Main keyboard: IBM KB-8926
- Main mouse: Unbranded optical PS/2.
- Favorite switch: Blue Alps
- DT Pro Member: -
- Contact:
When you say nothing happens do you mean that the computer isn't even aware that a USB device has been plugged in? Windows will make a noise and you can check on Linux with
If it is detecting but not working the only thing I can suggest is checking the wiring, again, remembering that the diagram view is as though you are looking into the socket from the front, ie where the plug goes. It could be something as silly as one of the croc-clips not making a decent connexion.
Not many keyboards need the Reset line connected but it's possible that yours is one of the few that do so connecting that — Pin 3 of the 5-pin DIN socket to Hole 10 on the ProMicro — wouldn't hurt.
Do you know that your keyboard works? Somebody else recently had a similar problem which turned out to be a break in the cable where it goes into the keyboard.
Code: Select all
lsusb
Not many keyboards need the Reset line connected but it's possible that yours is one of the few that do so connecting that — Pin 3 of the 5-pin DIN socket to Hole 10 on the ProMicro — wouldn't hurt.
Do you know that your keyboard works? Somebody else recently had a similar problem which turned out to be a break in the cable where it goes into the keyboard.
-
- Location: United States
- DT Pro Member: -
Connecting the ground wire didn't seem to have an effect.
It looks like the computer is detecting the keyboard, but typing does nothing. Thanks for the suggestions, i'll try connecting the reset.
I don't know for certain that the keyboard works, but the cable is intact.
It looks like the computer is detecting the keyboard, but typing does nothing. Thanks for the suggestions, i'll try connecting the reset.
I don't know for certain that the keyboard works, but the cable is intact.
- ThePillenwerfer
- Location: Yorkshire, England.
- Main keyboard: IBM KB-8926
- Main mouse: Unbranded optical PS/2.
- Favorite switch: Blue Alps
- DT Pro Member: -
- Contact:
I've had a closer look at your screen-shot and spotted that you flashed the original firmware. With that the reset line is inoperative on a ProMicro.
On page two of this thread post187874.html#p187874 is a modified version which enables it on Hole 10.
On page two of this thread post187874.html#p187874 is a modified version which enables it on Hole 10.
- ThePillenwerfer
- Location: Yorkshire, England.
- Main keyboard: IBM KB-8926
- Main mouse: Unbranded optical PS/2.
- Favorite switch: Blue Alps
- DT Pro Member: -
- Contact:
I'm afraid that I'm out of ideas. You did the hard part, flashing the code, fine and the wiring is simple and looks correct from the photos.
Have you tried HID_Listen with it connected? That would show if the keyboard is sending any sort of output even if the OS can't understand it for some reason.
If you've got or can borrow another keyboard with a 5-pin Din or PS/2 connector it would be handy to try that as if that worked it would strongly indicate that there's a problem with your keyboard.
Good luck.
Have you tried HID_Listen with it connected? That would show if the keyboard is sending any sort of output even if the OS can't understand it for some reason.
If you've got or can borrow another keyboard with a 5-pin Din or PS/2 connector it would be handy to try that as if that worked it would strongly indicate that there's a problem with your keyboard.
Good luck.