Hello there,
Thanks for reply. i didn't got any mail notifications. but is was already activated. :-\
Actually i using two different hdd motors. (see attachment for more details and actual wiring)
I tested it at first with PM°DM motor and connected the three right pins with ESC.
Thats my sketch:
#include <Servo.h>
Servo myservo;
int potpin = 0;
int val;
void setup()
{
Serial.begin(9600);
myservo.attach(9);
int speed;
// Starting up spin
for(speed = 100; speed <= 500; speed += 100) {
setspeed(speed);
delay(1000);
}
}
void loop()
{
val = analogRead(potpin);
Serial.print(val);
Serial.print('\n');
setspeed(0);
delay(3000);
int speed;
//prevent stopping and leave disk spinning
for(speed = 100; speed <= 400; speed += 100) {
setspeed(speed);
delay(500);
}
//setspeed (100);
// delay(2000);
}
void setspeed(int throttle)
{
val = map(throttle, 1, 1023, 1, 180);
myservo.write(val);
}
I Want to control 9 hhd motors with one arduino so a ESC is required otherwise i need more pins, if i build an own esc?
Any ideas if it is possible with this motors?


