![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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? | |
| |
| | #2 |
|
Get a PS/2 keyboard or RS232 compatible scanner. These scanners will convert the barcode to ASCII
| |
| |
| | #3 |
|
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! | |
| |
| | #4 |
|
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 | |
| |
| | #5 |
|
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! | |
| |
|
| 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 |