loading

I spent time trying to gather information to make this project and it was successfull .As a result ,I decided to share it to make it easy for everyone to find all the project in one place.

Step 1: Arduino Connection

We are tying to apply this sketch . So the arduino connection will be as the shown picture .

Then by
taking 4 external wires from :

pin 29 (green) //Data

pin 30 (Yellow) //Clock

5V (red) //+ve

ground (blue) //- ve

** the handwritten sketch is copied from :

https://www.instructables.com/id/Arduino-PS2-Barco...

Step 2: Connect to Barcode Scanner


We will look at the terminal with wires(in the above picture) of the connector as male data pins .

Connecting the 4 taken wires(from previous step) to the wires of that connector (data with data , ground with ground , clock with clock and power with power ).
** connection is by spinning each wire on the corresponding one .
Now connect the socket of the connector to the ps2 barcode scanner .

Step 3: The Code

Now it is ready to scan barcodes :)

<p>Hi my barcode scaner got 5 wires how can i conect them, its red black blue green white</p>
<p>Sorry, I do not know whether the colors could indicate something or not.<br>If you have the scanner's manual could you check it ?</p>
<p>Hi!</p><p>Is the scanner supposed to be in serial or keyboard wedge output mode? I cannot get any serial output. Please help :) </p><p>I got this btw: http://www.yhdaa.com/English/Product/479608159.html</p>
<p>hai... i'm very impressed with your project.. I try to search for ps/2 barcode scanner but I could not found in. can you share the link where did you buy the ps/2</p>
Actually, I have not bought it it belongs to my professor . Sorry , I wished I could help :)
<p>This is so cool! What do you plan on doing with the barcode once you scan it into the computer? </p>
The scanned barcode is mapped to a product , then products are printed to a receipt . ( Simulation for markets' shopping cart )

About This Instructable

3,194views

35favorites

License:

More by MennaH4:Mike Wazowski Cake Compass Using Arduino BarcodeScanner Using Arduino 
Add instructable to: