How to use a Pro Micro as a cheap controller/converter
-
- DT Pro Member: -
The new Pro Micro arrived today and this time I used the Soarer's Converter instead of TMK. My Model M woke up! It lives! Thanks for everybody for their input! This keyboard feels amazing!
Some keys are mapped wrong and I followed Soarer's instructions on this, but scwr did not find Soarer's converter and therefore did not push the new config file to pro micro. Any ideas on how to fix this?
Some keys are mapped wrong and I followed Soarer's instructions on this, but scwr did not find Soarer's converter and therefore did not push the new config file to pro micro. Any ideas on how to fix this?
- jorgenslee
- Location: Davao, Philippines
- Main keyboard: Viper/HHKB
- Main mouse: Logitech MX Master
- Favorite switch: Ergo Clear
- DT Pro Member: -
Just adding here, if you are on Mac(yosemite), this commands works for me in identifying the device:
I usually got this: /dev/cu.usbmodem1441
Code: Select all
ls /dev/cu.*
- gogusrl
- Location: Romania
- Main keyboard: Cherry G80-1851
- Main mouse: Logitech G9x
- Favorite switch: linear stuff
- DT Pro Member: -
Ok, I want to buy an arduino clone to use in my hand wired keyboard.
These are my options, which one do I pick ?
http://www.robofun.ro/arduino/a-star-32u4-mini-sv
http://www.robofun.ro/arduino/a-star-32u4-mini-ulv
http://www.robofun.ro/arduino/a-star-32u4-mini-lv
http://www.robofun.ro/arduino/arduino_micro
Should mention I end up with 14 rows, 6 columns so a regular pro micro will not be enough.
These are my options, which one do I pick ?
http://www.robofun.ro/arduino/a-star-32u4-mini-sv
http://www.robofun.ro/arduino/a-star-32u4-mini-ulv
http://www.robofun.ro/arduino/a-star-32u4-mini-lv
http://www.robofun.ro/arduino/arduino_micro
Should mention I end up with 14 rows, 6 columns so a regular pro micro will not be enough.
- 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: -
Those are all very expensive... for that price you might as well get a Teensy or Teensy++.
- HzFaq
- Location: Windsor, UK
- Main keyboard: Phantom
- Main mouse: CST L-Trac
- Favorite switch: MX Clears
- DT Pro Member: -
I used one of these for an ADB converter which worked fine, but the postage took about a month...
http://www.ebay.co.uk/itm/360681719211? ... EBIDX%3AIT
http://www.ebay.co.uk/itm/360681719211? ... EBIDX%3AIT
- gogusrl
- Location: Romania
- Main keyboard: Cherry G80-1851
- Main mouse: Logitech G9x
- Favorite switch: linear stuff
- DT Pro Member: -
Is this an option ?
http://www.robofun.ro/teensy-lc
edit : I already bought a few pro micro's for converters but it doesn't have enough pins.
edit : they have the teensy++ as well but it's ~60$.
http://www.robofun.ro/teensy-lc
edit : I already bought a few pro micro's for converters but it doesn't have enough pins.
edit : they have the teensy++ as well but it's ~60$.
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
Teensy LC is an ARM thing, not very well supported yet.
exp-tech.de has Teensy 2.0 for a decent price (20,50€ plus shipping from Germany - which might be a lot, but if you buy more things from them it's not so prohibitive).
EDIT: watterott is even cheaper, again shipping from DE.
exp-tech.de has Teensy 2.0 for a decent price (20,50€ plus shipping from Germany - which might be a lot, but if you buy more things from them it's not so prohibitive).
EDIT: watterott is even cheaper, again shipping from DE.
- Oobly
- Location: Finland
- Main keyboard: GON NerD60, Vortex case
- Main mouse: Cyborg R.A.T 3
- Favorite switch: Trampoline modded 62g ErgoClears
- DT Pro Member: -
I got my Teensy's from here: http://floris.cc/shop/en/teensy/952-teensy-3e.html
- nathanrosspowell
- Main keyboard: KUL ES-87
- Main mouse: Logitech G400
- Favorite switch: Cheery MX Clear
- DT Pro Member: -
I didn't see anyone post successful steps to uploading firmware via Windows. I have had some success today, so I will post the steps:
Software:
* Drivers: https://learn.sparkfun.com/tutorials/pr ... okup-guide
* Loader: http://xloader.russemotto.com/
* Putty: http://selfmod.net/using-usb-to-serial- ... ith-putty/
Steps:
1) Connect the Pro Micro to USB
2) Point it at the downloaded drivers if it doesn't install automatically
3) Open the device manager to see what COM port it connected on - e.g. COM7
4) Open a putty serial connection at that port at 1200
5) When you close this connection, the Pro Micro will go into bootloader
6) Check in the device manager, the Pro Micro will be connected on a different port for a few seconds - e.g. COM8
7) Add this line to `devices.txt` in the XLoader folder: `Leonardo(32U4);atmega32U4;avr109;57600`
8) Set up the XLoader with the bootloader port - e.g. COM8
9) Repeat the putty connection
10) When you close the connection, be ready to click 'Upload' on XLoader
I can't 100% verify as I think I have an issue with my hex file at the moment. I will update when I have more information.
Software:
* Drivers: https://learn.sparkfun.com/tutorials/pr ... okup-guide
* Loader: http://xloader.russemotto.com/
* Putty: http://selfmod.net/using-usb-to-serial- ... ith-putty/
Steps:
1) Connect the Pro Micro to USB
2) Point it at the downloaded drivers if it doesn't install automatically
3) Open the device manager to see what COM port it connected on - e.g. COM7
4) Open a putty serial connection at that port at 1200
5) When you close this connection, the Pro Micro will go into bootloader
6) Check in the device manager, the Pro Micro will be connected on a different port for a few seconds - e.g. COM8
7) Add this line to `devices.txt` in the XLoader folder: `Leonardo(32U4);atmega32U4;avr109;57600`
8) Set up the XLoader with the bootloader port - e.g. COM8
9) Repeat the putty connection
10) When you close the connection, be ready to click 'Upload' on XLoader
I can't 100% verify as I think I have an issue with my hex file at the moment. I will update when I have more information.
- jou
- Location: Switzerland
- Main keyboard: Ergodox
- Main mouse: Apple Magic Trackpad
- Favorite switch: Not sure yet
- DT Pro Member: -
Connecting to the serial port with 1200 baud to kick the board into bootloader only works for Arduino sketches.
I use a pair of tweezers to get into the bootloader:
I use a pair of tweezers to get into the bootloader:
- Squeeze them to about the right distance
- Touch RST and GND with the two ends of it
- Lift one side
- Put the lifted up side back on the pad
- Lift the whole tweezer
- nathanrosspowell
- Main keyboard: KUL ES-87
- Main mouse: Logitech G400
- Favorite switch: Cheery MX Clear
- DT Pro Member: -
This is working for me, but when in bootloader mode I can't figure out which port it is on (under windows)jou wrote: ↑Connecting to the serial port with 1200 baud to kick the board into bootloader only works for Arduino sketches.
I use a pair of tweezers to get into the bootloader:
With that, I never had much of a trouble to get into the bootloader reliably.
- Squeeze them to about the right distance
- Touch RST and GND with the two ends of it
- Lift one side
- Put the lifted up side back on the pad
- Lift the whole tweezer
I can see it as an Arduino under device manager before for a second before it reverts back to a HID input with the name that I flashed with method of using putty.
Overall, getting quick confused and frustrated with this little board
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
Would this help?nathanrosspowell wrote: ↑This is working for me, but when in bootloader mode I can't figure out which port it is on (under windows)
I can see it as an Arduino under device manager before for a second before it reverts back to a HID input with the name that I flashed with method of using putty.
- HzFaq
- Location: Windsor, UK
- Main keyboard: Phantom
- Main mouse: CST L-Trac
- Favorite switch: MX Clears
- DT Pro Member: -
I think if you look in device manager it's under the COM ports header. I know mine is COM7 normally and COM3 or something in bootloader mode.
edit - The heading is Ports (COM & LPT) or something similar.
edit - The heading is Ports (COM & LPT) or something similar.
-
- Location: United States
- Main keyboard: Ducky Mini YOTH w/ mx reds
- Main mouse: G300s
- DT Pro Member: -
For some reason XLoader can't flash my .hex file. Can someone help me?nathanrosspowell wrote: ↑I didn't see anyone post successful steps to uploading firmware via Windows. I have had some success today, so I will post the steps:
Software:
* Drivers: https://learn.sparkfun.com/tutorials/pr ... okup-guide
* Loader: http://xloader.russemotto.com/
* Putty: http://selfmod.net/using-usb-to-serial- ... ith-putty/
Steps:
1) Connect the Pro Micro to USB
2) Point it at the downloaded drivers if it doesn't install automatically
3) Open the device manager to see what COM port it connected on - e.g. COM7
4) Open a putty serial connection at that port at 1200
5) When you close this connection, the Pro Micro will go into bootloader
6) Check in the device manager, the Pro Micro will be connected on a different port for a few seconds - e.g. COM8
7) Add this line to `devices.txt` in the XLoader folder: `Leonardo(32U4);atmega32U4;avr109;57600`
8) Set up the XLoader with the bootloader port - e.g. COM8
9) Repeat the putty connection
10) When you close the connection, be ready to click 'Upload' on XLoader
I can't 100% verify as I think I have an issue with my hex file at the moment. I will update when I have more information.
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
You'll need to be more specific than this if you want us to diagnose a problem.Tiny wrote: ↑ For some reason XLoader can't flash my .hex file. Can someone help me?
-
- Location: United States
- Main keyboard: Ducky Mini YOTH w/ mx reds
- Main mouse: G300s
- DT Pro Member: -
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
Are the drivers OK, i.e. can you upload Arduino sketches from Arduino GUI? (I.e. is your Pro Micro working properly?)
Are you sure that you can put your Pro Micro into the bootloader mode (i.e. do you see it being enumerated as a different COM port for 8 seconds after reset)?
Any (error or other) messages from the XLoader?
Are you sure that you can put your Pro Micro into the bootloader mode (i.e. do you see it being enumerated as a different COM port for 8 seconds after reset)?
Any (error or other) messages from the XLoader?
-
- Location: United States
- Main keyboard: Ducky Mini YOTH w/ mx reds
- Main mouse: G300s
- DT Pro Member: -
Can confirm that I am entering bootloader mode fine as the COM port changes from 3 to 4 and XLoader does not output any error messages only says that the file failed to upload. I am not sure whether the drivers are OK as I have not tried to upload Arduino sketches or used the Arduino GUI. I think testing the drivers would be the best place to start for me. Will be back with an update.flabbergast wrote: ↑Are the drivers OK, i.e. can you upload Arduino sketches from Arduino GUI? (I.e. is your Pro Micro working properly?)
Are you sure that you can put your Pro Micro into the bootloader mode (i.e. do you see it being enumerated as a different COM port for 8 seconds after reset)?
Any (error or other) messages from the XLoader?
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
Well, Arduino is a java-based behemoth, but it also comes with 'avrdude.exe' which is another program you can use for uploading hex files, and that one is terminal-based, so you can make it be very verbose in what's going on.
-
- Location: United States
- Main keyboard: Ducky Mini YOTH w/ mx reds
- Main mouse: G300s
- DT Pro Member: -
I'm actually in an AP CS class that works primarily with Java so that makes me really excited! I can use my cs knowledge for something!flabbergast wrote: ↑Well, Arduino is a java-based behemoth, but it also comes with 'avrdude.exe' which is another program you can use for uploading hex files, and that one is terminal-based, so you can make it be very verbose in what's going on.
- jou
- Location: Switzerland
- Main keyboard: Ergodox
- Main mouse: Apple Magic Trackpad
- Favorite switch: Not sure yet
- DT Pro Member: -
Knowing Java won't help you much unfortunately. The Arduimo app is a wrapper around GCC and avrdude (plus a basic serial console). You still need to write C code for the micro controller…
And Java is a terrible platform for GUI applications
And Java is a terrible platform for GUI applications
-
- Location: US
- Main keyboard: Omnikey 102 Blackheart
- Main mouse: Kensington Expert Mouse
- Favorite switch: White Alps
- DT Pro Member: 0174
Here's something that MAY be helpful for this. I was having a hard time getting it into programming by mashing the reset leads, and an even worse time trying to do it in the half-broken FreeBSD install I had... but this worked in a Win10 install with minimal hassles.
http://electronicsdesign.nl/wp/promicro_avrdude/
The trick seems to be, after you run the $port.Open() command he suggests, you get a couple seconds of window to start the programmer running- before it detaches the new port so prepare the call in a second window. If it fails, you can keep repeating the steps from $port.Open().
http://electronicsdesign.nl/wp/promicro_avrdude/
The trick seems to be, after you run the $port.Open() command he suggests, you get a couple seconds of window to start the programmer running- before it detaches the new port so prepare the call in a second window. If it fails, you can keep repeating the steps from $port.Open().
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
The "trick" to open the port with 1200 baud only works when the pro micro is running an arduino sketch (it requires the pro micro to enumerate as a serial port, and the firmware has to monitor the port for this event and reset the controller. Firmware compiled in arduino GUI automatically does this; none of the keyboard firmwares do this).
-
- Location: US
- Main keyboard: Omnikey 102 Blackheart
- Main mouse: Kensington Expert Mouse
- Favorite switch: White Alps
- DT Pro Member: 0174
Fair enough. These things are almost cheap enough that you can throw them away instead of re-flashing. I guess I'm probably also biased because the Soarer firmware's "updatable config" feature and lack of recent updates means I just have to flash it once, and then work with the mapping tools in the future. Firmware that requires recompiling may be more of a saga.
- flabbergast
- Location: Southampton, UK
- DT Pro Member: 0120
- Contact:
Sure, it's good to be aware of that anyway
I personally have never had a problem with getting into bootloader on these boards; but then I don't use Windows and a lot of problems seem to come from Windows' handling of serial ports. By the way, on handwired boards where I expect to have to do the resetting I a lot, I just wire a pushbutton between the reset and ground pads. Pressing a button twice quickly is then a breeze.
I personally have never had a problem with getting into bootloader on these boards; but then I don't use Windows and a lot of problems seem to come from Windows' handling of serial ports. By the way, on handwired boards where I expect to have to do the resetting I a lot, I just wire a pushbutton between the reset and ground pads. Pressing a button twice quickly is then a breeze.
- gogusrl
- Location: Romania
- Main keyboard: Cherry G80-1851
- Main mouse: Logitech G9x
- Favorite switch: linear stuff
- DT Pro Member: -
Anyone tried this ? http://blog.zakkemble.co.uk/avrdudess-a ... r-avrdude/