Hi all.
I have an arduino hooked up to an LCD display, a PS2 keyboard, and a serial label printer via MAX232.
I am powering the Arduino from an external 9v power adaptor, and the printer is also running from its own mains cable.
The LCD prompts the user to type their name, which appears on the LCD as they type, then when enter is pressed, it sends the neccessary code to the printer to print the name.
All this works fine - the first time!
When first powered up (or reset is pressed) the keyboard entry works fine and when enter is pressed, the printer outputs the way it is supposed to, but after that - as the LCD is again prompting for a name entry, the keyboard characters are all gibberish, and I have to press reset to get it to work correctly again.
I have the keyboard hooked up as per the instructions on the PS2Keyboard page, and the printer has two pins connected, GND and Tx to the arduino (via MAX), nothing else is connected.
Could this be something to do with the voltage pulled from the arduino as the printer starts working?
Not sure what I can do, i'm new to both electronics and programming, and am proud of how far i've got, but this is driving me crazy, I don't want to have to press reset everytime something has been printed.
Anyone got an idea why this should be happening?
Thanks in advance and best regards.