Skip to content

Tape reader edge detect software

maryEmbecosm edited this page Aug 4, 2017 · 2 revisions

5 resisters change the output of 5 circuits with the amount of reflection of the paper (BLACK or WHITE). An arduino has 6 inputs; one for each of the circuits and one for the FPGA error signal. It has 1 5 bit output for the binary values of the circuits.

The aim of this program is to detect massive changes in input for each circuit and translate into binary. To do this a series of image detection algorithms will be researched to find the most accurate.


To do list:

  • Step 1: Research algorithms
  • Step 2: Write psudo code (will be quite a long program)
  • Step 3: Program for one circuit
  • Step 4: Test and debug
  • Step 5: Implement more circuits (one at a time!)
  • Step 6: Voltage shifter connection test
  • Step 7: On the FPGA, change the binary i/p to the necessary input

Possible algorithms:

  • Serbel operation (1D matrix or 2D)
  • Hamming code (What is required output? Can it be changed?)

Wanted input:

  • Need to check

Psudo-code for one:

  • matrix = {1, 0, -1}
  • Read in next bit
  • Save to 3x1 array
  • Find dot product of array & matrix
  • If dot is neg == new bit is an edge
  • Return bit stuff
  • Ignore next 2??
  • Loop
Clone this wiki locally