Pages: [1]   Go Down
Author Topic: Hardware emulation  (Read 854 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
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18720
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


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: 299
Posts: 26194
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: