Announcement

Collapse
No announcement yet.

PIC Microcontroller keyboard

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PIC Microcontroller keyboard

    I don't know if this should go in software or hardware. I'm posting it under software since it is the code I'm worried about.

    Has anyone here implemented a scanning keyboard matrix using a PIC (or Motorola) controller? I think the scanning part is pretty easy: just loop through the columns and set each one high while scanning each row. However, my big question is how do I do this AND send rs-232 data to the computer at the same time? Any help would be appreciated.

  • #2
    Why me?!?

    Comment


    • #3
      Perhaps you could tell us a bit more. Just curious...

      Comment


      • #4
        You should look at Microchip's application note AN234 - Hardware Techniques for PICMicro Microcontrollers. It talks about how to hookup a matrix keypad using a single ADC input so that you don't have to run a scan routine for the matrix.

        Comment


        • #5
          mpattonm: My mp3 player features 10 buttons on the front panel, one rotary encoder, and one rotary joystick. My current system uses two hacks. I busted an old keyboard open, had fun with a multimeter for several hours, and traced out all the keys. Then I removed the board and connected my own buttons. The encoders are attached to a mouse circuit board. I removed the X and Y photoreceivers and attached the encoders there.

          Saab: That sounds pretty cool. I'll look at that article later today.

          Comment


          • #6
            Okay i was searching the web and came across this thread. So i thought i would ask here. Plus it adds to my posts count

            Has anyone used a pic to build a homemade keyboard or mouse. I have an arcade ive been building off and on and wanted to have a pic output all my joystick and button commands as if it was a keyboard. That way i could easily map any game to use the controlls. Currently im using a gamepad with wires ran to my controlls But if i could layout a circuit board with screw down terminals and a pic chip i could use the unused PS2 port. Maybe even add mouse to it for encoder support.

            Yah i know not mp3car type project but it could also be used for carputer controlls like play stop volume control.....etc.

            Maybe a link would be good to get me in the right direction. I will posts schematics if i get one working.
            Um, I guess this is where you put something witty.WITTY

            My Web site, in the design stage. http://home.comcast.net/~cstrachn

            Modified RRSkinEditor http://www.mp3car.com/vbulletin/showthread.php?t=65723

            Comment


            • #7
              Have you looked at these?

              http://groovygamegear.com/webstore/i...a7ff28b75e06b5

              Comment


              • #8
                http://www.mindaugas.com/projects/
                Then just use joy to key for whatever you want

                Comment


                • #9
                  Originally posted by kevpriest

                  Okay i bought one. And some buttons And to think I tore apart a keyboard today so that i could attempt to use the circuit inside. I guess if i dont use it for my arcade box i can use it for my carputer.
                  Um, I guess this is where you put something witty.WITTY

                  My Web site, in the design stage. http://home.comcast.net/~cstrachn

                  Modified RRSkinEditor http://www.mp3car.com/vbulletin/showthread.php?t=65723

                  Comment

                  Working...
                  X