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

Radds + arduino Due tmc2208 uart wiring #597

Closed
weed2all opened this issue Sep 26, 2018 · 12 comments
Closed

Radds + arduino Due tmc2208 uart wiring #597

weed2all opened this issue Sep 26, 2018 · 12 comments
Labels

Comments

@weed2all
Copy link

Does anyone knows how to put my tmc2208 into uart mode using arduino due and radds...any wiring diagram will be very good... I've searched to Google but can't find nothing

@iosonopersia
Copy link
Collaborator

@weed2all did you find elsewhere the information you needed? 👍

@weed2all
Copy link
Author

weed2all commented Dec 5, 2018

Nope...i dont boughter anymore with this...i see no more work on arduino due + radds(aka dead end)so i decided to close it!

@MagoKimbra
Copy link
Member

It's very simple..
https://components101.com/sites/default/files/component_pin/Arduino-Due-Pinout.png
This pinout arduino due the uart is pin 14-15, 16-17, 18-19
In radds this pin used for:
#define SD_DETECT_PIN 14
#define ORIG_Z_ENABLE_PIN 15
#define ORIG_Y_STEP_PIN 17
#define ORIG_Y_DIR_PIN 16
Only pins 18 and 19 are missing, but with just one uart you do not do anything, you could drive only one driver. Perhaps the choice of those drivers was not the best .. Much better the TMC2130.

@weed2all
Copy link
Author

weed2all commented Dec 6, 2018

Hi MagoKimbra...those are hardware uart...i want to use a software uart if possible given the time that a software serial library for arduino due is available...i thought that it was easy to implement to mk firmware to use with...and the reassign the available pins on my radds as a uart for at least 3 drivers...the tmc library maker said that i could try to implement in tmc library and then to do a pull request...the bad thing is that i dont know how to program it...if anyone have the time and will to make it work it will be freakin' awsome...but in almost 3 months didn't seen any activity on this and that was the reason that i closed the issue...
P.S.
I love marlin, and mk4duo but with the money i have spent on radds, tmc2208,and arduino due...it was wisely to buy the duet WiFi board...whitch I will do soon...

@MagoKimbra
Copy link
Member

MagoKimbra commented Dec 6, 2018

As I have already explained, it is not MK4duo who must use the serial software library, but the TMC library.
If you open the TMC library you will find this:
#define SW_CAPABLE_PLATFORM defined (__ AVR__) || defined (TARGET_LPC1768)
And if SW_CAPABLE_PLATFORM is defined, then you can use the TMC2208 with serial software.

#if SW_CAPABLE_PLATFORM
  TMC2208Stepper (uint16_t SW_RX_pin, uint16_t SW_TX_pin, float RS, bool has_rx = true);
#endif

This means that for now you can not use the TMC2208 with SAM.
Also because the software library uses the timers to be able to manage it and the timers are used for the steppers and other things and there are no available to manage the serial software.
Now if you want to take the Duet, you can not say no.
I can not do anything else.

@MagoKimbra
Copy link
Member

MagoKimbra commented Dec 6, 2018

Writing for the TMC library is not my role, I break the firmware, it takes someone to do this. We do not do anything for Marlin.
The duet is a unique card that was made for the firmware and the firmware was written for the card. This makes everything easier and more efficient.
I repeat that you made the mistake you made by choosing that card and TMC2208 drivers. Many use the Ruramps 1.3 on arduino DUE with the TMC2130 drivers and it works very well. The SPI port is unique and needs only one pin (any) to make the Chip Select.

@weed2all
Copy link
Author

weed2all commented Dec 7, 2018

Yes...i now realize that was made a mistake on buying tmc2208 and radds...i might go and buy the tmc2130 and use with radds...thank you!

@Weruminger
Copy link

Weruminger commented Jan 6, 2019

I saw a realization multiplexing one UART (given on RADDS AUX1 ) via a separate Multiplexer HW with 4 C-MOS switches. But The Firmare to haandle this is missing. It should be close to the realization like it is done for the TMC 2130. i guess.

@weed2all weed2all reopened this Jan 10, 2019
@weed2all
Copy link
Author

Any news?

@Weruminger
Copy link

I am on doing to program and Test UART multiplexing . It Sems to work (Test UART switching only) but i can not expect the effort to realize a funktional draft . I am also busy in Business.

@Weruminger
Copy link

Btw you Need additional Hardware. I use a Quad Switch CD4066.

@weed2all
Copy link
Author

Tell me more how do you implement this...i can go buy a pack of CD4066 from aliexpress or maybe find it locally...how many tmc2208 in uart you use?this option is available to use more than 4 uart?and in software what need to be done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants