void loop() {
value = Serial.read();
motor.writeMicroseconds(value);
}
You are reading from the serial input buffer even if there is no data available so most of the values returned are -1. To see how to read a number from Serial, reliably, see example #4 of the serial input basics tutorial. To change a number that is received as text to a number that can be used with servo.write, use the atoi() function.
sth is maybe wrong or idk ... motor running after time ... 1 min or more and he stops after that ... and running again after seconds and stops again and not running anymore
Rekimo:
sth is maybe wrong or idk ... motor running after time ... 1 min or more and he stops after that ... and running again after seconds and stops again and not running anymore
How is everything powered? That sounds like a bad battery or one that needs charging.
And your arming sequence looks more like a way of putting the ESC into programming mode,which is not what you want. What sounds do you hear from the ESC/motor?
Can you try it out using the Knob example program to see what values it really does respond to?
slipstick:
How is everything powered? That sounds like a bad battery or one that needs charging.
And your arming sequence looks more like a way of putting the ESC into programming mode,which is not what you want. What sounds do you hear from the ESC/motor?
Can you try it out using the Knob example program to see what values it really does respond to?
Steve
You replied with information about the battery, Steve's first question. The next 2 questions appear to have been ignored.
What sounds do you hear from the ESC/Motor?
Can you try it out using the Knob example program to see what values it really does respond to?
It looks like you are using a servo tester to feed the signal to the ESC and getting the motor to run. Good!
It also looks like you are printing some value to the serial monitor.
I do not know what value you are printing. It does not appear to have any correlation to what you are doing with the servo tester. How is the arduino involved with this experiment using the servo tester?
It would be interesting to have the arduino read the value that the servo tester is sending. Look in to how to read an EC receiver. If you were to print that value to the serial monitor and then use the servo tester to successfully arm and run the motor, then you could use those same values to do so from the arduino.