PIR Motion Sensor
https://docs.google.com/present/view?id=0AcwFEsZiA2XlZGdmNjl4cWtfMWY2NGh4cGd4
Toccata Calabaza is an interactive pumpkin design that has different functions based on three inputs. A motion sensor, when triggered plays the Toccata and Fugue in D minor. When the night falls a photoresistor triggers the light inside the pumpkin. A temperature sensor is set to change the lights to flickering orange when it gets colder outside.
Some of the challenges I found in making this pumpkin is that the PIR sensor is too sensitive, so the the Toccata plays constantly. I will have to take off the lens, and perhaps the sound will be more accurate to movement. Another challenge is better representing the chill of the ghost with more than just an orange flicker. Some positive aspects of the project have been learning to compose with PWM, and having to do more research on motion sensing. I’m excited to learn more about music tones with PWM pins.
1) Project Title:
Paper Halloween Pumpkin
2) Concept:
Based on a users distance and interaction, my pumpkin will display different colors to create different mood. Also, there will be sound to make people surprise or scared.
First of all, yellow color will be shown. When a motion sensor detect a user, color will change to red. There will be photo sensor that will activate the multi-mouse led lights.
Once a user shake my pumpkin, it will play a music.
3)My Experience:
Working with codes is not easy for me. I will have to combine different function of codes to make my pumpkin alive.
My idea is to create a pumpkin lamp.
The lamp consist on 3 small pumpkins that interact with each other and they also respond to it’s environment using the motion sensor and the photocell.
The one in the middle will have little holes, like the sky, with blue LED’s inside, and will light as knight rider when the photocell is activated. It’ll also have a motion sensor which will respond lighting the RGB lights that are inside the other two pumpkins, changing colors.
The most challenging part will be to solder everything because I’ve never done it before.
And the most interesting and fun part so far, has been to make the photocell work and react to the changes of light intensity inside the room.
midterm project of : Firm Tharit Tothong
project name : Boo!!! I’m not a pumpkin!
This pumpkin take a character like a ghost in Mario game. (this guy )
Basically, the idea is the pumpkin going to do something when you’re not there.
Initial ideas now are to use proximity sensor to detect people and it hide itself if there is someone there, while it casually lit up when nobody nearby.
Also, it make some sound this sound is refer to Ghost house theme in Mario game and the beat is an analogy of the heartbeat of Boo. So when no body is closed to it, the beat goes slow because it’s relax. And goes more upbeat if there is someone nearby.
#include "pitches.h" int speaker = 5; int bulb = 6; int lightPin1 = 3; int lightPin2 = 4; int brightness = 0; int fadeAmount = 5;</code> // notes in the melody: int melody[] = { NOTE_B3, NOTE_CS4, NOTE_A3, NOTE_C4, NOTE_B3 ,NOTE_CS4, NOTE_A3, NOTE_C4}; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 4, 4, 4, 4,4,4,4,4 }; void setup() { pinMode(speaker, OUTPUT); pinMode(bulb, OUTPUT); } void loop() { note(); fade(); } void note(){ for (int thisNote = 0; thisNote < 8; thisNote++) { // modulate music speed through proximity sensor int tempo = map (analogRead(0),10,400,300,4000); int noteDuration = tempo/noteDurations[thisNote]; tone(speaker, melody[thisNote],noteDuration); int pauseBetweenNotes = noteDuration * 1.30; delay(pauseBetweenNotes); // stop the tone playing: noTone(speaker); } } void fade(){ int brightness = map (analogRead(1),10,250,10,255); analogWrite(bulb, brightness); }
The concept was actually derived from the likes of the Google Chrome icon… a metal sphere with an “eye” in the center. The pumpkinRobot won’t do anything super amazing and at first glance will seem to only have an eye with a pulsating internal light. However, upon its detection of someone’s physical presence, it’s light will immediately turn flashing red as panels emerge from it’s sides with flashing LEDs. After some time the panels will recede back into the form of the pumpkin and the internal light will return to its normal state.
2-3 Sentences about the most challenging and most interesting aspects of the project:
This has been difficult to build… and while I have built out the circuits for my RGB LEDs (the pulsating interior) and the panel LEDs… the other mechanics have been difficult. I’ve been testing with a button switch but plan on changing the trigger to a sensor once everything works.
The panel mechanism has been extremely challenging. At first I decided I would need servo motors to push and pull the panels into place… after talking with peers I decided a linear actuator (piston like screw pump) or a solenoid pump would be better since they operate in a single direction and would be easier to integrate into the pumpkin innards. Unfortuantely linear actuators start around $100 and the solenoid pump I picked up is too small to really do what I need it to. Thus, I am back to servo motors… and continuous ones at that, so I need to figure out how to map the range I need and find a way to engineer the push/pull mechanism. (YIKES).
The only other trouble I ran into was with the RGB light cycle. While the cycle works fine… breaking out of it mid-cycle to switch into a flashing red display has been difficult and I’m still troubleshooting. Even by including break statements within the cycle code, I was only able to interfere at certain points but would not be able to kill the actual loop. I hope to resolve this soon or I’ll just include a different mechanism.
Pumpkinstein is a life loving pumpkin that loves to eat and receive a lot of attention. Pumpkinstein makes happy sounds when you rub his ears, which are connected to pots and speakers. If you walk away, this is detected by a maxsonar sensor and his eyes turn red and angry, but if you are close, they are peaceful and blue. If you feed him candy, it interrupts a led/photo resistor circuit and his eyes blink in happiness.
The challenges so far have been figuring out the timing on potentiometers and speakers that make up the pumpkins ears. It’s been complicated making them both only react when touched, and not just running all the time. The other tricky part has been taking the simpler code from all separate sensors and combining them all together to play nice.
1. Ze Harry Potter Pumpkin
2. This magical pumpkin lights up and shoots spells based on how close a person is to the pumpkin. The eyes and wand of the pumpkin are LEDs and a sound recorder plays back 3 different spells.
3. I was having a lot of issues with the PIR sensor, so I switched to the miniphoto cell. This actually ended up being a good thing, because I can assign different values based on distance instead of just one with the PIR. The RGB LEDs make it more playful and integrates emotionality to the pumpkin; the closer you get to it, the more aggressive the spells get.
I haven’t had success with the sound recorder just yet. I’m missing the JST female connector, but with the new soddering skills we’re picking up today, I should be able to work around it. There’s also something funky going on with the wand part. It lights up, but its super dim.
The mac-o-lantern thinks it has a little core duo heart <3. Hence, it acts just like a computer. It doesn’t have a button to turn it on, so you just need to give it a little shake, and a white light will turn on (simulating an apple computer when it turns on). Then it has a little mouse. When you move it around, it will find the spot and connect to the internet. Then, you need to click the button on the mouse, and it will download the Halloween software. When it finishes downloading… THEN the pumpkin will light on, and it will be ready to light up the night. After it’s on, when people walk in front of it, it flickers its eyes, trying to lure them with its affordance… just like a real apple computer would do.
This was my inspiration:
I really wanted to add sound to the project, but all the instructions for the Twig Sound Recorder were so confusing. I thought sound would really add up to the concept (with the sounds of turning on, connecting to the internet, finishing downloading the software), so it was difficult bringing it down to just lights. The code in general was also a bit tricky, since there’s a lot of if’s and a lot of led’s. HOWEVER, the tricky/difficult parts are also the most interesting ones! But the best part overall was coming up with a concept that both makes sense, and makes me happy.
1) Project title: Stupid Pumpkin
2) 2-3 Sentences explaining concept.
My project is entitled Stupid Pumpkin because it is a pumpkin that people want to hit. It uses numerous LEDs using a shift register and uses blink, fade, multicolored, etc. to show its stupidness. It also has a motor that also turns according to the direction the pumpkin is hit to represent the pumpkin “seeing stars” after he gets hit. I’ve also used LEDs to show the pumpkin crying after he is it. Potentiometers are used so that people can change the pumpkin’s eye color.
3) 2-3 Sentences on most challenging and most interesting parts of your experimentations.
It was the first time I was using a shift register and a servo motor. I knew I wanted to use a lot of LEDs but my Arduino could only support so many output pins therefore I used the shift register to connect 8 LEDs to represent the mouth. Understanding the concept of the shift register was quite challenging. Another challenging part was working with the servo motor’s angles. I wanted to control the amount and the angle the servo motor turns and I had to work with a code that detected which numbers represented the turning of the servo motor. What is fun about my project is the servo motor turning according to which side the pumpkin is hit and that the pumpkin cries and makes a sad smiley face when it is it.
Hi there 🙂
My pumpkin will henceforth be known as
Kitteh
The concept is to explore the reactions of animals to recreate life in my pumpkin. I hope to make it blink naturally and breath steadily during its relaxed state, and make its eyes and breath very irregular when it’s startled.
The most challenging aspect so far was to unify all four sketches into a single one. The most interesting has been to learn about randomizing numbers and how that works. I used randomizing for the blinking and the breath.
~Freddie
Reply