I just recently bought the PS/2 barcode scanner http://www.adafruit.com/products/1202#Description with the PS/2 connector http://www.adafruit.com/products/804 that was recommended, but I am not seeing any results in the serial monitor when I scan items, please help. these are the steps I have already made.
Board: Mega 2560
1.Connected all wires from PS/2 connector as explained:
For PS/2 devices:
•Green wire is +5V
•Black wire is Ground
•Brown wire is Data pin 2
•Yellow wire is Clock pin 3
2. Load keyboard library from zip to library http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
3. Copy and paste Sketch at bottom of page http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
4.change pin code from sketch
const int DataPin = 8; changed 8 to 2 (brown wire)
const int IRQpin = 5; also known as ClockPin changed 5 to 3 (yellow wire)
New code:
const int DataPin = 2;
const int IRQpin = 3;
5.Verified and uploaded sketch
6.Open Serial Monitor
RESULT> Barcode device turns, red light turns on, beeps when scans, serial monitor reads KEYBOARD TEST:
Nothing happens with multiple scans of several different items.
7.attempts to fix with manual reconfigured with configuration flow chart
interaface selection:keyboard mode
symbologies selection: SELECT ALL BAR CODES
Baud rate: 9600
RESULTS> same as above, no change
PLEASE HELP, I cant find the error of why I cant see the UPC code on the serial monitor, showing it actually working.
Thank You
Barcode scanner wont read in serial monitor or anywhere help
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:33 am
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Barcode scanner wont read in serial monitor or anywhere
How do you have the PS/2 connector attached to your Mega? If you're just inserting the wires into the headers, that may not be good enough. It's a good idea to solder those wires to header pins.
Can you post a picture of you connections?
Can you post a picture of you connections?
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:33 am
Re: Barcode scanner wont read in serial monitor or anywhere
Thank you for your quick response,
I am testing first going from breadboard into mega board. I have jammed the wires as deep as I can for connectivity, but I'm not sure if that is the problem. I will try soldering them also to test if that might be the problem.
Here is the picture you requested.
[img] [/img]
Thanks
I am testing first going from breadboard into mega board. I have jammed the wires as deep as I can for connectivity, but I'm not sure if that is the problem. I will try soldering them also to test if that might be the problem.
Here is the picture you requested.
[img] [/img]
Thanks
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:33 am
Re: Barcode scanner wont read in serial monitor or anywhere
UPDATE:
I soldered onto the board, but as I thought nothing happened. I would like to find the fix for this unit and the following unit e1115 PS/2 controller, also that I purchased, I followed steps and got more luck in controller response but not the full digital answer.
Here is the results from this controller
Board mega 2560
ITEM: Controller e1115 PS/2 http://www.adafruit.com/products/1136#Downloads
1.Followed the schematics listed here http://www.adafruit.com/datasheets/E111 ... aSheet.pdf
5.0 > 5.0
0V > ground
SD > Data (pin 2)
SC > Clock (Pin3)
I did not use any other pin
RESULT: I got the following response in the Serial monitor
Keyboard Test:
5n m4 m4 4m 4m -ym -ym -[ESC] -[ESC] -[ESC]
These are of multiple scans, two to three times for each item
Do I need to change code or should I already see serial number out of the box?
Please help with either direction, Just trying to get to work for now,
Thank you
I soldered onto the board, but as I thought nothing happened. I would like to find the fix for this unit and the following unit e1115 PS/2 controller, also that I purchased, I followed steps and got more luck in controller response but not the full digital answer.
Here is the results from this controller
Board mega 2560
ITEM: Controller e1115 PS/2 http://www.adafruit.com/products/1136#Downloads
1.Followed the schematics listed here http://www.adafruit.com/datasheets/E111 ... aSheet.pdf
5.0 > 5.0
0V > ground
SD > Data (pin 2)
SC > Clock (Pin3)
I did not use any other pin
RESULT: I got the following response in the Serial monitor
Keyboard Test:
5n m4 m4 4m 4m -ym -ym -[ESC] -[ESC] -[ESC]
These are of multiple scans, two to three times for each item
Do I need to change code or should I already see serial number out of the box?
Please help with either direction, Just trying to get to work for now,
Thank you
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:33 am
Re: Barcode scanner wont read in serial monitor or anywhere
UPDATE:
I decided to dig up a old keyboard that still uses PS/2 to test the first example I posted with the PS/2 connector http://www.adafruit.com/products/804 that was recommended.
DID ALL OF THE STEPS IN THE FIRST POST
RESULT:
keyboard worked like it should with all characters
Then plugged barcode scanner back in, reset barcode scanner to default and scanned multiple upc items
RESULT:
Same just Keyboard test promt, No scans
I decided to dig up a old keyboard that still uses PS/2 to test the first example I posted with the PS/2 connector http://www.adafruit.com/products/804 that was recommended.
DID ALL OF THE STEPS IN THE FIRST POST
RESULT:
keyboard worked like it should with all characters
Then plugged barcode scanner back in, reset barcode scanner to default and scanned multiple upc items
RESULT:
Same just Keyboard test promt, No scans
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Barcode scanner wont read in serial monitor or anywhere
We can try replacing the barcode scanner.
Please email [email protected] with a link to this thread for a replacement scanner
Please email [email protected] with a link to this thread for a replacement scanner
Please be positive and constructive with your questions and comments.