How Can I Convert a Barcode Signal to 8-bit Binary Code with LEDs?

Click For Summary
SUMMARY

This discussion focuses on converting a barcode signal into 8-bit binary code using LEDs. The user has successfully detected the barcode signal with an oscilloscope and is exploring the use of an Analog to Digital Converter (ADC) and a microcontroller (uC) to process the signal. The project aims to decode the barcode, which contains 8 bits of information represented by varying widths of vertical lines. The simplest encoding method suggested is Code 39, which allows for a straightforward implementation.

PREREQUISITES
  • Understanding of Analog to Digital Converters (ADC)
  • Familiarity with microcontroller programming
  • Knowledge of barcode encoding standards, specifically Code 39
  • Basic electronics and circuit design skills
NEXT STEPS
  • Research how to implement an Analog to Digital Converter (ADC) for signal processing
  • Learn microcontroller programming techniques for barcode decoding
  • Study the specifications and implementation of Code 39 barcode encoding
  • Explore circuit design for LED displays to represent binary code
USEFUL FOR

Electronics enthusiasts, hobbyist developers, and anyone interested in building barcode scanning projects or learning about signal processing and microcontroller applications.

garyman
Messages
19
Reaction score
0
I am currently working on a project to build a barcode scanner. I have built the apparatus to detect a signal and am able to view this signal on an oscilloscope, however I am wondering if it is possible to build a circuit to output this signal as a binary code on a series of LED's (or something of that nature...)? You might of guessed I am not very proficent with electronics, so I came here for help! This signal is the same form as on http://www.thekeeser.com/Projects/bar_code_reader.htm" but of a continuous nature. I was thinking of putting the signal through some sort of Analogue to Digital convertor and then using some sort of counter to output this signal on a display, maybe a series of LED's representing a binary code? The readout doesn't have to be that accurate, just as long as it kind of works... Could this be done? How? Any help would be much appreciated!
 
Last edited by a moderator:
Engineering news on Phys.org
To decode the barcode signal, you will need to do some signal processing on it. The most straightforward way would be to do as you say, and digitize the signal and then process it with a microcontroller (uC). The uC will need to figure out what the bar frequency is (higher the faster you swipe), and figure out the synchronization and placement of the bars, and then the wide/narrow stuff. The information in 1-D barcodes is stored in the widths and spacings of the lines:

http://en.wikipedia.org/wiki/Barcode

Which encoding will you be using?
 
The only information we were given about barcode is that it would contain 8 bits of information as defined by vertical lines of single and double width. The examples I've got consist of 8 separate lines. As no encode was specified I guess I can just use the simplest one (code 39?)... or even just some sort visual representation of the barcode would do. Like I say I'm trying to keep it as smple as possible for now. Thanks.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
3K
Replies
20
Views
6K
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K