Hi I was wondering what parts would I need to build a arduino circuit that is able to scan items and relay that information to a screen like a shield? Please help me!
Thanks!
Arduino Barcode Scanner
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Barcode Scanner
We have a barcode scanner you can connect to your arduino
PS/2 barcode scanner:
http://www.adafruit.com/products/1202
PS/2 adapter cable:
http://www.adafruit.com/products/804
Use the PJRC PS/2 Keyboard Library to read the scanner:
http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
PS/2 barcode scanner:
http://www.adafruit.com/products/1202
PS/2 adapter cable:
http://www.adafruit.com/products/804
Use the PJRC PS/2 Keyboard Library to read the scanner:
http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html
-
- Posts: 1
- Joined: Wed Oct 02, 2013 6:59 pm
Re: Arduino Barcode Scanner
Hello,
I am trying to figure out how to work this barcode scanner. I have the PS/2 Adapter. I connected Green to 5V, Black to Ground. What colors do I connect to pins 2 and 3 on the Arduino UNO? I'm very confused at the moment.
I am trying to figure out how to work this barcode scanner. I have the PS/2 Adapter. I connected Green to 5V, Black to Ground. What colors do I connect to pins 2 and 3 on the Arduino UNO? I'm very confused at the moment.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Barcode Scanner
Are you using the example program from the PJRC site? Change that to use pins 2 and 3
On the PS/2 adapter product page, the wires are listed as follows:
Code: Select all
#include <PS2Keyboard.h>
const int DataPin = 2;
const int IRQpin = 3;
PS2Keyboard keyboard;
void setup() {
...etc...
Data connects to DataPin, and Clock connects to IRQPin (I know, it probably should be called "ClockPin", but it has to be a pin that can generate an interrupt, so "IRQPin")Green wire is +5V
Black wire is Ground
Brown wire is Data
Yellow wire is Clock
Please be positive and constructive with your questions and comments.