IddoB
Posts: 56
Joined: Wed Aug 23, 2017 4:39 pm

Barcode Reader

Fri Sep 08, 2017 1:27 pm

Hi there,

I am looking to read a bar-code (Not sure what specific type yet) using the Raspberry Pi. While looking online I came across 2 options:

The first option would be the best if I can manage to find how to work with the scanners.

Id be happy to hear your input on the subject.

User avatar
topguy
Posts: 6523
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Barcode Reader

Fri Sep 08, 2017 1:47 pm

For the first link, the clue is in the words "TTL" and "USB".
- TTL means that probably there is a UART/serial interface that works on 5V. Raspberry Pi uses 3.3V on the GPIO serialport so some adaptor chip is recommended.
- USB: Should mean that there is a usb socket (or pins you need to solder a cable to) that you can connect to the USB port on the Pi.

Most likely when you connect the USB it will also be detected as a serialport.

The protocol for barcode scanners are usually very very simple.You scan something and the string is sent over the serialport with a line-feed to signal the end.
But you should probably request detailed interface and protocol description when/before you order any unit.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: Barcode Reader

Fri Sep 08, 2017 3:23 pm

Those scanner are so cheap they look like the best bet. They are really easy to interface if using USB, which will just appear as a serial port (as stated above). Just make sure it will read the type of barcode you are planning to use, although I suspect they will do most sorts.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

IddoB
Posts: 56
Joined: Wed Aug 23, 2017 4:39 pm

Re: Barcode Reader

Fri Sep 08, 2017 3:34 pm

jamesh wrote: Those scanner are so cheap they look like the best bet. They are really easy to interface if using USB, which will just appear as a serial port (as stated above). Just make sure it will read the type of barcode you are planning to use, although I suspect they will do most sorts.
topguy wrote:
Fri Sep 08, 2017 1:47 pm
For the first link, the clue is in the words "TTL" and "USB".
- TTL means that probably there is a UART/serial interface that works on 5V. Raspberry Pi uses 3.3V on the GPIO serialport so some adaptor chip is recommended.
- USB: Should mean that there is a usb socket (or pins you need to solder a cable to) that you can connect to the USB port on the Pi.

Most likely when you connect the USB it will also be detected as a serialport.

The protocol for barcode scanners are usually very very simple.You scan something and the string is sent over the serialport with a line-feed to signal the end.
But you should probably request detailed interface and protocol description when/before you order any unit.
Thank you for this information. Which one of the 2 would you recommend?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: Barcode Reader

Fri Sep 08, 2017 4:29 pm

No way of telling from listings and haven't used either.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

IddoB
Posts: 56
Joined: Wed Aug 23, 2017 4:39 pm

Re: Barcode Reader

Fri Sep 08, 2017 4:48 pm

jamesh wrote:
Fri Sep 08, 2017 4:29 pm
No way of telling from listings and haven't used either.
In the first one it doesnt say that it comes with the connectors, http://prntscr.com/giqqa8
Do you think it does come or I need to buy ones, if so what type of connectors?

Return to “Automation, sensing and robotics”