-
Notifications
You must be signed in to change notification settings - Fork 32
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
Weird UART problem with ESP32 #60
Comments
I connected my driver like in this image: makerbase-mks/MKS-StepStick-Driver#6 (comment) The only different thing is that the I/O voltage is 3.3V and not 5V (because I am not using an Arduino but I am using an ESP32) and the Vm voltage is 24V and not 12V |
I think it's related to this problem: https://community.particle.io/t/p2-module-tmc2209-driver-tx-rx-pullup-issue-possibly-preventing-bidirectional-comms/64194 But I can't understand how to solve it (I am using an ESP32-S3-WROOM-1 and not the one in the link.. but the problem is similar, probably a pull up resistor?) |
That does seem like an electrical issue, although I am not sure what could be causing it. The silentstepstick does not have a pull up or pull down resister on the uart line does it? Maybe the uart line inside your microcontroller has a pull up? Maybe you can disable that in your firmware? |
Which driver board is that, one you made or one you purchased from somewhere? Can you try removing that pull down resister to see what happens? |
I bought it, it's an MKS TMC2209 V2.0. I could try removing the pull down resistor, it's weird, why is it there? |
Ok actually even some others boards (like this one seem to have that pull down resistor |
I have used the Trinamic silenstepstick many times without a problem, so you are probably running into sone other problem. Can you try another microcontroller or different pin settings in your microcontroller? |
A few days ago, my custom PCB arrived that is based on the above schematic. Paid about 7€ including shipping for the PCB and I am always able to get a reliable bidirectional communication. If you are interested, you can find it here https://github.com/Luro02/pcb-esp32-tmc2209 (uploading the The only problem is that you must buy a nanoESP32-C6 (other boards/pins will not fit). |
Hi! I have a TMC2209 silentstepstick driver connected to a custom PCB that I made.
I am using this library to communicate with my driver, this is the code (it's a slightly modified example present in this repo):
Now it always prints "Stepper driver is not communicating!"... The weird thing is that I attached my oscilloscope to the PDN_UART pin of the driver and this is what I see
As you can see the ESP32 sends the data to the driver, the driver replies but the 0 bits of the reply don't go all the way down to 0V but stay around 2.4V.. which is really weird, and probably my ESP32 doesn't recognize 2.4V as a low value (because it's too high voltage).
Do you have any idea what the problem could be?
The text was updated successfully, but these errors were encountered: