BarcodeScanner Using Arduino

by MennaH4 in Circuits > Arduino

6311 Views, 39 Favorites, 0 Comments

BarcodeScanner Using Arduino

12688050_946905352030821_893587729027144071_n.jpg

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.

Arduino Connection

barcodeScanner2.png
barcodeScanner.png

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...

Connect to Barcode Scanner

barcode3.png
12654390_946905325364157_3133073228039452295_n.jpg
12644903_946905445364145_1633157417224698826_n.jpg


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 .

The Code

code.png

Now it is ready to scan barcodes :)