Sensors & outputs project

Hi guys,

Im about to start a project and im bit of a beginner and wondering if ive bit off more than I can chew. Basically I'd like to use my arudino to gather various values with four sensors to then give an output with colour and sound:

ADXL335 Acceleromter
Ultrasonic sensor
Temperature and Humidity

With the accelerometer I'd like to use the XYZ path to change the RGB values on a proprietary LED light strip and then use the remaining inputs to change/alter some data in puradata.

I was wondering if anyone had any experience in this area? So far I've got myself the correct code to get inputs reading in the serial monitor. Any advice to get this changing the RGB values would be sincerely appreciated!

Thank you.

int x, y, z;
int red_light_pin= 11;
int green_light_pin = 10;
int blue_light_pin = 9;

void setup()
{
Serial.begin(9600); // sets the serial port to 9600
}

void loop()
{
x = analogRead(0); // read analog input pin 0
y = analogRead(1); // read analog input pin 1
z = analogRead(2); // read analog input pin 1
Serial.print("accelerations are x, y, z: ");
Serial.print(x, DEC); // print the acceleration in the X axis
Serial.print(" "); // prints a space between the numbers
Serial.print(y, DEC); // print the acceleration in the Y axis
Serial.print(" "); // prints a space between the numbers
Serial.println(z, DEC); // print the acceleration in the Z axis
delay(100); // wait 100ms for next reading
}

Welcome to the forums. Please read the sticky post at the beginning of the forum about how to properly post your code using code tags. It helps people help you.

As for your code, you have read the values in, now you need to write those values out to your RGB strip. Only you know how to interface with that proprietary strip. If it were just one RGB led, you would take the input, which is 0-1023 and divide by 4 to get 0-255 and use analogWrite() to the R, G, and B pins to set the value.