PDA

View Full Version : Keyboard USB vs. PS/2, GPS



H2O2
04-23-2008, 02:46 AM
Hi All,
I am a newcomer to this world. I bought my first Parallax product a couple of weeks ago, the Propeller Proto Board, together with the GPS receiver and a LCD Display. So far, I have been studying a lot of manuals and existing objects to start the learning process.

I have also done some labs, and to my surprise they have all worked fine! My very old soldering skills, used when I was a teenager, have been reactivated... It's like learning how to ride a bicycle, once learned never forgotten!

My plan is to build a fairly advanced GPS navigator. The maths is completed [and tested!], like calculating: Great Circle Course, Rumb Line Course, Distance on the Great Circle and Rumb Line, Cross Track Distance, Along Track Distance, Position at Intersection.

I am currently trying to figure out how to connect a keyboard to the board. How to connect a PS/2 based keyboard looks, as far as I understand, quite straightforward. However, the the heavy duty, water resistant I want, connects via USB.

Now, my question...
Can the USB keyboard be as easy connected as the PS/2 one?
Have a feeling the answer is no...

Looking forward to some good advice.

P.S.
My name is Göran, living in Stockholm, Sweden.
D.S.

hippy
04-23-2008, 02:53 AM
Simple answer; no.

If you can find something which can host a USB keyboard and will interface to a serial, I2C or SPI bus that would do it but the Propeller cannot work as a USB Host.

Oldbitcollector (Jeff)
04-23-2008, 02:57 AM
Hi Göran welcome to the forums!

The GPS project sounds very neat! Keep us updated to your progress!

I'm working on something along the same lines myself, except mine will relay data to
an eyepiece monitor for the purposes of geeky looking Geo-cashing. :)

OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Getting started with the Protoboard? - Propeller Cookbook 1.4 (http://ucontroller.com/Propeller%20Protoboard%20Designs%20for%20the%20Beg inner.pdf)
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us (http://propeller.warrantyvoid.us)
Got an SD card? - PropDOS (http://www.orrtech.net/propdos/)
A Living Propeller FAQ - The Propeller Wiki (http://propeller.wikispaces.com/)
(Got the Knowledge? Got a Moment? Add something today!)

Paul Baker
04-23-2008, 06:48 AM
Hi Göran, and welcome. Some keyboards support both USB and PS/2 signaling, to use the keyboard for PS/2 you use one of the USB to PS/2 dongles. If you have one of these lying around (they are shipped with dual USB PS/2 mice and keyboards) you can try it. If your keyboard supports this it will work out of the box, this dual functionality is starting to dissapear as PS/2 becomes obsolete.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

H2O2
04-23-2008, 09:15 PM
Thanks for the info!

I have found a little bugger that probably will to the trick at: http://www.clickykeyboards.com/index.cfm/fa/items.main/parentcat/11298/subcatid/0/id/124184

But unfortunately it is currently out of stock at this distributor, hopefully not forever...

Cheers,
Göran

Paul Baker
04-24-2008, 03:58 AM
you need the reverse type of adapter, a female USB to male PS/2 like this one: http://www.dcables.net/index.asp?PageAction=VIEWPROD&ProdID=126
Check the packaging your keyboard came into to see if any mention of PS/2 is made. I'd hate for you to buy the adapter only to find that your keyboard doesn't support PS/2 signaling (in which case the adapter wouldn't help you to interface your keyboard with the Propeller).

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)

H2O2
04-25-2008, 02:00 PM
Thanks Paul,
I was only looking at the wrapping of the device and it said "USB to PS/2 Adaptor", but it does the opposite!

Forrest
04-25-2008, 06:35 PM
Paul Baker (Parallax) said...
you need the reverse type of adapter, a female USB to male PS/2 like this one: http://www.dcables.net/index.asp?PageAction=VIEWPROD&ProdID=126
Check the packaging your keyboard came into to see if any mention of PS/2 is made. I'd hate for you to buy the adapter only to find that your keyboard doesn't support PS/2 signaling (in which case the adapter wouldn't help you to interface your keyboard with the Propeller).


Typically USB keyboards that also support PS/2 signaling ship with the USB to PS/2 adapter

rjo_
04-26-2008, 08:53 AM
I got a Tevion keyboard at Aldi, which is a European discount trader... in the U.S. Aldi sells cheap food. ... Milk for $2.29 a gallon.

The keyboard is waterproof, flexible and cost $3 (retail in the U.S). So, I suppose that after the VAT that would be $12 in Europe. It sas a USB to PS/2 adapter on a dongle.

MD85618... made in China.

Rich

Oldbitcollector (Jeff)
04-26-2008, 09:15 AM
Rich,

Would you post a link to that distributor? (Just finished some Aldi's boxed chicken, love that stuff :)

Thanks
OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Getting started with the Protoboard? - Propeller Cookbook 1.4 (http://ucontroller.com/Propeller%20Protoboard%20Designs%20for%20the%20Beg inner.pdf)
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us (http://propeller.warrantyvoid.us)
Got an SD card? - PropDOS (http://www.orrtech.net/propdos/)
A Living Propeller FAQ - The Propeller Wiki (http://propeller.wikispaces.com/)
(Got the Knowledge? Got a Moment? Add something today!)

OwenS
04-26-2008, 08:02 PM
Paul Baker (Parallax) said...
Hi Göran, and welcome. Some keyboards support both USB and PS/2 signaling, to use the keyboard for PS/2 you use one of the USB to PS/2 dongles. If you have one of these lying around (they are shipped with dual USB PS/2 mice and keyboards) you can try it. If your keyboard supports this it will work out of the box, this dual functionality is starting to dissapear as PS/2 becomes obsolete.


Those adaptors are non standard, so even if you did have one lying arround, theres no guarantee it would work. I have two here with different pinouts.

Oh, and for connecting a USB keyboard, the easiest possibilities would be something like a Vinculum or USBWiz

Paul Baker
04-29-2008, 03:08 AM
Your and my definition of easiest is quite different, I don't know if you've worked with either product, but they aren't exactly simple to use.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)