I am using a CNC Shield which works pretty well on an Arduino UNO.
I am now trying to port the code on an ESP8266 (Wemos D1 Mini Pro) to be abble to control my rotator via Wifi.
Here is the roator_pins declaration:
#define M1IN1 D6 ///< Motor 1 PWM pin
#define M1IN2 D2 ///< Motor 1 PWM pin
#define M2IN1 D5 ///< Motor 2 PWM pin
#define M2IN2 D1 ///< Motor 2 PWM pin
#define MOTOR_EN D7 ///< Digital output, to enable the motors
#define SW1 D3 ///< Digital input, to read the status of end-stop for motor 1
#define SW2 D4 ///< Digital input, to read the status of end-stop for motor 2
But I constantly get a wdt reset on the serial monitor:
wdt is watchdog, needs to be fed periodically so it doesn’t run out and reset the cpu.
if the code has a lot of sleep and blocking calls it can be good to increase the time it takes.
just feed it at least once in loop(), for 8266 I think it is ESP.wdtFeed();
I think we went different routes in that i installed the RPi3 with a NooelecSmart SDR outside with the Rotor and used the Wifi from the RPi3 to communicate with my Router and the Satnogs Network. I liked the idea of having very little loss between the Antenna and the SDR.
Thanks for quick response, that’s the shield and drivers that I am using, works great.
Silly me misread your first post, thought it said you had a shield for the ESP8266.
Sorry about that.