geekhack

geekhack Projects => Making Stuff Together! => Topic started by: adventurepoop on Wed, 14 May 2014, 13:52:45

Title: Microcontroller for 5 key keyboard
Post by: adventurepoop on Wed, 14 May 2014, 13:52:45
I'm working on a 5 key keyboard, and need to figure out if i need a microcontroller and if so what would work well. I need 5 io for the keys, will I need any to get it to work with usb? What would be cheapest?
Title: Re: Microcontroller for 5 key keyboard
Post by: metalliqaz on Wed, 14 May 2014, 14:01:28
You could use the same one that the Techkeys card uses. ATmega16u2.  It's real cheap and it can use some common firmwares
Title: Re: Microcontroller for 5 key keyboard
Post by: i3oilermaker on Wed, 14 May 2014, 14:01:56
Teensy is probably the easiest solution for getting started.
Title: Re: Microcontroller for 5 key keyboard
Post by: adventurepoop on Wed, 14 May 2014, 14:08:41
Teensy is probably the easiest solution for getting started.
For the first one that I'm working on now I'm using an adafruit trinket, I'm looking for something in the event that I make more
Title: Re: Microcontroller for 5 key keyboard
Post by: adventurepoop on Wed, 14 May 2014, 14:13:29
As for the ATmega, there are four of them? One is like half the price of the other, what is the differences?
Title: Re: Microcontroller for 5 key keyboard
Post by: hasu on Wed, 14 May 2014, 14:52:49
If you are looking for the cheapest chip Atmel AVR will not be answer.
I'm sure PIC18F14K50 is cheaper than those AVR, but I don't know what the cheapest is. I also want to know.
Title: Re: Microcontroller for 5 key keyboard
Post by: metalliqaz on Wed, 14 May 2014, 15:08:00
I think Boiler is right.  If you are beginner level with the AVR product line, then you probably want the Teensy.
Title: Re: Microcontroller for 5 key keyboard
Post by: komar007 on Wed, 14 May 2014, 16:20:01
You can check out the VUSB project (http://www.obdev.at/products/vusb/index.html)
With some luck you can try to run USB even on chips like attiny2313. It won't do USB full speed, but for the purposes of a 5-key keyboard it might be enough.