keyboard interface
support
Posts: 15
hello, i'm wondering if it is possible for the propeller chip to wait until a 6 digit number is entered in the keyboard and then that initiates the program like sets one of the pins high. Any help would be appreciated. If you can get me the whole code i will be super appreciative.. thanks, Henry
Comments
A real easy way to do this is with FemtoBasic or Dongle Basic. The first works with a Propeller with a PS/2 keyboard and either a TV or VGA display connected to an appropriate Propeller board (you don't have to connect a TV or VGA ... the Propeller won't know). Dongle Basic is similar, but is designed to be used with the PC used for programming. A simple program can be used like:
100 input a
110 if a <> 123456 then goto 100
120 outa[5] = 1
130 goto 100
The only standard keyboard interface for the Propeller that you can just drop into a program is for a PS/2 keyboard.
OBC
Does your barcode scanner have a serial mode?
I have several of these scanners. There's a barcode in the manual to scan to switch it to serial mode. I had to make a cable to access the serial data. I've described how I did it in the comments on the page I just linked to (I'm ddegn).
I use a Propeller Proto board to process the information from the barcode scanner. The scanner I have uses 5 V logic so I have the signal from the barcode reader go through a 10k ohm resistor before it gets to the Propeller. This setup works great. I've used it just about everyday for over a year.
Duane