Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Lights and motion. on: May 10, 2011, 10:11:52 am
... Thanks for the info, it's all fixed now, i think the pressure of the deadline is liquifying my brain.
2  Using Arduino / Programming Questions / Re: Lights and motion. on: May 10, 2011, 09:48:18 am
I've wired the resistors to 5V, yes, and the RBG pins to pins 8, 9, 10 on the Uno

You can make it out in the images, the resistors are bunched together and wired to 5V and each of the R G B pins on the LED are wired to  8 9 and 10 respectively.
3  Using Arduino / Programming Questions / Re: Lights and motion. on: May 10, 2011, 09:35:45 am
This is the link to the most in depth description of the LED:

http://www.maplin.co.uk/rgb-full-colour-led-35893
4  Using Arduino / Programming Questions / Re: Lights and motion. on: May 10, 2011, 09:31:40 am
It's described on the Maplin's site as a Full colour red lamp with a standard 6-pin DIP design which contains 3 ultra bright LED chips (RGB) within one package to produce various colours in the visible spectrum, including white light, with a wide viewing angle of 100°.
5  Using Arduino / Programming Questions / Re: Lights and motion. on: May 10, 2011, 09:20:33 am
The RGB LED didn't work when I wired the resistors to ground but oddly (or maybe not oddly) it worked when I wired it to 5V or AREF

I wired the R G & B pins to 8,9, and 10.
6  Using Arduino / Programming Questions / Lights and motion. on: May 10, 2011, 09:15:10 am
Hi there, I'm a beginner looking for a little help with making my RGB LEDs turn on when they're picked up.

I have programmed a spark fun ADXL335 accelerometer to sense when its being picked up and turn on the LEDs

Here is my code so far:

int sensorValuex = 0;  // variable to store the value coming from the sensor
int sensorValuey = 0;  // variable to store the value coming from the sensor
int sensorValuez = 0;  // variable to store the value coming from the sensor

void setup() {
  // declare the ledPin as an OUTPUT:
  pinMode(8, OUTPUT); 
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT); 
  Serial.begin(9600);
}

void loop() {
  // read the value from the sensor:
  sensorValuex = analogRead(0); 
  Serial.print(sensorValuex);
  Serial.print(" ");
  sensorValuey = analogRead(1); 
  Serial.print(sensorValuey);
  Serial.print(" ");
  sensorValuez = analogRead(2);   
  Serial.print(sensorValuez);
  Serial.println(" ");

  if (sensorValuez >  440)
  {
    digitalWrite(8, HIGH);
    digitalWrite(9, HIGH);
    digitalWrite(10, HIGH);
    delay(5000);     //this delays for 5 seconds
  }
  else
    digitalWrite(8, LOW);
    digitalWrite(9, LOW);
    digitalWrite(10, LOW);
   
   
  //digitalWrite(8, HIGH); 
  //digitalWrite(8, LOW);   
  //digitalWrite(9, HIGH); 
  //digitalWrite(9, LOW);   
  delay(10);                 
}



So far it has worked with a single colour LED but the RGB LED seems to do the exact opposite of my programming, it stays on until it's picked up.

Can anyone tell me where I'm going wrong?
7  Using Arduino / LEDs and Multiplexing / Re: Connecting RGB LEDs & Voltage Regulators to an ADXL335 Accelerometer on: April 17, 2011, 03:27:06 pm
Quote
Without a circuit diagram?
Can't say.


Is it not possible to infer from my project description, specs and  whether I need a short circuit or not? I was told this was more than possible?

Quote
That's what we call a "short-circuit".
Sometimes, this is what you want.
Sometimes, not.


I'd just like a few educated suggestions from someone who has experience as I was repeatedly told by my tutor (who is unfortunately unavailable for the next three weeks) that none of this would be too protracted for people in this forum to understand or extrapolate on if necessary?

Don't really feel like I've gotten anywhere since last week despite laying out out all the specs of the project, its purpose etc.

Thanks for your time though.
8  Using Arduino / LEDs and Multiplexing / Re: Connecting RGB LEDs & Voltage Regulators to an ADXL335 Accelerometer on: April 17, 2011, 02:18:18 pm
Quote
The face is clear (the body white, IIRC), but be assured that there is a red LED, a green LED and a blue LED

Okay.. So this means its primarily one colour?


Quote
That's what we call a "short-circuit".
Sometimes, this is what you want.
Sometimes, not.


So, with regards to this project.. Is a short circuit necessary?

9  Using Arduino / LEDs and Multiplexing / Re: Connecting RGB LEDs & Voltage Regulators to an ADXL335 Accelerometer on: April 17, 2011, 10:48:13 am
There are no red LED's.. It might not show it on the diagram in the link but there are colourless.

Really I think I have all I need but I'm apprehensive about the circuitry. I was told by a tutor the process was more or less straight forward and people on this site would be on point with the circuitry side of things.

Is there a particular part of the forum I should be posting this to as, apart from your response, I've tried a few areas of the forum to no avail.

I've started soldering the accelerometer to the bell wire as I couldn't wait for or find any real info.. One question though, how important is it if the solder from one connection touches solder from another connection on the underside of the breadboard?

10  Using Arduino / LEDs and Multiplexing / Re: Connecting RGB LEDs & Voltage Regulators to an ADXL335 Accelerometer on: April 16, 2011, 04:07:38 pm
I'd like the LED to work at full capacity as long as it does not require ventilation i.e. a fan

I also wanted the LEDs to go slowly through the colour gradients when they are turned on.

The resistor I'm using is the standard T0-220 package; first one on the left.
11  Using Arduino / LEDs and Multiplexing / Re: Connecting RGB LEDs & Voltage Regulators to an ADXL335 Accelerometer on: April 16, 2011, 12:11:45 pm
Specs for RGB: http://www.maplin.co.uk/rgb-full-colour-led-35893

Specs For regulator: http://www.datasheetcatalog.org/datasheets2/44/448659_1.pdf

As for  circuit diagram I need one drawn up for me as I don't understand them at all, I'm sure you can understand what I'm trying to do from the description?
12  Using Arduino / LEDs and Multiplexing / Connecting RGB LEDs & Voltage Regulators to an ADXL335 Accelerometer on: April 16, 2011, 09:57:40 am
I'm a complete beginner to circuitry & programming and have watched but not fully understood a fair few tutorials, so I'm hoping for a little patience for my inexperience..

I'm trying to connect two RGB LEDs to an arduino uno but am unsure which ports to connect them to.

I'm using an ADXL335 accelerometer which I want to connect to the 3.3v port to detect movement (e.g. someone picking it up) and light up the LEDs

I have 6 pin full colour RGB LEDs and really need to know the soldering technique used to connect them to a TS 317 voltage regulator and how that connects to the power supply which will be a 9 V battery pack.

I'm also wondering if anybody knows how to correctly solder the ADXL335 accelerometer to yellow bell wire?

Any info would be much appreciated,

Isaac
13  Using Arduino / Project Guidance / Re: Using an Arduino, an accelerometer and LEDs... on: April 14, 2011, 05:17:48 am
Okay great, thanks for the info.  smiley
14  Topics / Interactive Art / Using LED's an Accelerometer and Voltage Regulators with the Uno on: April 14, 2011, 05:13:41 am
Hi guys,

I'm a complete beginner at both programming and circuitry so I'd really like some sound advice on my project!

I'm making an 'Artist Book' on digital designs. The book itself resembles a hard drive.

I wanted to add some interactivity by having the logo on the cover light up when the user lifts it or moves it.

So far I have an accelerometer (ADXL335), 2 Voltage regulators and an Arduino uno to complete this task.

I'd like to know:
 
how feasible this idea is,

whether I could complete it before the beginning of May

what kind of LED's are most powerful, cost effective and require no ventilation

how I would go about coding the arduio to carry out this function.

Any advice at all would be greatly appreciated.

Thanks!

Isaac
15  General Category / General Discussion / Using LED's an Accelerometer and Voltage Regulators with the Uno on: April 14, 2011, 05:13:29 am
Hi guys,

I'm a complete beginner at both programming and circuitry so I'd really like some sound advice on my project!

I'm making an 'Artist Book' on digital designs. The book itself resembles a hard drive.

I wanted to add some interactivity by having the logo on the cover light up when the user lifts it or moves it.

So far I have an accelerometer (ADXL335), 2 Voltage regulators and an Arduino uno to complete this task.

I'd like to know:
 
how feasible this idea is,

whether I could complete it before the beginning of May

what kind of LED's are most powerful, cost effective and require no ventilation

how I would go about coding the arduio to carry out this function.

Any advice at all would be greatly appreciated.

Thanks!

Isaac
Pages: [1] 2