So in MQTT I make the name "blinds" and the topic inside of blinds command, state, and log. Correct?
char COMMAND_TOPIC = PROJECT_NAME "blinds" INSTANCE_NAME "/command"; char STATE_TOPIC = PROJECT_NAME "blinds" INSTANCE_NAME "/state"; char LOG_TOPIC = PROJECT_NAME "blinds" INSTANCE_NAME "/log";
writeMicroseconds()method instead. The servo library is written to compatible with the normal Arduino library, so you can use their docs for reference.
@geman220 Review the Arduino Servo Reference. you are setting the microseconds, not angle. These are the helpful values ...
#define MIN_PULSE_WIDTH 544 // the shortest pulse sent to a servo #define MAX_PULSE_WIDTH 2400 // the longest pulse sent to a servo #define DEFAULT_PULSE_WIDTH 1500 // default pulse width when servo is attached
When you "attach" the Servo, you can provide your own min and max like
Servo.attach(pin, 500, 2500); // use an extended range