6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 14, 2024 10:01 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sat Jun 25, 2016 1:36 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
I have a project in flight to add a PS/2 keyboard using a microcontroller to convert the scan codes to ASCII, but that's a bit overkill since I have 16 free IO pins on my 6522's to scan a keyboard matrix. But I haven't seen bare keyboards for sale. So I'm not sure where to get one, aside from taking apart an existing PC keyboard, or buying an old computer off eBay and using its keyboard .

I know that there are premium keyboards available as parts, but these are over $100, and taking apart an existing keyboard would be cheaper. A used TI 99/4a without a power adapter can be purchased from around $18 which might yield other parts besides the keyboard (specifically the TMS9918a and RAM), so that's an option.

Any ideas for sources of keyboards?


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 25, 2016 2:07 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
A USB keyboard can be had for £10 or so - I've never opened one up, but it's not too expensive to do that, and see if you can unhook the controller chip and attach your I/O lines to the matrix.
Looks like it should be feasible:
http://modelrail.otenko.com/electronics ... ontrollers


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 25, 2016 3:18 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
If you decide to go the TI 99/4a route, please be aware that not all of their keyboards were created equal.

http://atariage.com/forums/topic/238620 ... ey-screen/

Mike B.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 25, 2016 4:35 pm 
Offline

Joined: Sun Jul 28, 2013 12:59 am
Posts: 235
... Why not just use two of those 6522 pins to bit-bang a PS/2 keyboard interface?


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 25, 2016 5:21 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
nyef wrote:
... Why not just use two of those 6522 pins to bit-bang a PS/2 keyboard interface?


I may try this as well. I've seen a 6502 library that does this, although it takes a fair bit of resources to manage the keyboard and convert scan codes to ASCII.

The reason I am starting with the AVR is that the scan code to ASCII firmware is already available online, so it's mostly a wiring exercise. I can run the characters in through the console or bit bang via the 6522.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2016 11:41 pm 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 279
Location: Placerville, CA
Yeah, bit-banging for basic I/O is not, shall we say, an optimal solution.

Anyway, buying an inexpensive keyboard and taking it apart isn't a bad approach, but it might require some work, as a lot of keyboards just run the matrix lines right into the on-board controller. You could probably still hack it up, though.

Alternatively, if you don't need a specifically PC-style layout, the Landel Mailbug "email appliance" has a rather nice little compact keyboard that has a plain matrix output to whatever is on their mainboard, so that should be dead simple. No idea what the pinout is on it, though. You can get 'em for ~$25 on eBay. Also gets you an 80x6 character LCD display, if you can figure out how to hook it up to a suitable controller.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 29, 2016 12:48 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8485
Location: Midwestern USA
This is a little off-topic, but I seem to vaguely recall someone figuring out how to adapt a PC-AT style keyboard to a Commodore 128D. Seems as though he didn't like the C-128's keyboard layout and action.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 29, 2016 3:22 pm 
Offline

Joined: Sat Dec 13, 2003 3:37 pm
Posts: 1004
What an interesting device.

Has anyone torn one open? (Not to completely derail the thread here.)


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 29, 2016 4:03 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
> What an interesting device

Indeed! 8)


Attachments:
mailbug.jpg
mailbug.jpg [ 67.19 KiB | Viewed 1906 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 29, 2016 4:25 pm 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 279
Location: Placerville, CA
whartung wrote:
What an interesting device.

Has anyone torn one open? (Not to completely derail the thread here.)

Yeah, it's not much to look at on the inside, just a single board with a bunch of SMT components and a little fluorescent tube for the backlight hanging off it. I think it's a Coldfire something-or-other at the core. But the LCD's decent, and the key action is quite pleasant for a little compact keyboard.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 01, 2016 9:33 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
As a collector of vintage computers, I would like to politely ask you not to gut a TI unless it's reversible or you manage to find one that is incomplete (already gutted).

You wouldn't pull the steering column out of a Model T so that it could hang in a bar would you? :-)

Having said that, I also plan on using a TI keyboard for a project. BUT, I own 5 different TI's and this one is my "parts" TI. It doesn't work and was already broken when I got it.

Anyway, just thought I would mention that...

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 01, 2016 11:46 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
Not to worry, I was planning to buy a for parts or repair one off eBay. But for now I'll stick with the PS/2 keyboard and bit bang using Daryl's library: http://sbc.rictor.org/pckb6522.html

If I decide to try using the matrix technique I may see about removing an old laptop keyboard which may work.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 05, 2016 9:08 am 
Offline

Joined: Wed Oct 23, 2013 8:52 pm
Posts: 17
I am doing something similar and have opted to use a VIC-20/C64 keyboard. The advantages of this is that it's already wired to connect to a 16 bit I/O port. The keyboard matrix is also widely available on the net.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 05, 2016 4:08 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
Part of my reason for looking for an old keyboard is that the good ones were mechanical and had a really satisfying feel. Most modern keyboards aren't nearly as satisfying to type on unless you spend a fortune. I already have TI 99/4a and it's keyboard is particularly nice, although a bit small.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 05, 2016 5:37 pm 
Offline

Joined: Wed Oct 23, 2013 8:52 pm
Posts: 17
Martin_H wrote:
Part of my reason for looking for an old keyboard is that the good ones were mechanical and had a really satisfying feel. Most modern keyboards aren't nearly as satisfying to type on unless you spend a fortune. I already have TI 99/4a and it's keyboard is particularly nice, although a bit small.


No problem, ultimately comes down to what you like/are used to. Vic and C64 are 1980 vintage so I wouldn't call them modern! but they aren't switches if that's what you mean. I can't remember the last time I saw a keyboard with a switch.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron