geekhack

geekhack Projects => Making Stuff Together! => Topic started by: ResonantPixel on Wed, 03 February 2016, 08:08:37

Title: Best micro controller not using usb micro?
Post by: ResonantPixel on Wed, 03 February 2016, 08:08:37
Does anyone know the best micro-controller (for a keyboard), that does not use micro-usb type b, (mini-usb is best(I assume the) I thought maybe a teensy or ATmega328 Arduino Pro Mini I cant find anything on the port they use, I think most ardiunos use mini though : L, also I need two so if I can get the cheap copies of amazon uk that be great :P thanks!
Title: Re: Best micro controller not using usb micro?
Post by: MAR82 on Wed, 03 February 2016, 08:17:59
The most common micro controller used for keyboards is the atmega32u4, that can be found on the Teensy 2.0.
There are cheeper versions out there, but as far as I know they all use micro USB connectors and not mini USB
Title: Re: Best micro controller not using usb micro?
Post by: jd29 on Wed, 03 February 2016, 08:31:21
The Adafruit Trinket has a mini USB port. Edit: The Arduino Nano has Mini USB and plenty of pins. It doesn't have USB hardware, but you can emulate USB 1.1 (fast enough for a keyboard) using V-USB. As far as I know this will not be compatible with all the keyboard libraries out there, but this (http://codeandlife.com/2012/06/18/usb-hid-keyboard-with-v-usb/) should help you.
Title: Re: B
Post by: user 18 on Wed, 03 February 2016, 08:42:54
Why do you need the mini-USB so badly?

You could always use something like this (https://www.sparkfun.com/products/9966) and cut up a cheap micro USB cable to effectively give you a mini USB connection to a micro USB board.

E: There's probably plenty of premade adaptors out on ebay in the same price range, too.
Title: Re: B
Post by: Yoe on Thu, 04 February 2016, 02:04:20
Why do you need the mini-USB so badly?

You could always use something like this (https://www.sparkfun.com/products/9966) and cut up a cheap micro USB cable to effectively give you a mini USB connection to a micro USB board.

E: There's probably plenty of premade adaptors out on ebay in the same price range, too.

I agree. Having a separate board or adapter for the usb jack to the harsh outside world is very much recommended. Easy to replace if damaged, and it keeps your controller intact. I sometimes use small adapters of the kind that has no wire inbetween connectors but both connectors in the same housing. I just cut away unwanted plastic to make it sit well in my build. I have also made my own jack plates from etched pcb and female mini usb vertical mount pcb connectors.

[attach=1] [attach=2] [attach=3]
Title: Re: B
Post by: yangdigi on Thu, 04 February 2016, 03:31:30
For 60% or less Keyboard, Arduino Pro Micro is a good choice as it is very cheap with atmega32u4 controller.
And by using Pro Micro with 74hc138 or 74hc238,  Keyboard that has more keys can also be done.
Title: Re: B
Post by: thatllbeme on Thu, 04 February 2016, 07:12:48
If you want a mini-USB port you should get a Teensy++ or clone (look for the 'at90usb1287' processor), but they're more expensive (£20/ea on Ebay) and harder to find cheap clones of. Micro->mini USB converter might be a better idea cost-wise.
Title: Re: B
Post by: Yoe on Thu, 04 February 2016, 09:08:56
If you want a mini-USB port you should get a Teensy++ or clone (look for the 'at90usb1287' processor), but they're more expensive (£20/ea on Ebay) and harder to find cheap clones of. Micro->mini USB converter might be a better idea cost-wise.

The regular Teensy 2.0 also has mini-USB. Cost much less than the Teensy++ 2.0.
Title: Re: B
Post by: ResonantPixel on Thu, 04 February 2016, 09:37:57
Thanks all, sorry this was a little of a poor-post I was rather knackered when writing it, and I screwed my point a little sorry :P
Title: Re: Best micro controller not using usb micro?
Post by: suicidal_orange on Thu, 04 February 2016, 12:47:45
Title fixed, and to answer the question -

Teensy 2.0 is mini
Teensy 2.0++ is mini
Arduino Micro (official) is micro
"Arduino" Pro Micro (cheap clone) is usually micro, but there may be a version with mini if you look hard enough.
Title: Re: Best micro controller not using usb micro?
Post by: iLLucionist on Thu, 04 February 2016, 17:45:25
I want analog. What about mini jack as an kb interface?