The other day I taking apart this old organ from the 60's (one of those furniture sized play organs they would have in theatres and things, all electric, no pipes), and I was looking at the volume pedal and noticed that it used an odd system to measure the pedal's position. Moving the pedal up and down pushes a small piston back and forth that has a small light bulb at one end. the light bulb on the piston is enclosed in a small cylinder which lets out into a small, closed off area populated with two photo-resistors that sense the amount of light coming from the bulb, depending on how far it is in the cylinder. When I wired it up to a breadboard, I noticed that the bulb is very dim, which helps with light accuracy, I guess.
I was messing around with it and when I wired the photo-resistors up to analog inputs on my Arduino Uno and read it with the serial monitor, it was actually pretty accurate, but because it is constantly spitting out values, I can't figure out how to turn the outputs into something useful. The numbers fluctuate heavily, but depending on how much the pedal is depressed, some numbers show up more than others, larger or smaller depending on what position the pedal is at. Because of this fluctation, I can determine what position the pedal would be at based on the numbers, but I cant imagine writing a script to read it and try and figure it out. I am turning the organ into a desk (thats another story) and would like to keep the pedal to do something cool, like change the volume of windows, but until I can figure out how to read the input from these photoresistors its pretty useless.
Any thoughts? Thanks!
I was messing around with it and when I wired the photo-resistors up to analog inputs on my Arduino Uno and read it with the serial monitor, it was actually pretty accurate, but because it is constantly spitting out values, I can't figure out how to turn the outputs into something useful. The numbers fluctuate heavily, but depending on how much the pedal is depressed, some numbers show up more than others, larger or smaller depending on what position the pedal is at. Because of this fluctation, I can determine what position the pedal would be at based on the numbers, but I cant imagine writing a script to read it and try and figure it out. I am turning the organ into a desk (thats another story) and would like to keep the pedal to do something cool, like change the volume of windows, but until I can figure out how to read the input from these photoresistors its pretty useless.
Any thoughts? Thanks!