Mission statement for this blog

This blog came about because of interests and projects that are not directly connected with my glass studio, though some aspects of these projects may overlap into my work at the studio down the road. I wanted a central place for photos, videos, and a little commentary for my side stuff. I figure this will be an easier way to communicate with people and friends with similar interests. Or at the very least, just stuff I have been up to.


Sunday, December 6, 2009

IR sensor

videoLately, I have been working with microcontrollers and getting into physical computing or interactive programming. The learning curve has slowed as I try to learn various programming languages. Being new to most of this, I find things and areas that interest me and try them out. I try to put my own small twist on the projects as I learn. This example I found uses an IR sensor used mostly in robotics to sense distance. When an object, like a hand, is picked up by the IR sensor, the color of the LED changes as the distance changes. When connected to my computer running serial communication with the microcontroller, the distance will be displayed on the monitor. An alternate code can be programmed to change frequency. This will cause the light to blink and blink more rapidly the closer the object.

2 comments:

  1. Bernard, are you using pulse width modulation to change the brightness of the LEDs?
    1) You could run a smooth palet of colors as a function of distance.
    2) You could have a fixed color sequence and have it change it frequency as the measured distance changes.
    Still pondering what makes a color sequence look pleasing...

    ReplyDelete
  2. you probably could, it would take a good bit of code changes to have a certain color happen at certain distances. I would like to try something with a longer range sensor. This sensor is only responsive fairly close.

    ReplyDelete