In the example, only one channel is working at each time.
Can I control the AD5206 so I can run some channels at the same time?
In the example, only one channel is working at each time.
What example?
Can I control the AD5206 so I can run some channels at the same time?
Completely impossible. Or, ridiculously easy. It all depends on what the hell a ADS206 is. Hint, hint!
I've meant this example:
Is it possible that more than just one channel will be activated?
All channels will be active all the time.
The level is set with the function "digitalPotWrite(channel, level)" and that is it.
The ChipSelect is only used for the digital communication.
well,
I still don't understand, if I look at the example: http://arduino.cc/en/Tutorial/SPIDigitalPot the code: int channel = 0 means I can't control two channels at the same time.
Define the same time apart at exactly at the same time, no measurable delay... or nano, micro milli seconds The differences are in descending order of complexity where the first is a challenge and the rest are in descending orders of complexity.
Docedison:
Define the same time apart at exactly at the same time, no measurable delay... or nano, micro milli seconds The differences are in descending order of complexity where the first is a challenge and the rest are in descending orders of complexity.
Hmm to be honest I really don't understand what you means.
basically in the example I've introduce there are fade on each LED only, I want to make the "fade" in two or more LED's at the same time.
If I've understood you correctly you mean that I basically can't but make i minimum delay between the channels?
Hmm to be honest I really don't understand what you means.
The Arduino can not do two things at EXACTLY the same time. Therefore, you must accept some delay. If you use direct port manipulation, for instance, you can turn two pins within a few nanoseconds of each other. Not at exactly the same time, but fairly close.
The question is what does "at the same time" mean to you? At precisely the same time is not possible. A few nanoseconds apart might be. A few microseconds apart is more achievable. A few milliseconds apart is even easier. A few days apart moves in the other direction in terms of complexity.
I still don't understand, if I look at the example: http://arduino.cc/en/Tutorial/SPIDigitalPot the code: int channel = 0 means I can't control two channels at the same time.
True, but you can call the function (digitalPotWrite()) that is used in the loop twice, without the loop, to activate two channels fairly close to the same time.
Whether or not that is close enough to meet your definition of "at the same time" remains to be seen.
Ok I completely understand the delay issues with the arduino, but my question is can I run 4 of the same digital pot ad5206 at the same time using the same connections to have the same channel on all 4 ad5206's work at the same time. also would there be a delay between all 4 chips on the same channel?