Jump to content
  • 0

[AD2] Emulating a Relative/Incremental-Encoder -- How to setup open-collector/drain


blipton

Question

I'm developing a Stepper Motor application, and would like to simulate the output of a relative encoder, which looks like a series of square pulses as the motor rotates, 63 to be exact (one tooth is missing).   

My board is providing a 5V pullup to the encoder output, so I assume I would need to use 'WaveGen' configured as an Open-Collector,  set the frequency (~1hz), and set it to do a set number of pulses then stop, but I'm not finding these options.   Am I looking in the wrong place or should be using a different function (pattern, script)?

 

Edited by blipton
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @blipton

The Digital IOs can be used as OC/OD but on Analog Discovery the 0/3.3V protection circuit could draw significant current and the 5V signal may drop.
The Wavegen outputs have no high impedance option but you could simulate (generate) 0/5V signals with these.
Or you could use DIOs with external level shifter.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...