Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 13th October 2009, 10:29 PM   #1
Default PIC barcode

Hi,
I need to connect a Barcode scanner to a PIC. Can u tell me how i need to go about doing this? Also, i need to create a database and link it to all. Can i get some ideas/feedback?
kristt2001 is offline  
Old 13th October 2009, 10:59 PM   #2
Default

Get a PS/2 keyboard or RS232 compatible scanner. These scanners will convert the barcode to ASCII
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is online now  
Old 14th October 2009, 12:02 AM   #3
Default

Hi. Do you have the scanner yet? Have you considered using Microsoft Excel for the database?

I worked at a company that tracked their product by pre-printing on clear address labels, which then got attached to the product. When scanned, the output was treated as a keyboard input (this scanner was paralleled with the keyboard) and the carriage return inserted at the input's end made Excel jump to the next cell down automatically. This is the simplest way to do the job known to me.

Luck on your project.
__________________
All my pencils *used* to have erasers!
kjennejohn is offline  
Old 14th October 2009, 12:28 AM   #4
Default

Hi

I just did a project for scanning key's in, PIC18F1220 and a Symbol Tech LS1900 scanner.
The scanner has RS232 output, for the database ~ 32k I2C EE then upload it to a PC to process it.
__________________
I'm could be wrong many time's, at least I know what I'm doing.
http://shop.ebay.ca/merchant/csaba911
csaba911 is offline  
Old 14th October 2009, 12:49 AM   #5
Default

Pfft. More thought, less haste.
You want to connect to a PIC. There are serial port versions of these scanners, if your PIC is limited to using a software serial port, or has a USART available. If you have a USB-ready PIC, there are USB scanners too. I have studied some PIC BASICs on and off over the years. Great Cow (commonly refered to as GCBASIC) is free, and will probably let you create code for your project quickly.

If you are making a remote unit to carry around for inventory work, get a PIC with I2C or SPI capability. This allows you to connect SEEPROM with considerable storage capacity. At days' end, you just use the serial port to dump the stored data to a PC for porting to a database.

A word about line sizes: the final label we chose to use was largely based on the printed lines in the bar code. The 300 dpi laser printer we had to work with couldn't produce bar lines in a resolution fine enough for our cheapo LED scanner using smaller address labels. Larger labels, like one-something by two-something, were needed to produce scannable bar codes. A laser scanner would have made smalled lines usable, but at the time they were still pretty expensive, over $200 at best. Our used LED scanner came off Ebay for under $30.

Csaba911, can you share the code and/or diagrams with us?
__________________
All my pencils *used* to have erasers!
kjennejohn is offline  
Reply

Tags
barcode, pic

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
wireless barcode adapter in inventry solution.Bluetooth barcode scanner. jane sumlung Robotics Chat 2 6th May 2009 05:16 AM
Tell you how to change barcode scanner to wireless bluetooth barcode scanner jane sumlung Electronic Projects Design/Ideas/Reviews 0 6th May 2009 04:25 AM
Connecting a Barcode reader to a PIC Microcontroller UART mosh11 Micro Controllers 16 5th April 2009 06:44 PM
Barcode reader stanlymt Electronic Projects Design/Ideas/Reviews 1 22nd January 2004 08:45 PM
BarCode reader Sherif Welsen Electronic Projects Design/Ideas/Reviews 3 15th October 2003 06:05 AM



All times are GMT. The time now is 02:30 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker