Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCP23017 + Stepper Driver #11

Open
nicolasdb opened this issue Oct 10, 2022 · 6 comments
Open

MCP23017 + Stepper Driver #11

nicolasdb opened this issue Oct 10, 2022 · 6 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed ⚔️ WIP ⚔️ work in progress

Comments

@nicolasdb
Copy link
Owner

nicolasdb commented Oct 10, 2022

ULN2003 Stepper Motor Driver need 4 pins, this could rapidely be limiting on the M5stampC3
image

How to use the MCP23017 to connect the driver?
ESP8266 running 12 stepper motors
https://www.youtube.com/watch?v=Hg9MEVxCPA8

libs to explore:

  1. http://www.airspayce.com/mikem/arduino/AccelStepper/
  2. https://github.com/johannilsson/MCP3017AccelStepper/
  3. https://github.com/harelabb/SerialStepper

image

https://lastminuteengineers.com/a4988-stepper-motor-driver-arduino-tutorial/

@nicolasdb nicolasdb self-assigned this Oct 10, 2022
@nicolasdb nicolasdb added bug Something isn't working help wanted Extra attention is needed ⚔️ WIP ⚔️ work in progress labels Oct 10, 2022
@nicolasdb
Copy link
Owner Author

I guess there is a problem between librairies

Compiling .pio/build/ESP32-C3U/src/main.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:30:3: error: 'mcp' was not declared in this scope
   mcp.begin_I2C();
   ^~~
src/main.cpp:30:3: note: suggested alternative: 'mcp1'
   mcp.begin_I2C();
   ^~~
   mcp1
src/main.cpp:34:28: error: no matching function for call to 'MCP3017AccelStepper::setMcp(Adafruit_MCP23X17&)'
     steppers[i].setMcp(mcp1);

@nicolasdb
Copy link
Owner Author

@nicolasdb
Copy link
Owner Author

bakc to basics, because I fail to understand how to use libs to do a simple thing like
"While push button 1, run stepper ++ else stop.
While push button 2, run stepper - - else stop."

My setup is a simple quick&dirty linear motion.
image

  1. the stepper is hot. I should check the current limit.
    image

@nicolasdb
Copy link
Owner Author

image

@nicolasdb
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed ⚔️ WIP ⚔️ work in progress
Projects
None yet
Development

No branches or pull requests

1 participant