Visualizing Procyon Settings
by
, 05-23-2011 at 12:22 PM (34508 Views)
In my quest to master programming on the Procyon I have found it necessary to create tools to assist in intelligent design. To this end I have been developing a spreadsheet that graphs the waveforms that are created by the various options available in the Editor. This is a preview release for the purpose of trial and feedback.
At this time, it only visualizes the Sine waveform. Triangle is very close to this. Square is in development but the Duty Cycle is proving to be a challenge.
There are a couple of things that one must know to effectively understand what they are looking at with the graphs. The first is that 127 is the baseline. At 127 at 0 amplitude the LED is off. The closer the graphed point gets to 127 the less bright the LED will be. It seems from experimentation that actually in the Procyon the wave is rectified. So the negative cycle is mirrored into the positive.
At the moment, 2 complete cycles are displayed. They are calculated in a 2 second time frame. So for extreme frequency settings you may wish to calculate a fraction of the frequency to be able to display it in sufficient detail on the graph. Eventually, I will integrate these calculations into the program.
Also for DC offset only the portions of the wave that are above 127 trigger the LED to display.
As I have said this is an early release but I would very much appreciate feedback from people that decide to try it out. I will continue development and if you are an Excel master I would love function suggestions for Duty Cycle on the Square.
What I hope to achieve is a visual tool that we can post screenshots of the graphs to share and discuss the effect of settings. It would be a visual language of sorts to talk about the strategies and results for creating great Procyon sessions.
That is the hardest part I have found in programming, having some idea of how the LEDs are interacting and combining to produce output.
Here is the link for version 0.11 . It is a Microsoft Excel spreadsheet.