| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

Katy's Log

Page history last edited by Katy Law 8 years, 4 months ago

 

Katy's Log

 

At the End

 

I have made a video to show you where I have gotten with the project.
https://docs.google.com/file/d/0B4z0hmCmogHpU3htcUs2RWNpNTQ/edit
in a google doc that I have shared with you.

I figured out how to use a ULN2003 Darlington transistor to wire the RGB LED strip so that they can display colors based on Arduino codes with fade in and fade out effects.
The wire colors coordinates with the color of the light as you can see on the video. 
I followed a schematic online but made changes to it http://ikennd.ac/pictures/for_posts/2011/09/ArduinoDioderWiring.png
I also figured out that I can mix the red, green and blue to produce yellow and purple and white.
I plan on putting this in a lamp shade.

/*
PWM RGB Blink Color Test Script with fade in and fade out
*/

int ledPinB = 2; //Blue
int ledPinG = 3; //Green

int ledPinR=4; //Red
// variable to store the read value
int i = 0;

void setup()
{
pinMode(ledPinR, OUTPUT);//tell Arduino LED is an output
pinMode(ledPinG, OUTPUT);
pinMode(ledPinB, OUTPUT);

Serial.begin(9600);
}

void loop()
{

for (i = 0; i < 255; i++) { // loop from 0 to 254 fade in
  analogWrite(ledPinR, i);
  delay(10);
}

for (i = 255; i> 0; i--) {// loop from 255 to 1 fade out
  analogWrite(ledPinR, i);
  delay(10);
}
for (i = 0; i < 255; i++) { // loop from 0 to 254 fade in
  analogWrite(ledPinG, i);
  delay(10);
}

for (i = 255; i> 0; i--) {// loop from 255 to 1 fade out
  analogWrite(ledPinG, i);
  delay(10);
}
for (i = 0; i < 255; i++) { // loop from 0 to 254 fade in
  analogWrite(ledPinB, i);
  delay(10);
}

for (i = 255; i> 0; i--) {// loop from 255 to 1 fade out
  analogWrite(ledPinB, i);
  delay(10);
}
}

Final week

 

Following some of the advice on here

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236091181

Learned about ULN2003 Darlington Array Transistors and how to use it to control RGB strip LED with Arduino

Learned about shift register 74HC595 and how it looks the same as a ULN2003

 

Followed schematic

http://ikennd.ac/blog/2011/09/arduino-dioder-part-one/

tried to install Xcode App to Creating a Cocoa application to send messages to the Arduino - did not figure out how

 

Settled on using Arduino code to control RGB strip LED

/*
PWM RGB Blink Color Test Script
By EverestX
*/

int ledPinR = 3; //Red
int ledPinG = 5; //Green
int ledPinB =6; //Blue
// variable to store the read value

void setup()
{
pinMode(ledPinR, OUTPUT);
pinMode(ledPinG, OUTPUT);
pinMode(ledPinB, OUTPUT);

Serial.begin(9600);
}

void loop()
{
Serial.print(" Red");
analogWrite(ledPinR, 255);
analogWrite(ledPinG,0);
analogWrite(ledPinB, 0);
delay(3000);

Serial.print(" Green");
analogWrite(ledPinR, 0);
analogWrite(ledPinG,255);
analogWrite(ledPinB, 0);
delay(3000);

Serial.print(" Blue");
analogWrite(ledPinR, 0);
analogWrite(ledPinG,0);
analogWrite(ledPinB, 255);
delay(3000);

Serial.print(" Yellow");
analogWrite(ledPinR, 255);
analogWrite(ledPinG, 255);
analogWrite(ledPinB, 0);
delay(3000);

Serial.print(" Teal");
analogWrite(ledPinR, 0);
analogWrite(ledPinG,255);
analogWrite(ledPinB, 255);
delay(3000);

Serial.print(" Pink");
analogWrite(ledPinR, 255);
analogWrite(ledPinG,0);
analogWrite(ledPinB, 255);
delay(3000);

Serial.print(" WHITE");
analogWrite(ledPinR, 255);
analogWrite(ledPinG,255);
analogWrite(ledPinB, 255);
delay(3000);

Serial.print(" OFF");
analogWrite(ledPinR, 0);
analogWrite(ledPinG,0);
analogWrite(ledPinB, 0);
delay(5000);

}

//

Week before final week

 

Trying to incorporate Processing into the project. 

Followed directions on http://www.arduino.cc/playground/Interfacing/Processing

http://processing.org/reference/libraries/serial/Serial.html

 

Considering the use of LED strip

 

 

Today's date: 4.11.2012

 

Word association to mood lighting

 

Today, what is the current highest risk part of your project?

 

LED Ambient Mood Light

Create http://www.instructables.com/id/How-to-Make-an-LED-Ambient-Mood-Light-A-Beginner-/

The following materials are used:

Arduino Uno board (older boards should be compatible)  

USB A to USB B connector cable 

Computer with Arduino IDE software 
  Arduino solder-less breadboard shield 
3 resistors (330 ohm) 
Red LED 
  Green LED  
  Blue LED 
  breadboard connector wire
  white paper 
scissors 
tape 

 

 

 

Find the program that would take spoken words from a mic and give them functions.

There's Processing program that sends alignment data to arduino boards ?

 

http://voce.sourceforge.net/

http://sourceforge.net/projects/voce/

A speech synthesis and recognition library that is cross-platform, accessible from Java and C++, and has a very small API. Uses CMU Sphinx4 and FreeTTS internally.

To install:

http://www.instructables.com/id/Animatronic-Talking-Tree-Part-2-Speech-Recogni/step2/Setting-up-voce/

 

what is your plan to alleviate that risk?

 

Look all that up and get the lights.

How would the light correspond with the words?

 

what is you plan to do for/in next class? 

How do I put everything together and what's the connections I need.

 

After Class

what actually happened?

 

Got more information: mic transmit audio signal to electrical signal

What will you do before the next class meeting?

 

What problems did you run in to?

 

What is your plan forward?

 

what parts, information, and assistance do you need ?

 

 


 

Today's date: 4.4.2012

 

Word association to mood lighting

 

Today, what is the current highest risk part of your project?

Get Fluorescent lighting (may not work because they cannot dim)

Find the program that would take spoken words from a mic and give them functions.

There's Processing program that sends alignment data to arduino boards 

 

what is your plan to alleviate that risk?

Look all that up and get the lights.

How would the light correspond with the words?

 

what is you plan to do for/in next class? 

How do I put everything together and what's the connections I need.

 

After Class

what actually happened?

Got more information: mic transmit audio signal to electrical signal

What will you do before the next class meeting?

What problems did you run in to

What is your plan forward?

what parts, information, and assistance do you need ?

 

 

Comments (0)

You don't have permission to comment on this page.