Go Down

Topic: Hardware emulation (Read 984 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.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy