http://thingm.com/products/blinkm.html
website for arch lights
http://thingm.com/products/blinkm.html
website for arch lights
I want to design a floor mat that can tel you what state of meditation you’re in by changing colors.
Working:
Problems:
It does not seem to be reliable? It is pulsing with my pulse with a delay but i’m not exactly sure if it is correct. Also I cannot get processing to work.
Simon
Pulse Sensor – idea
1. Water + Sound performance
2. Your creepy b/g friend
3.Boxing Bot
Week 13 (Nov 30)
Pulse Sensor
Homework Setup Pulse Sensor to Blink 2 LED’s
Week 14 (Dec 7)
Present Iteration One of Wireless Beat Toy
[Week 14.5] Possible Make-up on Tues
Week 15 (Dec 14)
Present Finals
Dec 22nd Publish Video Documentation.
For the Pulse Sensor Project I want to use the values that I get to change the frequency of sound (for example a sine sound)
I didn’t make a sketch, because this is mostly an audio project.
The past couple of weeks I was thinking about this project, so this is the idea I want to work on.
Idea One which is the traffic light is a tool for the gym. It has clearly been too long since I have driven and I accidentally drew the stop light at the bottom. Green means go faster to get to your target heart rate, yellow means keep doing what you are doing and red means slow down you are going too fast. There are particular zones listed on gym equipment – going faster builds endurance and not as fast burns fat, etc.
Idea Two would be more for kids, maybe in a science museum. The found heart rate aligns with an animal. Slower heart rates show slower moving animals and faster heart rates show faster moving animals.
Idea Three is a tool for taking your pulse. You press a button to start and then see your heart rate flashing. After 15 seconds passes the first light illuminates, then 30 seconds lights the 2nd, 45 seconds the third, and 60 seconds the fourth. This is a quick and easy way to check your pulse. I imagine that the seconds lights would look like lotto ping pong balls.
1) To hook-up our RX and TX modules, read the KLP Walkthrough Tutorial pin read-out and photos in a breadboard.
2) After Hooking up both of these. Read the VirtualWire.pdf starter guide. Download the VirtualWire-1.9.zip library and unzip it in your Documents/Arduino/libraries/ folder. With a restart of Arduino you’ll see it now pop-up in your available libraries and example sketches.
3) Try running this code. Run the RX code on one Arduino. The “transmitter_pcomp_class” and make sure both work. Then try the “PulseSensorAmped_Arduino_1dot1_wireless_pcomp_class” code with the Pulse Sensor hooked up to the TX Arduino.
Code: http://dl.dropbox.com/u/60949794/WirelessTX_RX_PComp_Class_Code.zip
This is a great blog post about getting a changing int value passed via the Virtual Wire hardware and lib:
http://genericnerd.blogspot.com/2012/07/arduino-sending-integers-over-rf-with.html
Here a link to my case statments
https://github.com/Sussesj/CC-LAB/tree/master/CaseStatment
A video for it here:
https://github.com/Sussesj/CC-LAB/blob/master/CaseStatments.mov
And here is a little of the Ideas I though of:
Using as DIP switch like below is common/traditional way to active/deactivate different programs or features on your program. Flipping one of these switches ON or OFF can give Power or Ground to a PIN of a microchip. If you use the Boolean Logic on the Arduino, you can then “active/deactivate different programs or features” in your greater program. DIP switches like these are usually not “user facing”, they are typically for an engineer or technican to use, like in a TV cable box to turn on/off premium channels, for example. But sometimes these switches are user facing in a number of off-the-shelf thermostats for example.
When you put “jumper wires” in your last project, they were to emulate this types of circuit switches. You find them useful as your projects get more complex and may have different types of users that your one device needs to work for.
video: Here
Code is Collapsed Here:
<pre>int speakerPin= 7; int ledPin = 5; int photoPin = A5; int potPin = A0; int var; int potDelay; int photoDelay; int photoVal; //analogRead of the photocell //set by int potVal; //analogRead of the potentiometer int newphotoVal; int toneVal; //set by photo, pot, pot, photo (case 1 -4) int switch1 = 11; //red cord int switch2 = 12; //orange cord int newSwitch1; int newSwitch2; void setup() { pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { newSwitch1 = digitalRead(switch1); newSwitch2 = digitalRead(switch2); photoVal = analogRead(photoPin); potVal = analogRead(potPin); potDelay = map(potVal, 0, 1023, 0, 250); photoDelay = map(photoVal, 0, 1023, 0, 250); //1st case if (newSwitch1 == 1 && newSwitch2 == 1) { var = 1; } //2nd case if (newSwitch1 ==0 && newSwitch2 == 1) { var = 2; } if(newSwitch1 == 1 && newSwitch2 == 0) { var = 3; } if(newSwitch1 == 0 && newSwitch2 == 0) { var = 4; } switch(var) { case 1: potToLEDphotoToSpeaker(); //case 1 break; case 2: photoToLEDpotToSpeaker(); //case 2 break; case 3: potToLEDblinkAndSpeaker(); break; case 4: photoToLEDblinkAndSpeaker(); break; } } void photoToLEDblinkAndSpeaker() { //case 4 analogWrite(ledPin, HIGH); //analogWrite(pin, value) delay(photoDelay); analogWrite(ledPin,LOW); delay(photoDelay); tone(speakerPin, photoVal*2); //instead of *4 delay(photoDelay); noTone(speakerPin); } void photoToLEDpotToSpeaker() { //case 2 analogWrite(ledPin, (photoVal/4)); tone(speakerPin, potVal*4); delay(20); } void potToLEDblinkAndSpeaker() { //case 3 analogWrite(ledPin, HIGH); //analogWrite(pin, value) delay(potDelay); analogWrite(ledPin,LOW); delay(potDelay); tone(speakerPin, potVal*4); delay(potDelay); noTone(speakerPin); } void potToLEDphotoToSpeaker() { //case 1 //pot to LED and photo to speaker analogWrite(ledPin, (potVal/4)); tone(speakerPin, photoVal); delay(20); }
Reply