geekhack

geekhack Projects => Making Stuff Together! => Topic started by: Hantsu Trash on Fri, 12 August 2016, 18:59:03

Title: What can I do with this?
Post by: Hantsu Trash on Fri, 12 August 2016, 18:59:03
Completely noew here, sorry if wrong thread.
I have 3 ATMEGA48PA-MU (https://www.arrow.com/en/products/atmega48pa-mu/atmel) and I have no knowledge of microchips and electronics. They just fell into my hands. What could I do with them or are they basically garbage?
Title: Re: What can I do with this?
Post by: Findecanor on Fri, 12 August 2016, 20:40:05
Most projects around here are using other microcontrollers in the same product line from AVR - but those usually have dedicated USB hardware built-in and often with more program memory.
There is freely available program code for doing USB anyway on AVR 8-bit microcontrollers without USB hardware, but I don't think that you would be able to squeeze that and anything useful into the ATMEGA38PA's because it has only 4KB of program memory. A program (called "firmware" on microcontrollers) for controlling a keyboard could be 4KB large without the extra USB code or any special features.
It could theoretically be used as a "slave" unit in a keyboard with multiple parts, where a more capable microcontroller in another part would do most of the work.

The microcontroller will also need support circuitry for producing a clock signal, etc. and you would need some dedicated hardware for programming the chip.
You would not need crazy skills in electronics or anything, but it would not be as easy as with any of the ready-made controller boards with USB that are used in most keyboard projects. You might need to do some programming though.

In conclusion, I would not use the word "garbage", but I don't see them being useful.
Title: Re: What can I do with this?
Post by: Hantsu Trash on Sat, 13 August 2016, 13:02:27
Thank you for the detailed reply :)
Title: Re: What can I do with this?
Post by: tufty on Sun, 14 August 2016, 07:13:19
It could do PS/2, though.  And, as we all know, PS/2 is better.