Connecting a Barcode reader to a PIC Microcontroller UART

mosh11

mosh11

@mosh11-7Id1tE Oct 22, 2024
Hello all,

in my project i am building an interface between a Bar code reader and a Pic in order to transfer the bar codes to a ZigBee transceiver

i want the reader to talk to the pic via UART Port of the microcontroller?

i know that there are a Software uart and a hardware uart?

which one should i choose?

and how it can be implemented ?

Thank you

Ahmed salah

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Mar 31, 2009

    Hi Mosh,

    First of all Check out the Output Voltage available at the Barcode Reader...
    I think Barcode gives around 12 volts.. (not Sure) if so then use Hardware UART using MAX232. if you use Software then may be you have to take precaution that it should not exceed to limit.. Normally We use Hardware UART at this time....

    Godfather
  • mosh11

    mosh11

    @mosh11-7Id1tE Apr 2, 2009

    Thank you for ur replay

    i read also that to connect to a barcode reader Hardwae Uart should be used

    i want to know why Hardware Uart is used instead of the Soft Uart ?

    another question

    should i use the same connection that's is given to connect the pic to a pc?

    will this circuit connection work for the barcode reader ?

    thank you

    ahmed salah
  • maheswari21

    maheswari21

    @maheswari21-YoXh2m Mar 22, 2011

    hi ,
    i m doing proj to interface barcode reader with philips microcontroller....the scanner barcode to be displayed in the lcd display... can any one help me with tis???
    the barcode is rs232 level.... when connected and read the barcode it s not displayed in the lcd??? can any one help me with interfacing barcode with microcontroller?? plzzzzz
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww Mar 23, 2011

    maheswari21
    hi ,
    i m doing proj to interface barcode reader with philips microcontroller....the scanner barcode to be displayed in the lcd display... can any one help me with tis???
    the barcode is rs232 level.... when connected and read the barcode it s not displayed in the lcd??? can any one help me with interfacing barcode with microcontroller?? plzzzzz
    First of all as your Scanner is RS232 level you have to use MAX232 in between Controller and Reader and first check that you command is working properly to scan the Barcode.

    Do you have implemented this ?