Teensy 4.0

Hi,

I am currently working on a senior design project. I have a couple questions regarding the Teensy 4.0 board. We are using a thru-beam sensor to detect on object. Once this object is detected, we need to be able to start two separate systems.

  1. I believe the sensor has a digital output as it is an NPN output. However, I am not too sure which pin would be best to connect to on the Teensy 4.0 board.

  2. The two separate systems are currently being used with MATLAB. Is there any way to code the Teensy 4.0 board using MATLAB? I have read around online but haven’t found any definitive answers.

Link to the sensor: https://www.wolfautomation.com/photoele … -npn-45689

Thank you all for your help

You’ll have to ask Marshall Wolf Automation which wire(s) to use, as it doesn’t seem to be readily listed @ that link…but yes you can transpile from MATLAB to C https://forum.pjrc.com/threads/67690-Be … n-a-Teensy like so; combine that info with basic Teensy https://www.pjrc.com/teensy/first_use.html and you should be good-to-go!

Looks like Teensy is not supported by MATLAB yet. https://www.mathworks.com/matlabcentral … y-hardware

The option suggested by TS_russell can be considered.