Author Topic: AT32u4 not-a-teensy ... is there already a thread?  (Read 4741 times)

0 Members and 1 Guest are viewing this topic.

Offline AKmalamute

  • HHKB Scrub
  • Thread Starter
  • Posts: 837
  • Location: Western WA, USA
AT32u4 not-a-teensy ... is there already a thread?
« on: Sat, 12 October 2013, 19:50:12 »
So, looking at eBay, I see things around $5-8 shipped, that have (according to description) an Atmel Atmega32u4 microcontroller ... This is the thing that makes the Teensy so valuable, right?

But close examination of the board shows they've attached it differently; the pins have different meanings to the microcontroller.

Lets say (hypothetically  :p ) I bought one of these things ... how hard is it to make a keyboard out of them? just software re-writes, or since they seem to move the ground around would I for-sure need a cross wired standoff to match the Teensy's layout (assuming an off-the-shelf PCB like a phantom or something)

If the test subject were to then cross wire it to where the PCB honestly thought it was a Teensy, would existing firmware work? Funky case options at that point, I can only guess but it would save $10 on the project.

 For someone who's never written a device driver in his ilfe (and didn't get too far through 'C for dummies' either) is there a decent tutorial, or has someone collected together other people's tutorials to take a project from "you have a breakout knockoff in your hands" through to "you have a keyboard you're using to post to the internet with" ...?

HHKB-lite2, Dvorak user

Offline Soarer

  • * Moderator
  • Posts: 1918
  • Location: UK
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #1 on: Sat, 12 October 2013, 20:10:55 »
Firmware will work, but there's not much you can do about the fact they haven't wired all the pins - it's only got enough pins for 72 keys, I think, and then there wouldn't be any left for lock LEDs. So not ideal for a controller, although you could use some cheap external logic chips to expand it (e.g. 74138).

Great for converters though :D

The pin names are just Arduino names - they correspond to the '32U4 names in some bizarre manner, as BCG's diagram shows for some of them in that link.  The rest can be figured out from the schematic - it's a SparkFun design, so there's lots of information there.

Offline TheFlyingRaccoon

  • HHKB Pro
  • * Maker
  • Posts: 666
  • Location: Texas
  • Cable maker and future engineer
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #2 on: Sat, 12 October 2013, 20:37:29 »
Firmware will work, but there's not much you can do about the fact they haven't wired all the pins - it's only got enough pins for 72 keys, I think, and then there wouldn't be any left for lock LEDs. So not ideal for a controller, although you could use some cheap external logic chips to expand it (e.g. 74138).

Great for converters though :D

The pin names are just Arduino names - they correspond to the '32U4 names in some bizarre manner, as BCG's diagram shows for some of them in that link.  The rest can be figured out from the schematic - it's a SparkFun design, so there's lots of information there.

Thanks for the information Soarer! I was thinking along the same lines. I see this useful as a converter but not as a keyboard controller.
HHKB Pro 2   SmallFry Keyboard

Offline mkawa

  •  No Marketplace Access
  • Posts: 6562
  • (ツ)@@@. crankypants
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #3 on: Sat, 12 October 2013, 20:46:56 »
yep, those are interesting, but would only be converter material, and you need jacks and hand wiring and casing and so on to convert. for only a few bucks more you can get one of my *shameless advertisement* id innovations adapters. yes yes, it doesn't work for every protocol, just ps/2 and serial, but it is extremely well made and is a fantastic product for those two applications

to all the brilliant friends who have left us, and all the students who climb on their shoulders.

Offline MOZ

  • KING OF THE NEWBIES
  • * Maker
  • Posts: 3981
  • Location: Jo'burg
  • Busy making stuff
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #4 on: Sat, 12 October 2013, 23:18:49 »
And then there is the GH universal control wink wink

Offline mkawa

  •  No Marketplace Access
  • Posts: 6562
  • (ツ)@@@. crankypants
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #5 on: Sun, 13 October 2013, 01:53:08 »
better learn kicad quick bud

to all the brilliant friends who have left us, and all the students who climb on their shoulders.

Offline AKmalamute

  • HHKB Scrub
  • Thread Starter
  • Posts: 837
  • Location: Western WA, USA
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #6 on: Sun, 13 October 2013, 02:24:02 »
Firmware will work, but there's not much you can do about the fact they haven't wired all the pins - it's only got enough pins for 72 keys, I think
That's enough for JD's 40% project, right? Problem solved!

Mkawa: yes I'd like to know more about KiCad ... someday but it's farther down the line then using existing designs. The 40% board almost exists. close enough!

HHKB-lite2, Dvorak user

Offline Soarer

  • * Moderator
  • Posts: 1918
  • Location: UK
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #7 on: Sun, 13 October 2013, 02:48:54 »
yep, those are interesting, but would only be converter material, and you need jacks and hand wiring and casing and so on to convert. for only a few bucks more you can get one of my *shameless advertisement* id innovations adapters. yes yes, it doesn't work for every protocol, just ps/2 and serial, but it is extremely well made and is a fantastic product for those two applications

These Pro Micros are cheap enough now to throw inside keyboards, often with no soldering required... and my *shameless advertisement* firmware gives NKRO, 1000Hz, remapping, layers, macros etc., as well as supporting more protocols :D

Offline Soarer

  • * Moderator
  • Posts: 1918
  • Location: UK
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #8 on: Sun, 13 October 2013, 03:00:30 »
Firmware will work, but there's not much you can do about the fact they haven't wired all the pins - it's only got enough pins for 72 keys, I think

That's enough for JD's 40% project, right? Problem solved!

Should be, yeah. And it's possible to use diodes to allow sense lines to also be used for lock LEDs.

Offline mkawa

  •  No Marketplace Access
  • Posts: 6562
  • (ツ)@@@. crankypants
Re: AT32u4 not-a-teensy ... is there already a thread?
« Reply #9 on: Sun, 13 October 2013, 11:35:54 »
yep, those are interesting, but would only be converter material, and you need jacks and hand wiring and casing and so on to convert. for only a few bucks more you can get one of my *shameless advertisement* id innovations adapters. yes yes, it doesn't work for every protocol, just ps/2 and serial, but it is extremely well made and is a fantastic product for those two applications

These Pro Micros are cheap enough now to throw inside keyboards, often with no soldering required... and my *shameless advertisement* firmware gives NKRO, 1000Hz, remapping, layers, macros etc., as well as supporting more protocols :D
well, you need a usb jack bud :P, so i don't know about no soldering required, oops, just saw the mini usb on the board. but i do encourage people who can rig up soarer's converter to go for it! i only carry the adapters for those who need or want no muss no fuss use of pretty typical things like model Ms, cheap bl82s, old alps and blue monterey boards, etc. etc. if you want to use an XT F, you need a soarer anyway, but if you know what an XT F is and are lucky enough to have one, you already know that ;).

like i said soarer, it's just a matter of time before we standardize ;) BUT in the meantime, the id inno adapters work really well for tons of people, and they beat the crap out of the blue cubes for build quality, ease of sourcing etc. the idea is that the id inno will always be here for plug and play in the common case (which frankly is ps2, period). i mean heck, i practically lose money on them, but they open up a whole world of switches for the common user, so i carry them for the public good :)


to all the brilliant friends who have left us, and all the students who climb on their shoulders.