Go Down

Topic: Hardware emulation (Read 900 times) previous topic - next topic

loveforvdubs

Is there a way to emulate hardware I/Os while developing my Arduino program. I would like to simulate a radial encoder for use with developing my program. Is there any way to do this?

Nick Gammon

If you have a second Arduino, you could program it to output pulses at whatever rate you wanted to.
http://www.gammon.com.au/electronics

loveforvdubs

Hmmm that is a pretty interesting idea. I am somewhat of a beginner. How would I figure out what sort of pulses to program to emulate a rotary encoder?

AWOL

Quote
How would I figure out what sort of pulses to program to emulate a rotary encoder?

You'd get hold of the device's datasheet and look at the timing diagrams, which is what you'd have to do anyway if you were going to emulate it.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up