Teensy 2.0 alternatives, ATmega32U4

philpirj wrote:18 pins should be sufficient for 6*12 = 72 keys, or 8 * 10 = 80 keys, making this one a good candidate for diy 60% keyboards.

Exactly how do you count that? I'm new to this stuff and need to find a controller to adapt a bunch of 122-key keyboards to USB. The Teensy is too expensive so I was considering the Pro Trinket instead which I can purchase locally, but I don't know if it comes with enough pins.
tactica
User avatar

Unread post21 Mar 2015, 10:48

User avatar
X
tactica
 
Posts: 111
Joined: 15 Mar 2015, 10:34
Location: La Coruña, Spain
Main keyboard: IBM Model M
Main mouse: BG Venom
Favorite switch: Space Invaders > Alps Blue > BS
Club member: -
 
You just need a converter. Teensies can do both jobs: converters and controllers. Controllers replace the keyboard's original circuitry (or install as the heart in a custom keyboard) and need a lot of pins to drive the matrix. Converters use the original circuitry to do the complex stuff, and just need 4 pins to handle AT etc.

The Pro Micro is kinda sorta ideal for a converter. But getting Soarer's Converter software onto it is a pain in the arse I can't even remember how to do and don't want to! And I've found my Pro Micro board is much more picky about USB power than any of my Teensies. I definitely wouldn't want one in the heart of a custom keyboard where it's INCREDIBLY DIFFICULT to replace. A keyboard that can't work reliably every place I use it, is broken to me.
Muirium
User avatar
µ

Unread post21 Mar 2015, 10:51

User avatar
X
Muirium
µ
 
Posts: 22409
Joined: 03 Feb 2013, 10:11
Location: Edinburgh, Scotland
Main keyboard: IBM 4704 Kishsaver
Main mouse: Apple Magic Trackpad
Favorite switch: Gotta Try 'Em All
Club member: -
 
Ahhhh... So, basically any board with a few spare pins will do as converter. That's good to know, thanks! :)
tactica
User avatar

Unread post21 Mar 2015, 11:17

User avatar
X
tactica
 
Posts: 111
Joined: 15 Mar 2015, 10:34
Location: La Coruña, Spain
Main keyboard: IBM Model M
Main mouse: BG Venom
Favorite switch: Space Invaders > Alps Blue > BS
Club member: -
 
Well, in short, any board with an ATMega 32u4!
scottc
User avatar

Unread post21 Mar 2015, 11:19

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
What's wrong with the 328? 32u4 based boards tend to be on pricey side here and I'm on a budget to refurbish & convert old keyboards...
tactica
User avatar

Unread post21 Mar 2015, 12:40

User avatar
X
tactica
 
Posts: 111
Joined: 15 Mar 2015, 10:34
Location: La Coruña, Spain
Main keyboard: IBM Model M
Main mouse: BG Venom
Favorite switch: Space Invaders > Alps Blue > BS
Club member: -
 
Most firmware is for the 32u4 because it has hardware USB support. On the 328, you can use v-usb, but Soarer's converter/controller doesn't support it to my knowledge. I think that TMK used to support it or partially supports it, but I'm not sure about that.
scottc
User avatar

Unread post21 Mar 2015, 12:45

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
TMK dropped v-usb many releases ago. if you look at the commit history you may find a version that is compatible
matt3o
User avatar
-[°_°]-

Unread post21 Mar 2015, 13:16

User avatar
X
matt3o
-[°_°]-
 
Posts: 8358
Joined: 03 Sep 2012, 15:14
Location: Italy
Main keyboard: WhiteFox
Main mouse: Anywhere MX
Favorite switch: Anything, really
Club member: 0030
 
 
This signature intentionally left blank...
OK, in the end I found a local source of cheap (just under €10) Pro Micros, so I suppose I'll go with that. There's that seller from Hong Kong selling them at ~$6 but I don't want to get a Paypal account just for this, and besides shipping would take forever.
tactica
User avatar

Unread post21 Mar 2015, 13:57

User avatar
X
tactica
 
Posts: 111
Joined: 15 Mar 2015, 10:34
Location: La Coruña, Spain
Main keyboard: IBM Model M
Main mouse: BG Venom
Favorite switch: Space Invaders > Alps Blue > BS
Club member: -
 
Not as long as configuring the damn things feels! Good luck.
Muirium
User avatar
µ

Unread post21 Mar 2015, 15:24

User avatar
X
Muirium
µ
 
Posts: 22409
Joined: 03 Feb 2013, 10:11
Location: Edinburgh, Scotland
Main keyboard: IBM 4704 Kishsaver
Main mouse: Apple Magic Trackpad
Favorite switch: Gotta Try 'Em All
Club member: -
 
 
10 euro for Pro Micros is pretty bad. I just ordered 5 for $21 shipped (AKA, the price of a Teensy) off of aliexpress.com a few weeks ago!
scottc
User avatar

Unread post21 Mar 2015, 15:30

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
Yeah, I found that offer now and am feeling quite tempted... Will have to wait, I'm broke right now :/

Again the problem is that you may have two wait two months for the goods to arrive... <sigh>
tactica
User avatar

Unread post21 Mar 2015, 18:14

User avatar
X
tactica
 
Posts: 111
Joined: 15 Mar 2015, 10:34
Location: La Coruña, Spain
Main keyboard: IBM Model M
Main mouse: BG Venom
Favorite switch: Space Invaders > Alps Blue > BS
Club member: -
 
Most of the gear that I have ordered from China to the US has taken 2-3 weeks, 4-5 at the outside.

However, I don't know how they ship Teensies so fast, but I have ordered several (to Atlanta from the West Coast) over the last 3 years, and they often get here in 72 hours.

Although $21 is a lot for a small thing, they always work, properly, immediately, with Soarer's firmware.
fohat
User avatar
Elder Messenger

Unread post21 Mar 2015, 18:34

User avatar
X
fohat
Elder Messenger
 
Posts: 2185
Joined: 07 Oct 2011, 02:09
Location: Atlanta, Georgia
Main keyboard: Model F 122-key terminal
Main mouse: Microsoft Optical Mouse
Favorite switch: Model F Buckling Spring
Club member: 0158
 
tactica wrote:Yeah, I found that offer now and am feeling quite tempted... Will have to wait, I'm broke right now :/

Again the problem is that you may have two wait two months for the goods to arrive... <sigh>

China is usually one month for me, no more. Even Aliexpress. :)
scottc
User avatar

Unread post21 Mar 2015, 21:34

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
If someone need to get ATMega32u4 chips, try verical.com.
Their price is as low as aliexpress, and they offer free international shipping for now(until end of March?).
hasu
User avatar

Unread post24 Mar 2015, 17:00

User avatar
X
hasu
 
Posts: 356
Joined: 02 Sep 2011, 14:47
Location: Japan
Main keyboard: HHKB
Main mouse: HHKB
Favorite switch: Topre
Club member: -
 
My ATmega32U4 Sparkfun Pro Micro knockoff boards are here! 5.77 USD apiece, I got ten:

http://www.ebay.com/itm/171715861393

Once I find some time (ha!) I'll start playing with Soarer's Converter, TMK, etc. and report in. They don't have quite enough pins to be a full-on controller replacement, and they have mini-USB instead of micro-USB. But they should make very nice converters.
XMIT
User avatar
[ XMIT ]

Unread post07 Apr 2015, 19:20

User avatar
X
XMIT
[ XMIT ]
 
Posts: 3365
Joined: 21 Dec 2014, 15:32
Location: Austin, TX area
Main keyboard: XMIT Hall Effect
Main mouse: CST L-Trac Trackball
Favorite switch: XMIT 60g Tactile Hall Effect
Club member: 0093
 
Yours have Mini USB?! Mine all came with micro. Nice!

For future reference, you can sometimes get Pro Micros on aliexpress etc. for a little cheaper if you plan to buy in bulk.
scottc
User avatar

Unread post07 Apr 2015, 19:23

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
Hmm. Good point. I'll shop around a little bit before ordering the next batch. I may be more interested in Teensy 3.0 competitors, anything with more pins for controller replacements.
XMIT
User avatar
[ XMIT ]

Unread post07 Apr 2015, 19:27

User avatar
X
XMIT
[ XMIT ]
 
Posts: 3365
Joined: 21 Dec 2014, 15:32
Location: Austin, TX area
Main keyboard: XMIT Hall Effect
Main mouse: CST L-Trac Trackball
Favorite switch: XMIT 60g Tactile Hall Effect
Club member: 0093
 
ARM boards are the future for controllers and converters, that's for sure. But in the short- to medium-term, ATMega is here to stay. Hopefully, Soarer will return triumphantly with a new ARM-compatible firmware!
scottc
User avatar

Unread post07 Apr 2015, 19:30

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
Maybe. But ATmega32 is still cheap and sufficient. I cut my teeth on Intel 8051 and am just grateful for instructions that (mostly) finish in one machine cycle running at a very speedy 16MHz. Plus I like to keep my keyboard on a strict power budget as I often connect them to laptops or tablets.

I do have an idea for a Hall Effect keyboard mod that reads raw values from the sensors run through an ADC to do interesting things. That would definitely benefit from more CPU power.
XMIT
User avatar
[ XMIT ]

Unread post07 Apr 2015, 19:43

User avatar
X
XMIT
[ XMIT ]
 
Posts: 3365
Joined: 21 Dec 2014, 15:32
Location: Austin, TX area
Main keyboard: XMIT Hall Effect
Main mouse: CST L-Trac Trackball
Favorite switch: XMIT 60g Tactile Hall Effect
Club member: 0093
 
http://www.ebay.com/itm/1Pcs-XTWduino-N ... 462cb566c8

Despite being less than ideal with the pin headers soldered in, would these be viable? I want to get 4 or so, and do it on the cheap.
Touch_It
User avatar

Unread post07 Apr 2015, 22:48

User avatar
X
Touch_It
 
Posts: 646
Joined: 22 Sep 2014, 22:52
Location: Nebraska, United States.
Main keyboard: Unicomp Classic USB 103 key (work) IBM F 4704 107
Main mouse: Logitech g502 Proteus Core
Favorite switch: Buckling spring (yet to try Beam Spring)
 
They're an ATMega 328P, you need a 32u4. You can get some cheaply here.
scottc
User avatar

Unread post07 Apr 2015, 22:50

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
scottc wrote:They're an ATMega 328P, you need a 32u4. You can get some cheaply here.


Thanks. Obviously I'm incapable of reading today :cry:
Touch_It
User avatar

Unread post07 Apr 2015, 22:58

User avatar
X
Touch_It
 
Posts: 646
Joined: 22 Sep 2014, 22:52
Location: Nebraska, United States.
Main keyboard: Unicomp Classic USB 103 key (work) IBM F 4704 107
Main mouse: Logitech g502 Proteus Core
Favorite switch: Buckling spring (yet to try Beam Spring)
 
That looks like a perfectly workable 32u4 board. It is nearly identical to the ones I have. Same reference design but clearly a different board based on silkscreening.

But that's a great price. I may order 20 more. My goal is to have one converter per keyboard. Then, when The Keypocalypse comes, all of the boards that I sell will come with a USB port. :-D
XMIT
User avatar
[ XMIT ]

Unread post07 Apr 2015, 23:04

User avatar
X
XMIT
[ XMIT ]
 
Posts: 3365
Joined: 21 Dec 2014, 15:32
Location: Austin, TX area
Main keyboard: XMIT Hall Effect
Main mouse: CST L-Trac Trackball
Favorite switch: XMIT 60g Tactile Hall Effect
Club member: 0093
 
Note that these guys have Micro USB, not Mini USB! I think they go even cheaper if you get a larger amount. Depends on the seller. I also recommend banggood.com. But use a spam email, they almost definitely sell your details... months later, I still get random mails about LEDs in Chinese. :?
scottc
User avatar

Unread post07 Apr 2015, 23:08

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
Well, I'm typing this post on a Model M 1391401 connected through a Sparkfun Pro Micro running Soarer's Converter. I did all the programming on my Mac.

The directions with Soarer's Converter are appropriate. I happened to have a spare SDL cable sitting around and these are my pinouts:

Red - VCC
Brown - PD1 - "2" on the Pro Micro
Black - GND
White - PD0 - "3" on the Pro Micro

Installing CrossPack from http://www.obdev.at/products/crosspack/index.html worked for me. This is the command I used for flashing:

avrdude -p atmega32u4 -P /dev/cu.usbmodem1421 -c avr109 -U flash:w:Soarer_a t2usb_v1.12_atmega32u4.hex

Shorting RST and GND twice in succession put the Pro Micro in bootloader mode. The tools work just fine and detect a Soarer's Converter.

It took me a little under two hours to figure all of this out, including: installing the (non-helpful) Arduino IDE, reading through a bunch of docs, determining pinouts, and some other trial and error.

This is great for my Model Ms and AT keyboards but doesn't get me ADB or other obscure protocols. For this I'll play with Soarer's Controller and/or TMK. This was just a "hello world" for getting started.

Code: Select all
$ ./scinfo
scinfo v1.10
scinfo: looking for Soarer's Converter: found
scinfo: sending info request: ok
device: ok

Protocol Version: v1.00
Code Version: v1.12
Max Settings Version: v1.01
Current Settings Version: v0.00
SRAM Size: 2560 bytes
SRAM Free: 1809 bytes
EEPROM Size: 1024 bytes
EEPROM Free: 1020 bytes


IMAG1450.jpg

IMAG1452.jpg
XMIT
User avatar
[ XMIT ]

Unread post11 Apr 2015, 04:14

User avatar
X
XMIT
[ XMIT ]
 
Posts: 3365
Joined: 21 Dec 2014, 15:32
Location: Austin, TX area
Main keyboard: XMIT Hall Effect
Main mouse: CST L-Trac Trackball
Favorite switch: XMIT 60g Tactile Hall Effect
Club member: 0093
 
I have done the same with a couple of model Ms 122.
idollar
i$

Unread post11 Apr 2015, 07:25

X
idollar
i$
 
Posts: 1312
Joined: 24 Oct 2014, 15:57
Location: Germany (Frankfurt area)
Main keyboard: IBM F or M
Favorite switch: BS
Club member: 0091
 
Yeah, you'll need TMK for ADB. A task I need to get on with for myself. The trouble with TMK, besides needing to build from source, is the fact that key mapping is defined in the source code directly, so you have to recompile and reflash for any edits. Soarer's is more elegant for the kind of little nitpicky edits I so often make! The effort between an idea and its implementation is that bit lower.

Soarer's Controller, meanwhile, is an option for any boards where you fancy pulling out the original controller to drive the matrix directly for yourself. Not always the easiest thing to do, physically speaking. And you need a Teensy (or whatever) for each and every keyboard. Converters are much simpler to share!
Muirium
User avatar
µ

Unread post11 Apr 2015, 07:29

User avatar
X
Muirium
µ
 
Posts: 22409
Joined: 03 Feb 2013, 10:11
Location: Edinburgh, Scotland
Main keyboard: IBM 4704 Kishsaver
Main mouse: Apple Magic Trackpad
Favorite switch: Gotta Try 'Em All
Club member: -
 
 
I'm sorry that I didn't think to mention it before, XMIT, but I actually wrote a tutorial on how to do this with Soarer's converter: workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html
I probably could've saved you a couple of hours of pain!
scottc
User avatar

Unread post11 Apr 2015, 11:19

User avatar
X
scottc
 
Posts: 5407
Joined: 06 Oct 2013, 21:09
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
Club member: 0081
 
Thanks scottc. Yep, my local notes file looks almost exactly like your other forum post. I don't mind the time invested, though. I would have to climb the learning curve one way or another. Plus I was being difficult and doing this on my Mac laptop. Yes I know this is much easier in Linux but I just wanted to see if it was possible to do this from the Mac.

I'm hunting for a cheaper alternative to the Pro Micro that can serve as a replacement controller as well. I have a couple of older boards that may need it, as well as some custom build projects that I'm considering. 20 I/O pins is *just barely* enough for a 100-position matrix and will cover some of the smaller keyboards.
XMIT
User avatar
[ XMIT ]

Unread post11 Apr 2015, 12:07

User avatar
X
XMIT
[ XMIT ]
 
Posts: 3365
Joined: 21 Dec 2014, 15:32
Location: Austin, TX area
Main keyboard: XMIT Hall Effect
Main mouse: CST L-Trac Trackball
Favorite switch: XMIT 60g Tactile Hall Effect
Club member: 0093
 
Previous

Who is online

Users browsing this forum: andrewjoy, Thereminz, wobbled and 41 guests