Go Down

Topic: Making a custom keyboard with arduino? (Read 2 times) previous topic - next topic

somkun

Thanks,

I know that 6 of the inputs are analog, should I use those for the keypad only, or can I use them for the fn key or serial interface? I intend to use cherry MX switches for my keys, according to the specs on the website, there are some with diodes and some without, should I get the ones with diodes, or should I get my own diodes?

Grumpy_Mike

The analogue input pins can also be used like regular digital input / outputs as well.
On a UNO they are pins 14 to 19.

mstanley


I intend to use cherry MX switches for my keys,

Wow, these things seem to be getting popular.  Both you and the other person I'm working with are using those keys.

Quote
according to the specs on the website, there are some with diodes and some without, should I get the ones with diodes, or should I get my own diodes?

Time to learn a technique in engineering called tradeoffs. ;)  If the cost of the keys with diodes is higher than buying separate diodes then it may be worth your time to do it yourself.  External diodes also mean your build won't be as neat and clean so that's another consideration.

But from a purely technichal point-of-view it would be better to get the ones with diodes.

somkun


Wow, these things seem to be getting popular.  Both you and the other person I'm working with are using those keys.

yea, they're the best quality/cost switches I've found so far

one last question before I begin learning to build PCB's, How do I implement (physically) a mini-usb port so my keyboard can be plugged in and used (recive power and send keyboard signals)? I know that the Leonardo has a mini-usb already attached, can I just use that? if not, do I need to reroute power from the usb port to the power port on the uno?

mstanley


How do I implement (physically) a mini-usb port so my keyboard can be plugged in and used (recive power and send keyboard signals)? I know that the Leonardo has a mini-usb already attached, can I just use that? if not, do I need to reroute power from the usb port to the power port on the uno?

If you go to the main reference page on the Arduino site there is a link to Keyboard and Mouse for the Leonardo. 
http://arduino.cc/en/Reference/MouseKeyboard

This tells you a bit about using your Leonardo as a USB keyboard.  I haven't read any of it but it may give you enough information on using the Keyboard library.

Go Up