Shop OBEX P1 Docs P2 Docs Learn Events
simple Keyboard Project — Parallax Forums

simple Keyboard Project

Franz AchatzFranz Achatz Posts: 140
edited 2007-09-19 06:02 in Propeller 1
Hello,
here is a PS2 4x4 Keyboard, made for the Propeller.
You only need a ATTiny2313 (no external parts).
I have made the source and hex-file available for download.

have fun
Franz




PS2.jpg

PS22.jpg

Post Edited (Franz Achatz) : 7/28/2007 3:06:06 PM GMT
PS2.zip 61.5K

Comments

  • SkyoneSkyone Posts: 8
    edited 2007-07-28 11:32
    Woah! Just to think I was just about to make a thread to discuss ways to emulate keyboard and mouse... nice job, Franz!
  • deSilvadeSilva Posts: 2,967
    edited 2007-07-28 12:24
    Franz has a lot of time smile.gif
    Interesting, what it costs in Middle Europe:

    - PCF8574 (can do the same) Euro 1.75
    - AT2313 Euro 1.30
    - Analogue solution, as just discussed in a parallel thread (8 resistors, plus maybe an NE 555 plus 2 capacitors for an FM or PWM type ADC) Euro 0.40, but > 10 parts to handle! And the NE 555 does not run well from 3.3 V...

    Alas, the simplest solution to use some Prop pins seems out of question smile.gif So we can say that an I/O pin of the Prop is worth more than 20 cents! Calculating down from the chip price an I/O pin is worth less than 40 cents...
  • Franz AchatzFranz Achatz Posts: 140
    edited 2007-07-28 12:37
    >Franz has a lot of time

    15 minutes for setting up the hardware and 1 1/2 hr programming.

    have fun
    Franz
  • RoadsterRoadster Posts: 209
    edited 2007-09-18 22:04
    Hello Franz,


    1. I have lots of AT90S2313's will the hex file work with that chip or do I need re-compile the program.
    2. If you answer to 1 is Yes, What compiler did you use to write this keyboard program with.

    Thanks
    Roadster
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2007-09-19 01:19
    Nicely Done!!

    I did this with an 8x8 keyboard matrix using a PICAXE, serial tx connection to FemtoBasic.

    I'm curious if you considered the problem of damage to the chip when multiple keys are pressed?
    I included a bunch of diodes in my design. And of course 10k resistors for pulldown. Not required here?

    Oldbitcollector

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.

    — Calvin, of 'Calvin and Hobbes.
  • hippyhippy Posts: 1,981
    edited 2007-09-19 01:59
    Oldbitcollector said...
    I did this with an 8x8 keyboard matrix using a PICAXE ...I'm curious if you considered the problem of damage to the chip when multiple keys are pressed?

    It's only a problem if more than one PBx line are outputs at the same time. Shorting an output high to an output low through the switches is the problem, with only one output there's nothing for it to short to.
  • deSilvadeSilva Posts: 2,967
    edited 2007-09-19 06:02
    As hippy said: Use one driving pin at a time and keep all others TS.
    The AVRs have the nice feature of a programmable pull-up to each input (similar to the internal pull-up of the Prop's reset in.)
Sign In or Register to comment.