Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

8-bit binary signal processing

  1. Nov 18, 2007 #1
    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 im 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" [Broken] but of a continous 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: May 3, 2017
  2. jcsd
  3. Nov 19, 2007 #2


    User Avatar

    Staff: Mentor

    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:


    Which encoding will you be using?
  4. Nov 21, 2007 #3
    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 seperate 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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook