Essai de découpe de prisme à la découpeuse laser.
Banc ad hoc en OpenSCAD :
$fn=10;
difference() { union () { cube([15,40,3]);
translate([0,0,3]) cube([3,40,15]);
translate([12,0,3]) cube([3,40,15]);
} ;
translate([1 ,8,5]) cube([13,3,15]);
}
translate([0,0,3])
difference () { cube([15,3,15]); rotate ([90,0,0]) translate([7.5,10,-5]) cylinder(h=6, d=5);
}
Programme Arduino LED RGB :
/*
RGB
*/
int RED = 6;
int GREEN = 5;
int BLUE = 3;
void setup() {
pinMode(RED, OUTPUT);
pinMode(GREEN, OUTPUT);
pinMode(BLUE, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(RED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(RED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(GREEN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(GREEN, LOW); // turn the LED off by making the voltage LOW
delay(1000);
digitalWrite(BLUE, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(BLUE, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}