This is the first version of my Peggy 2.0 simulator. Peggy 2.0 is a piece of hardware that lets you mess around with brightly coloured LEDs and mesmerise small children. You can see a video of it on youtube.

Before I get around to buying one and soldering the damn thing together, I thought it might be handy to try out some demos first, using the magic of Processing.

The aim is to produce a reusable set of Peggy classes that anyone can use to try out ideas.

  • In good MVC fashion the data and display are kept separate, so you can plug in your own display
  • The display is basic but resizes to any x:y cleanly
  • Next steps: (1) make it faster (2) more fancy demos with the LEDs (3) more realistic LED rendering with ‘bloom’, so it actually looks like the video

Hit ‘Continue’ to see a basic demo with a bunch of sine-wave bars going in and out of phase.


This one is non-interactive I’m afraid…

To view this content, you need to install Java from java.com

Source code: peggySim.pde

If you want to use the Peggy classes, please leave a comment and link back to this post. I’ll be updating them over time. Cheers!