Here is my version of the Graph example code that simplifies things for easier adaptation, plus some other cool stuff like a translucent overlay to see past data history. It's designed to use any number of sensors or other data, analog or digital, binary or 8-bit or 10-bit or whatever you want, with generic variable... Continue Reading →
Firefly framework connects Grasshopper to Arduino
"Using Grasshopper's visual programming interface, Firefly gives you the ability to create interactive programs and devices by manipulating elements graphically rather than by specifying them textually. It attempts to bridge the gap between the digital and physical worlds by simplifying the prototyping process for interactive objects. It combines a specialized set of components with a... Continue Reading →
How to make LED brightness linear
The apparent brightness of an LED does not rise in a linear fashion as voltage or current is increased. Here is a simple lookup array that provides 32 steps of brightness by substituting appropriate PWM values. int pwmActual[] = { 0, 1, 2, 3, 4, 5, 7, 9, 12, 15, 18, 22, 27, 32, 37,... Continue Reading →
How to make a Sharp IR sensor linear
Sharp IR proximity sensors are cheap and easy to use, but do not produce linear output. NOTE: this is a different issue than noise or jitter in the sensor data. That can be fixed with capacitors to ensure stable power - read this for explanation. Here is one simple conversion to linear for the commonly... Continue Reading →