 
	
	
	
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
 
	
	 
	 
 
	//http://rouvelle.com/rai_fa_12/
// Init the Pins used for PWM
const int redPin = 9;
const int greenPin = 10;
const int bluePin = 11;
// Init the Pins used for 10K pots
const int redPotPin = 0;
const int greenPotPin = 1;
const int bluePotPin = 2;
// Init our Vars
int currentColorValueRed;
int currentColorValueGreen;
int currentColorValueBlue;
void setup()
{
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
  pinMode(bluePin, OUTPUT);
}
void loop()
{
// Read the voltage on each analog pin then scale down to 0-255, for common cathode LEDs
  
  currentColorValueRed = (map( analogRead(redPotPin), 0, 1024, 0, 255 ) ); 
  currentColorValueBlue = (map( analogRead(bluePotPin), 0, 1024, 0, 255 ) );
  currentColorValueGreen = (map( analogRead(greenPotPin), 0, 1024, 0, 255 ) );
 Serial.print("red value =    ");
 Serial.println(currentColorValueRed);
 
 Serial.print("green value =    ");
 Serial.println(currentColorValueGreen);
 Serial.print("blue value =    ");
 Serial.println(currentColorValueBlue);
 Serial.println("  ");
 Serial.println("  ");
/*
// Read the voltage on each analog pin then scale down to 0-255 and inverting the value for common anode
  currentColorValueRed = (255 - map( analogRead(redPotPin), 0, 1024, 0, 255 ) ); 
  currentColorValueBlue = (255 - map( analogRead(bluePotPin), 0, 1024, 0, 255 ) );
  currentColorValueGreen = (255 - map( analogRead(greenPotPin), 0, 1024, 0, 255 ) );
*/
// Write the color to each pin using PWM and the value gathered above
  analogWrite(redPin, currentColorValueRed);
  analogWrite(bluePin, currentColorValueBlue);
  analogWrite(greenPin, currentColorValueGreen);
}There is one common commutator at each axis, and one separate commutator for each motor + LEDs. This cascades through the axes and branching off for the motors, and finally to the LEDs.I'm having a hard time swallowing this. I want to make one myself.
so your path of current is:
Supply>Motor Y > commutator 1>Motor X>Commutator 2> Motor Z>Commutatuor 3> LEDs?
some on there bulied a 360 deguee laser spirograph, but my iphone is crap st taking video the laser was hit and miss,


 
	