Only You, or ESP8266 Forever!
|
02-17-2017, 01:53 PM
(This post was last modified: 02-17-2017 01:57 PM by thebestvip84.)
Post: #65
|
|||
|
|||
RE: Only You, or ESP8266 Forever!
hi friend, can you help me, i have:
1. wemos d1 r2 2. CNC shield 3. A4988 driver 4. nema17 5. MPU 6050 6. brobot frame 3D print Here is how I wired mine after tracking each wemos pin trace to the CNC shield. This is for a Wemos D1 R2. Note that R1 has different pinout. WEMOS D1 R2 PIN --> CNC SHIELD FUNCTION --> BROBOT PIN --------------------------------------------------- D0 --> X-STP --> MOTOR1-STEP D1 --> Goes to SCL and Y-STP --> SCL D2 --> Goes to SDA and Z-STP --> SDA D3 --> X-DIR (Jumper with A-DIR to make common DIR pin) --> MOTORS-DIR D4 --> Y-DIR (use wire to connect with A-STP) --> MOTOR2-STEP D5 --> Goes to Z-Dir and also spindle direction --> NOT USED D6 --> Goes to MOTOR ENABLE and spindle enable --> MOTOR ENABLE D7 --> Goes to X-Lim and Z-Lim --> SERVO1 D8 --> Goes to Y-Lim --> SERVO2 I am using KomX's firmware The only modification (besides the ones suggested on the thread) are the eX_ESP_pins.h file as follows: #define MOTORS_ENABLE_PIN D6 #define MOTORS_DIR_PIN D3 #define MOTOR1_STEP_PIN D0 #define MOTOR2_STEP_PIN D4 #define SONAR_TRIG_PIN -1 #define SONAR_ECHO_PIN -1 #define SDA_PIN D2 #define SCL_PIN D1 #define SERVO1_PIN D7 #define SERVO2_PIN D8 #define BATTERY_PIN A0 Try every wiring but the motor even can not move Best regard! p/s i notice when set dir pin and step pin to d5 and d6 and do a test code, the motor can spin, but with other pins the motor can not move. I wonder if i have to use a logic converter? Then i cut the pin on the cnc that connect to D0 on wemos and use D5 as motor1 step pin, but nothing move. PLease help me solve the problem. Thank you a lot! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)