Segue código simples para realizar as rotações:
[code]
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
int count = 0;
// the loop function runs over and over again forever
void loop() {
do{
// FRQ = ±47Hz DT = 4,7%
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(20); // wait for a second
count++;
}while (count <= 200);
count = 0;
do{
// FRQ = ±18HZ DT = 9%
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(5); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(50); // wait for a second
count++;
}while (count <= 100);
count = 0;
do{
// FRQ = ±16Hz DT = 83%d
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(50); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(10); // wait for a second
count++;
}while (count <= 80);
count = 0;
}
[/code]
Flw...