optical mark reader that uses a Teensy 3.5

Status
Not open for further replies.

mark_mason

New member
I will need 16 data input lines, 4 interrupt pins, and 4 PWM output pins. The data will have to be parsed and stored then potentially transferred via USB or SD card to a PC.
The Teensy 3.5 looks like an excellent choice for this project. I am having trouble finding which pins are programmable for interupts, does the Arduino mega pin limitation (only pins 2,3,18,19,20,21) apply to the Teensy 3.5 processor? I'm not new to hardware development but am totally new to the Arduino world.
I have just started a sketch but realized the interrupts were not available because I had wired them for some data inputs. The sketch (starter_code.doc) is just the beginning attempt.

Thanks for any help you can give. Mark.
 

Attachments

  • starter_code.doc
    14 KB · Views: 81
  • OMR goal.doc
    10 KB · Views: 74
On the Teensy 3.x processors, almost every digital pin which is not otherwise assigned in your code (i.e. for PWM or whatsoever) is interrupt capable. The attachInterrupt() function lets you determine the pin #, the trigger (rising, falling, or both), and the pointer towards your corresponding callback function individually.
 
Status
Not open for further replies.
Back
Top