Post Reply 
 
Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Only You, or ESP8266 Forever! - KomX - 05-07-2016, 05:50 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-09-2016, 08:30 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-09-2016, 03:54 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-11-2016, 04:34 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-12-2016, 04:35 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-14-2016, 08:00 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 09:58 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 04:46 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 07:10 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 08:38 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 09:49 PM
RE: Only You, or ESP8266 Forever! - JohnQ - 05-16-2016, 10:14 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-16-2016, 05:25 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-16-2016, 09:33 PM
RE: Only You, or ESP8266 Forever! - KomX - 08-19-2016, 01:32 PM
RE: Only You, or ESP8266 Forever! - jimmy - 08-19-2016, 05:28 PM
RE: Only You, or ESP8266 Forever! - KomX - 08-19-2016, 10:20 PM
RE: Only You, or ESP8266 Forever! - jimmy - 08-19-2016, 10:29 PM
RE: Only You, or ESP8266 Forever! - KomX - 08-20-2016, 06:32 AM
RE: Only You, or ESP8266 Forever! - jimmy - 08-29-2016, 05:12 PM
RE: Only You, or ESP8266 Forever! - KomX - 09-09-2016, 09:05 AM
RE: Only You, or ESP8266 Forever! - rolfz - 12-06-2016, 04:42 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-13-2016, 12:11 PM
RE: Only You, or ESP8266 Forever! - rolfz - 12-15-2016, 12:21 PM
RE: Only You, or ESP8266 Forever! - rolfz - 12-24-2016, 08:49 PM
RE: Only You, or ESP8266 Forever! - rolfz - 12-25-2016, 05:50 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-26-2016, 10:27 AM
RE: Only You, or ESP8266 Forever! - KomX - 12-26-2016, 01:54 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-26-2016, 06:40 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-29-2016, 07:14 AM
RE: Only You, or ESP8266 Forever! - KomX - 12-30-2016, 04:42 AM
RE: Only You, or ESP8266 Forever! - KomX - 01-26-2017, 08:44 AM
RE: Only You, or ESP8266 Forever! - KomX - 01-30-2017, 07:14 AM
RE: Only You, or ESP8266 Forever! - thebestvip84 - 02-17-2017 01:53 PM
RE: Only You, or ESP8266 Forever! - KomX - 02-20-2017, 07:38 AM
RE: Only You, or ESP8266 Forever! - sirius - 04-13-2018, 11:19 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)