Loading...
Pages: [1]   Go Down
Author Topic: Hardware emulation  (Read 547 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
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
Shannon Member
*****
Karma: 219
Posts: 13896
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: 27
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: 138
Posts: 19067
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.

Pages: [1]   Go Up
Print
 
Jump to: