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

Click For Summary
To convert a barcode signal to 8-bit binary code using LEDs, a circuit can be built that digitizes the signal with an Analog to Digital Converter (ADC) and processes it using a microcontroller (uC). The microcontroller will analyze the frequency of the barcode signal to determine synchronization and the widths of the bars, which represent the encoded information. The project can utilize a simple encoding method, such as Code 39, to keep the implementation straightforward. A visual representation of the barcode can also be considered if accuracy is not a primary concern. Overall, the approach involves signal processing and basic electronics to achieve the desired output.
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.
 
I am trying to understand how transferring electric from the powerplant to my house is more effective using high voltage. The suggested explanation that the current is equal to the power supply divided by the voltage, and hence higher voltage leads to lower current and as a result to a lower power loss on the conductives is very confusing me. I know that the current is determined by the voltage and the resistance, and not by a power capability - which defines a limit to the allowable...

Similar threads

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