6XD + SD card reader
-
@droftarts
Sorry my bad as usualNow I have the display but I get M21 No card detected
-
@tecno You don't have access to the SD card socket on the PanelDue using the 4-wire cable. Only with the ribbon cable. But you're going to use the external SD card socket, right?
Ian
-
@droftarts
Sorry Ian but now I am lost.What I have is 6XD + 7I and cardreader as pictured earlier and connected as advised.
So do I need yet another ribboncable?
Cheers
Bengt -
@tecno Sorry, I thought you meant you wanted to use the built-in SD card reader on the PanelDue 7i. If you want to use that, you need to connect the PanelDue to the 6XD with the ribbon cable. You wouldn't be able to connect the other SD card reader.
If you do mean the other SD card reader, that should connect to the PanelDue header on the 6XD using the cable you made; it does not connect to the PanelDue 7i. The PanelDue 7i connects to the 6XD using the 4 wire cable, and the built-in SD card reader cannot be used.
Ian
-
Here pictures of the setup, SD Cardreader with short ribbon cable to 7I ant 4-wire to 6XD
Error message
Cheers
Bengt -
@tecno You can't plug the external SD card reader into the PanelDue. It needs to be plugged into the 6XD.
Edit: longer explanation: The SD card reader, on the PanelDue or an external one, communicates with Duet via the SPI bus. That's the MOSI and MISO wires you hooked up. For sending and receiving commands and information, the PanelDue has a serial connection to the Duet which is much slower than SPI, and SPI cannot communicate over this serial connection. For the built-in PanelDue SD card reader, the pins on the SD card socket are passed through to the ribbon cable connector which then connects to the Duet; the PanelDue just provides power.
Ian
-
@droftarts
OK total missunderstanding.So is this the place to the ribboncable?
Only 4-wires 6XD to 7i ?
-
@tecno said in 6XD + SD card reader:
So is this the place to the ribboncable?
Yes, that's correct. That's why I showed it in one of my posts earlier in the thread! I did wonder why you made the cable so short!
Only 4-wires 6XD to 7i ?
Yes. The external SD card socket will work without the PanelDue, if you want.
Ian
-
-
@tecno Though your cable is short, you should still be able to connect to the 6XD to test if it works. Let me know if it does, or doesn't!
Ian
-
Will do asap I find ribboncable in my hidden places
-
@droftarts
So now new ribboncable but no card can be found.Cheers
Bengt -
@tecno please post a picture of the wiring.
Ian
-
-
@tecno if you haven't included the Card Detect pin of the SD card socket in your ribbon cable then you also need to fit the card detect override jumper on the Duet.
-
@tecno The wiring looks to be correct, assuming that the orientation of the ribbon cable at the other end, where it connects to the Duet, is the same as your first cable. Maybe post a picture of that end? Otherwise, yes, it's probably what @dc42 suggests, ie put a jumper on the 'PanelDue/External SD card detect over ride' pins on the Duet, just below the PanelDue connector.
You probably could have connected the 7th ribbon cable wire ('PD_SD_CD') to the second pin down on the back of the socket, to have the card detect signal:
Ian
-
-
@tecno Great! I'll add a section for external card readers to the PanelDue page on the wiki, now you've proved it works. MicroSD card readers are wired slightly differently, as the pinout is different.
Ian
-
Good we got it sorted out. Now I have installed a new router that is up and running so soon I will get this macine on LAN as well.
Will need to add 2 external USB ports, where can I plugin the second USB on either 6XD or 7i if possible.
OpenPnP will be run over USB to controll the macine and I would like to have anoter USB port for memory stick.Cheers
Bengt -
@tecno I don't quite understand what you want to do. You can't plug in a USB memory stick into a Duet. The USB on a Duet board can only be used for serial communication.
Ian