Hi, I am looking to put together a program which can take a table which would contain 0-255 values and provide a PWM or analogue 0-[near rail]v output.
I put a similar thing onto the picaxe forum but their limited memory space and not having many pwm outputs limits me.
The application is to simulate the light cycle of a 24 hour period using RGB led and white lights. The white provides the bulk light with the RGB to adjust the general colour.
There would be 4 columns of numbers, eg:
Step. Ch1. Ch2. Ch3. Ch4. 1. 238. 154. 57. 37 2. 189. 189. 48. 28 3. 119. 245. 35. 15 N. 35. 26. 2. 0
These would be for rgb and White.
Each "step" would be a unit of time for which the four values would need to be output from the IC. Depending on the program it could be ms to minutes.
I would normally expect 4 values per minute For a 24 hour period there Would be 5760 steps. This could be changed to perhaps 63msec/step for testing so 24 hours runs through in 6 mins, for example.
Is it possible to have a program which starts at the top of a table providing a corresponding analogue output for a predetermined period of time and just runs through then repeats?
I can either work with pwm (0-255 = 0-100%) (at 20-30kHz) or analogue (0-255 = 0-10v) (where the 10v would be achieved via an opamp). The output would be controlling LED drivers and fluorescent ballasts with PWM or analogue inputs for the dimming so the IC output signal wont be controlling the power electronics or LED's directly - its just a signal i need.
If there are any known examples or such a thing i would be interested in this.