Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: optical mark reader that uses a Teensy 3.5

  1. #1
    Junior Member
    Join Date
    Mar 2018
    Posts
    2

    optical mark reader that uses a Teensy 3.5

    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.
    Attached Files Attached Files

  2. #2
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,384
    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.

  3. #3
    Junior Member
    Join Date
    Mar 2018
    Posts
    2
    Thank you; that gets me going on the journey!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •