Keyboard Problem!
Brandon C.
Posts: 106
I am trying to run the keyboard driver on a GadgetGangster BossBoard. I just bought a brand new PS/2 keyboard to use for it and all three lights (Num Lock, Caps Lock and Scroll Lock) are blinking at a constant rate. I am running the Keyboard demo and there is nothing outputting to the screen when I press a key. is this normal? is there some parameter I need to change (besides I/O pins)?
Thanks!
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Thanks!
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Comments
I am having my program load into RAM. That means that if it was really resetting, the RAM would have no program loaded onto it.
I am absolutely sure I wired everything up the way it is supposed to be. I even looked at the Demo Board schematic. Yes, I am able to run all programs just fine. I also tested the keyboard on my computer to make sure it works.
Brandon C.
BTW, in the schematic, it says I need to "use 10K-ohm resistors to pull jack-side signals to VDD ". does that mean 3.3v, or 5v? I have the signals pulled to 3.3v right now.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Exactly what program are you running? Have you modified it at all? What I/O pins are you using for the keyboard connections? Which one is Dta and which is Clk?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
The keyboard is ok on a PC, its what I am typing this on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
This means that the keyboard has bad timing and is outputing corrupted bytes to the propeller chip which in turn the propeller chip then tells the keyboard to reset because it cannot continue if the keyboard sends bad data.
There is no way to fix this problem without modifying the keyboard driver's communication sub rountines. If you are up to that go ahead. However te easier fix is just to get a new keyboard.
Cheaper keyboards seem to work better than more expensive ones with the propeller chip. Look arround at www.newegg.com for some good deals. You can get a keyboard and mouse for $10.
...
The communication problem you are expierencing is an imperfection within the keyboard.spin driver and is pretty hard to weed out.
The reason PS2 keyboards seem to always work on the PC and not the propeller is because the PC is extremely lax with following the communication protocol.
Basically the PC will never bother to reset the keyboard if it seends out·garbage. It just accepts that garbage.
The keyboard.spin driver sends a reset out to the keyboard on any mistakes during transmission.
So if your keyboards lights are constantly flashing the propeller then is telling the keyboard to reset. Which in turn the keyboard must be receiving propellerly because it is reseting.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Which part of the code would I change to stop the resetting?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Basically find the transmit and receive sub rountines and comment all the resets in them out.
...
The reason this is happening however is because the propeller chip cannot receive the bytes sent from the keyboard properly. So this may not work. More likely you will need to relax the timing controls in the driver. (Freaking hard because of the way its programed.)
Best soultion is to get a new keyboard.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
http://www.newegg.com/Product/Product.aspx?Item=N82E16823157004
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Its a completely different·different driver·however.
You should be able to understand it however. Read the documentation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
In case you were wondering, I am running my prop at 96mhz. this wouldn't effect the keyboard, would it?
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!
Mmm, well I would say you should just cut your losses and buy the cheap keyboard I posted above. Time is money.
And, yes the one I mentioned above does work with keyboard.spin or atleast my driver file.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
www.amazon.com/I-Concepts-90050N-107-Key-Keyboard/dp/B000NKANUE/ref=sr_1_15?ie=UTF8&s=electronics&qid=1249327417&sr=8-15
Brandon C.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
No purchase necessary. See back panel for more details.
Tired of the same old robot brains? not enough processing power? Get the Propeller Robot Module now!!