makerbase-mks / MKS-SBASE

MKS SBASE is a powerful 32-bit 3D printer control board with LPC1768. Support Marlin2.0, Smoothieware. Support MKS LCD12864 and MKS TFT Touch Screens(SBASE V1.4 support MKS LCD12864A/MINI12864/LCD2004). The motherboard integrates 5 DRV8825 axis and it is use software set current, supports wired network for printing and supports firmware update by SD card…
https://www.aliexpress.com/item/32384368763.html?spm=2114.12010612.8148356.13.f6ef39440hYPmP
157 stars 112 forks source link

SPI 0 and 1 pins? #25

Closed cruwaller closed 4 years ago

cruwaller commented 7 years ago

How is the SPI0 and SPI1 connected? What pins should be used?

pixel3design-hub commented 7 years ago

For?

cruwaller commented 7 years ago

Really? TMC2660, max31865 and display....

pixel3design-hub commented 7 years ago

The TMC can be used with dir/step pins. The MAX31xxx can be connected on the J7 pins (here for thermocouples). Display... you got two 10 pins strips, one via serial AUX and another one via SPI...

Try to stay calm and chill. I'm not a SMOOTHIEWARE dev, nor a MKS one. If you want more infos, buy a Smoothieboard and ask 'em, just because MKS use their code to run the board and they almost never help here. Here we are, just peoples trying to help other peoples.

https://cdn.instructables.com/FQW/FLQV/IN63DG3D/FQWFLQVIN63DG3D.RECT2100.jpg

Cheers

cruwaller commented 7 years ago

Yeah, i am :) Just wondering the the SPI pins, cannot find SPI0 SCK pin (0.15). SPI1 overlaps with the LCD pins (reprap discount). This should be pretty easy question after all :) even for the closed hw :D

Smoothie is open source stuff and MKS should clearly define pins & capabilities at least :)

pixel3design-hub commented 7 years ago

Sure they should. But I'm using MKS for a long time and many devs complains for the lack of credits to smoothieware. As you can see, nothing changed. Chinese companies don't give a f..k of international laws. And it's a fact. I really hate closed source, but Gov's should start to enforce OpenSource protection. It would be easy to add some greets to Smoothie peoples. But as you can see...

Cheers

cruwaller commented 7 years ago

Agree! hope they release some info but i have my doubts :| I might need to find those by myself.

Thanks anyway!

lollandster commented 6 years ago

I had the same issue and since this is the first result on google I guess I should share my findings here. P0.14 isn't actually a pin on the LPC1769, it is obviously a typo in the sbase pinout diagram, that pin is the P0.15 SCK0 pin.

I have successfully connected a SSD1306 to the MKS sbase. (the smoothieware wiki doesn't mention it, but the panel.lcd value should be ssd1306_oled. I had to look in the source code to find it.)

cruwaller commented 6 years ago

hah, I found the answer finally! SPI is connected to EXP2 header pins and can be selected by J16:

arhi commented 6 years ago

@cruwaller where did you see the description of what J16 does (looking for it myself)

waran14 commented 6 years ago

the SD card slot on my RRD Full graphics panel is not able to read any files. Does this have anything to do with the SPI's mentioned here ?

The display works fine as expected. It shows 2 options: ext and sd. But nothing is shown inside ext. I have tried 3 different cards until now