How to connect barcode reader to Stamp2p40
etto
Posts: 10
I am going to read barcodes with barcode reader and i would like to send read values to microcontroller. Is this possible?
After reading values with barcode reader(or scanner) there wont be any other control with the value of read barcode. I just want to barcode reader send the value to microcontroller and microcontroller show the value on LCD screen, thats all.
Anyone have an idea?
Thanks
After reading values with barcode reader(or scanner) there wont be any other control with the value of read barcode. I just want to barcode reader send the value to microcontroller and microcontroller show the value on LCD screen, thats all.
Anyone have an idea?
Thanks
Comments
Shameless Plug (please answer my question):
http://forums.parallax.com/showpost.php?p=0
If you anticipate having a large number of barcodes you might consider a Vdrive. The Vdrive is a USB thumbdrive reader/writer that can be interfaced to a microcontroller such as the Stamp. It was rolling through my mind what kind of applications I could use it for and a barcode scanner was one. My reasons were that the thumdrive can contain several thousand codes each with its own unique data such as brand name, price, supplier etc. Access to the data is quick and automatic. New product lines can be added by simply removing the thumdrive from the scanner and programming in a PC and it's relatively cheap. It does have a few drawbacks but it would be ideal for scan codes.
A couple of other things I thought might be suited, RFID database, long term data logging, a container for robotic macros.
Drawbacks (for me) it's a little tricky to program to begin with, I had to keep the baud to 2400 to reliably recieve "handshake" on a BS2, file names are limited to 8 characters.
Browse this sight if you think it's something you might need. http://www.vinculum.com/
Jeff T.
Thanks for your message. Actually, for me there won't be a database to define something after reading. It is quite simple process. Barcode Reader will read the barcode, send the number microcontroller(basic stamp) and microcontroller will send number to LCD screen.
What kind of barcode reader is better for this process? And after reading barcode what kind of value i will have in microcontroller, i mean;· will i have exact reading value or am i going to make some conversions in microcontroller?
Jeff T.
I checked ebay i found some supports RS232. But i didnt see any of them support also TTL. I wanna ask you something about RS232, what is the difference between RS232 and USB cable, is this all about connection to microcontroller? Because i will connect barcode scanner to stamp(controller) than i will connect LCD screen to microcontroller.·I mean i dont connect LCD to barcode reader directly. Could u explain a bit about RS232?
RS232 is a standard for transmitting serial data. It defines the voltages involved and the signals for control (not just the serial data streams) like DTR (data terminal ready) and others. Most computers now use another standard (USB) for serial data that can handle multiple virtual devices and dynamic reconfiguration and can supply power to most devices. You can buy adapters that electrically look like an RS232 connection to the I/O device and look like a simple serial connection to the software.
Handling a USB connection is much too complicated for a Stamp to do. There are some devices on the market for interfacing some kinds of USB peripherals to a microcontroller like a Stamp. GHI Electronics makes one and FTDI makes the Vinculum which is another. These may not be able to handle a bar code scanner unless the scanner is designed to look like an ordinary serial device to the USB host. Determining that may be difficult unless you're familiar with USB devices.
Post Edited (Mike Green) : 2/26/2007 12:44:38 AM GMT
Jeff T.
http://www.awce.com/pak6.htm
It's designed to interface a standard keyboard with a small micro, such as the Basic Stamp.