Pages: [1]   Go Down
Author Topic: Hardware emulation  (Read 884 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19358
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you have a second Arduino, you could program it to output pulses at whatever rate you wanted to.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

Pages: [1]   Go Up
Jump to: