Hello, I’m working on a school project using arduino. I’m usinga potentiometer to control a brushless motor and so far it works. Iwas just wondering how to create a dead zone so that the motordoesn’t starting spinning the moment I press on the throttle.
My teacher gave me a hint:
if (voltage=>1.5) {
send out signal;
}
else {
send out zero;
}
This is the arduino code that I have and it works:
#include <Servo.h> //accesses the Arduino ServoLibrary
Servo myservo; // creates servo object to control a servo
int val; // variable to read the value fromthe analog pin
void setup()
{
myservo.attach(9); // ensures output to servo on pin
PayPal Gateway not configured
PayPal Gateway not configured