Friday, April 30, 2010
Tuesday, April 27, 2010
Bubblesteen Bubble Machine
video
I had an Adafruit motor shield for an Arduino micro controller sitting around for a couple of months and started playing around with it when I came up with this idea. I saw a lot of tilt and pan stuff for servos and web cams and thought what can I do that would be really cool and really stupid at the same time.


The Code for the Bubblesteen (not formated properly, but its the jist of it)
#include servo.h
/*servo pan tilt using motor shield from Adafruit. Separate motor with
propellar uses its own simple power source for this sketch.
By Bernard Katz 4/24/10
www.bernardkatzglass.com
*/
Servo panServo;
Servo tiltServo;
AF_DCMotor motor(4, MOTOR12_1KHZ); // create motor #4, 1 KHZ
byte pos = 0; // variable to store starting servo position
void setup() {
panServo.attach(9); //pan servo on pin 9
tiltServo.attach(10); //tilt servo on pin 10
panServo.write(90); //added this for second sketch
tiltServo.write(90); // hoping to halt wild start up swing
motor.setSpeed(230); // set dc motor speed to 254 of 0-255 range
}
void loop() {
for(pos = 0; pos < pos =" 0;" pos =" 90;">= 1; pos -= 1) { // tilt servo raises and levels off
tiltServo.write(pos);
delay(15);
}
for(pos = 180; pos >=1; pos -= 1) { // pan servo swings wand around towards fan
panServo.write(pos);
delay(15);
}
motor.run(FORWARD); //turn on dc motor
delay(3000); // pan servo hold at fan for a couple of seconds
Servo refresh(); //refresh and begin again
motor.run(RELEASE); // dc motor to stop
}
Touch Circuit

There is a shameless plug for my studio in the touch circuit video below, sorry
video
Sharpie Bot


Video of Sharpie Bot below
video
Sunday, December 6, 2009
IR sensor
Lately, 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.
Saturday, December 5, 2009
Cosmic night light
Friday, December 4, 2009
Motion voice recorder
As I am learning about electronics, I am also trying to work on the aesthetic side of things. I wanted to learn more about fabricating with plastics, so I put together this simple box for this project. I had to change some of the components midway through, so things did not line up as well in the box. The circuit worked, but trying to figure out the mathematical equations to set the delay were beyond me. Besides I think there were some issues elsewhere in the circuit. Just because the computer model says it will work, doesn't mean it will. That it why I think it is important to build things in the real world.



