1

Topic: SD3 logic board DEAD !!

I think I just fried my SD3 board!

I had just finished printing a fan adapter for my Sanguinololu PCB, and when installing it, I inadvertently plugged the fan into the wrong pins (see green outline below).

http://www.soliforum.com/misc.php?action=pun_attachment&item=4466

Now when I plug the USB cable, the USB device is recognized by Windows as COM3, but when I start Repetier click connect, it sits there, the status bar shows: Connected  -  5 commands waiting, and it never boots.

Any ideas?

Post's attachments

fan location 1.jpg
fan location 1.jpg 134.02 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

2

Re: SD3 logic board DEAD !!

ouch... that would have coupled 12v to 5v buss but not a full short coupling... however probably enough to hurt something.

3

Re: SD3 logic board DEAD !!

have you done a reset on it?

4

Re: SD3 logic board DEAD !!

ronsii wrote:

have you done a reset on it?

Yeah, no help.

Another thing I noticed is that when I turn on the main power, the stepper motors lock up.  Without power on, I can move the carriage by hand, but with the power on, they're locked up solid.  They also get warm.

I wonder what would happen if I try to reflash the firmware? or if I can even do it...

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

5 (edited by adrian 2014-01-26 07:23:31)

Re: SD3 logic board DEAD !!

Highest potential wins... so... its dead jim. No short neccesary.. you just turned the 5V bus into a 12V bus.. AVRs are hardy, but not that hardy. More importantly on a Sang - FTDI chips are really not that hardy at all sad (the one on the underside of the sang) I suspect this will have cooked some bonding wires internally as well.. most likely given even a cooked AVR will still connect via USB as the FTDI handles all USB and only talks to the AVR via serial after the USB connection is made .

And then theres the whole current side of things.........

Look for (often) a small pin hole on the AVR. It might be there, but not necessarily and ditto the FTDI (the pinhole is from the internal diode going pop...)

You can pull out the AVR and breadboard it to test it - all you need is 2 small capacitors (22pf normally) and a 16mhz crystal or resonator. Even without the crystal, it'll start up, but its PWM wont be worth squat as the timing will well and truly be out the window.. but it should still boot just slowly. You can use any USB to serial type adapter plugged straight in to the AVR's TX/RX pins, which are also accessible on the Sanguinololu near the USB port. That again will let you know if its just the FTDI chip, or the entire AVR.

You can try reflashing - but if USB comms is AWOL, it wont come back till the FTDI is bypassed (you can keep using any old USB->Serial adapter via the TX/RX pins to the AVR).

Quick fix if the AVR is intact; USB to Serial adapter and just reset the comports on the PC as required for the new USB->Serial.
If the AVR is dead to, you can buy a new one for ~$5 delivered, and replace that reflash it and use USB->Serial adapter
You can replace the FTDI232, but its a PITA to solder if you aren't comfortable with SMD work...
After that its a new board.

After all that is sorted, then its onto the Drivers. The drivers take 5V, and chances are they will all be toast to. The fact all motors are on solid means that they are simply 'enabled' and spitting out holding torque, which is default state - basically I'm just saying you can't diagnose them just yet as a dead AVR wont pull 'enable' to low, so wont disable the motors, so they wont move with power. Once the AVR is sorted, then you can try and see if any Drivers survived.

Long story short - if you are comfortable with electronics, you can probably salvage what you have and maybe have to replace the drivers. If you aren't comfortable with electronics - might be far easier at this stage to chalk it up as lesson learned, buy a Rumba (or RAMPS, but Rumba is far superior and has more MOSFETs) and have all the fan outputs you could want. I have a spare sang w/ drivers I'd offer you for $20+shipping, but it would take 2weeks to get to you and cost $20 in shipping sad

6

Re: SD3 logic board DEAD !!

Looks like I lucked out big, BIG time!

Since it looked like the FTDI was still functioning, I used Xloader to load the last build I had done for my board, and low and behold it worked.  I started Repetier, and while I was holding my breath I clicked Connect...  IT BOOTED !!!!

I haven't printed anything yet, but I turned everything on, and moved the carriage back and forth with the manual controls.  Everything looks fine, the hot end heat up, the extruder extrudes, the bed heats up. 

Wow... how lucky was that.  The only thing that I can think that happened, was that I glitched or corrupted the firmware.

In the meantime, I ordered a replacement Sanguinlolu on fleaBay for $55 complete with an ATMega 1284p and 4 Palolu drivers (for backup).

On another note, I have a Printrboard Rev. D without Firmware (only a bootloader).  I tried to compile an image for it, but when I select board 81 (Printrboard) in the configuration.h, it generates errors while compiling.  The errors seem to be related to the SD card reader.

Does anyone have any instruction on how I can compile a Printrboard compatible image?

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

7 (edited by adrian 2014-01-26 07:45:32)

Re: SD3 logic board DEAD !!

Congrats... the HV would indeed have zapped the contents... check all the pins to make sure. Surprised the FTDI survived since it doesn't normally like much more than its spec voltage... so cool.

same source code for the printrboard, just change the board type in arduino after loading the teensy board profiles and edit the configuration.h to reflect the board type (81? meh.. can't remember.. its in the file...)

You then have to copy the .hex file with hidbootloader (not xloader)

8

Re: SD3 logic board DEAD !!

adrian wrote:

Congrats... the HV would indeed have zapped the contents... check all the pins to make sure. Surprised the FTDI survived since it doesn't normally like much more than its spec voltage... so cool.

same source code for the printrboard, just change the board type in arduino after loading the teensy board profiles and edit the configuration.h to reflect the board type (81? meh.. can't remember.. its in the file...)

You then have to copy the .hex file with hidbootloader (not xloader)

Where can I find the teensy board profiles?  I have no Teensy board option on my version of Arduino (1.0.5).  also what is HIDloader, and where can I find it.

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

9

Re: SD3 logic board DEAD !!

Out on road, so brief. Both are detailed on firmware update page on wiki.  Profiles for teensy++ from pjrc.com and hidbootloader from lincomatic. You can skip all the firmware download stuff.. just profiles and hidbootloader app is all you need..

10 (edited by Hazer 2014-01-26 12:16:52)

Re: SD3 logic board DEAD !!

You can use the reprap version of arduino with profiles built-in. Is on the wiki here http://wiki.solidoodle.com/update-firmware with the HIDbootloader from lincomatic.

Once you get there though, you should turn SDcard support off. You will have problems otherwise.

Chuck Bittner is a quadriplegic gamer who is petitioning the major console developers to include internal button remapping in all console games. You can help.
Sign Chuck Bittners petition

11 (edited by adrian 2014-01-26 13:17:24)

Re: SD3 logic board DEAD !!

Hazer wrote:

You can use the reprap version of arduino with profiles built-in. Is on the wiki here http://wiki.solidoodle.com/update-firmware with the HIDbootloader from lincomatic.

If you want to keep using an Arduino IDE from 2010, and an avrdude from 2007... sure. wink
Otherwise, there is no reason to not download 1.05 or 1.5, and simply install the teensy profiles from pjrc (its a one-file install....)

The desperate clinging to 022 arduino IDE's is going to bite the entire 3d print community in the ass in a big way one day....  Just sayin'.... It's like suggesting to someone that they should install Windows XP on a brand new computer smile  (given Arduino 022 is like 8 versions old.... Windows 95/Windows 3.11 is probably a closer comparison - either way, thats a LOT of bugfixes in the compiled code and all (which is what changes with arduino IDE/avrdude - its not just about what changes in the IDE ... )

(The only place 022 was neccesary was a short lived bug in LCD/SD libraries related specifically to older Sangs.. beyond that, there is no reason except paranoia within certain parts of the extended community (and reluctance due to the now well solved Arduino >= 1.0 library changes - Back in 2011! - now all well dealt with) that prevents everyone using 1.0+....)

<endeth personal rant about the pointless milking of old versions of arduino IDE's.... sorry, but this one really bugs me...>

12

Re: SD3 logic board DEAD !!

adrian wrote:

<endeth personal rant about the pointless milking of old versions of arduino IDE's.... sorry, but this one really bugs me...>

Yea, I'm using the 1.0.5 version for all my fiddling with the force sensitive resistor bed leveling with no problems (and looking forward to 1.5.5 being released where I will supposedly be able to compile with a command line option and never have to look at the annoying GUI again :-).

13

Re: SD3 logic board DEAD !!

did you hold shift when you clicked upload in arduino.o22? i had problems untill i did that  something about compiling for verbose output?  the printrboard was dificult for me to navigate at first, im glad i ditched it n' got a new board

14

Re: SD3 logic board DEAD !!

adrian wrote:

Out on road, so brief. Both are detailed on firmware update page on wiki.  Profiles for teensy++ from pjrc.com and hidbootloader from lincomatic. You can skip all the firmware download stuff.. just profiles and hidbootloader app is all you need..

I looked at Pjrc.com , where is the teensy++ profile? I have the hidbootloader app already.

SD3, E3D hotend,linear bearing on x/y axis',pillow block bearing on y conneting rod, ball bearngs on front y axis, fan on y stepper motor.

15

Re: SD3 logic board DEAD !!

I went looking for that as well, and I think I found everything.

I went here:
http://www.pjrc.com/teensy/teensyduino.html

Here you can download the Teensyduino.exe add-on.  When you run this, it will as to install itself into the Arduino folder.  Once that's done, run the Arduino app, then go to Tools/Board and select Teensy++.  They have 2 versions, and I'm not sure which one I should use, 1.0 or 2.0.

I selected the 2.0 in my case, and the opened up the Soludoodle Marlin example and started modifying the configuration.h.  Again, I need some input from the guys that are familiar with this.  Here is what I mofiofied so far.

#define MOTHERBOARD 81 //{SD Patch}

Under Additional Features I enabled

/#define SDSUPPORT // Enable SD Card Support in Hardware Console

I compiled the sketch, and at the end of the compilation, it automatically started the Teensy loader, which said the size of the sketch was larger than the maximum.  BUt if you look at the bottom of the compilation log, it says:
Binary sketch size: 78,434 bytes (of a 130,048 byte maximum)

So I don't think this is a problem.  This is perhaps why Adrian said not to bother with the Teensy uploader but to use Bootoader HID instead.

At this stage, I'd like to get more input from Adrian (or anyone else who know about this stuff), before I flash the sketch into my Printrboard.  I still have a bunch of questions:

How do I enable the extruder fan control?  I know the Printrboard is capable (it work on my Printrbot Simple).
Did I use the correct version of the Teensy board?
For enabling the SD carad, did I enable the correct line?
If I wanted to enable an LCD, which one do I enable? can I enable both  ULTRA_LCD and DOGLCD?
Is there anything else I have to enable (or disable)?

Once I have to HEX file, how do I use Bootloader HID?  It appears I have to install the bootloader first, then flash the firmware hex file.  But my board already has a built-in bootloader.  I'd like some more instructions.

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

16

Re: SD3 logic board DEAD !!

pirvan wrote:

At this stage, I'd like to get more input from Adrian (or anyone else who know about this stuff), before I flash the sketch into my Printrboard.  I still have a bunch of questions:

How do I enable the extruder fan control?  I know the Printrboard is capable (it work on my Printrbot Simple).
Did I use the correct version of the Teensy board?
For enabling the SD carad, did I enable the correct line?
If I wanted to enable an LCD, which one do I enable? can I enable both  ULTRA_LCD and DOGLCD?
Is there anything else I have to enable (or disable)?

Once I have to HEX file, how do I use Bootloader HID?  It appears I have to install the bootloader first, then flash the firmware hex file.  But my board already has a built-in bootloader.  I'd like some more instructions.

Still out sorry - but heres brief response. Will read/reply in full later today...

PWM Fan header is 'enabled' by virtue of using the Board Type 81. If you want to be really sure, check the pins.h file and that in the section that has " == 81" (search for it) see what it says under FAN pin..

Teensy 2.0++ is what you want. All a printrboard is is a "Teensylu" rejigged slightly.. ( http://reprap.org/wiki/Teensylu )
The full printrboard details are at http://reprap.org/wiki/Printrboard#Load … Windows.29 .
On Solidoodle supplied printrboards, the SD is whacked. On 3rd party boards its doable, but a bit of a chore. Set this aside for the moment and worry about it once everythings stable.
LCD - in the latest firmwares you just select the correct LCD type once - it takes care of loading the relevant sub-functions. Due to pinout issues on the printrboard - most LCD's in use are I2C ones like the Viki or Panucatt ones. You dont see 'normal' data-line based LCD's on printrboards...

As for everything else, thats it. The only thing you *need* to change is really the board type - everything else is "like-for-like" regardless of what motherboard you are running.

Re the HIDBootloader - its confusing because theres 2 elements to it I guess.. There is the HIDBootloader Hex file, which yes, is already running on your Printrboard (maybe, or it could be the CDC or DFU bootloaders - it depends on where you got it and what they used...).

But then there is the HIDBootloader *PC App* - which is designed to talk to the HIDBootloader *Firmware*. To load firmware onto the AT90XXXX chips, you dont use an STK500 programmer (normal arduino) but instead they operate using their internal USB drivers and you use a "Device Firmware Update" system.. basically it 'disk copies' the firmware via USB and loads it that way.. This is why the PJRC Teensy stuff adds that 'teensy uploader' app to Arduino IDE (But Paul *doesnt* use HIDBootloader - he uses his own custom bootloader, hence, it wont work unless you are running his custom bootfirmware too; which we aren't. This is why we need to use a separate extenal app ourselves, HIDBootloader...  Depending on what loader you use (You can also change them - refer the printrboard wiki page/lincomatics hidbootloader blog post) you then load the compiled .hex firmware using their appropriate command line program.

For Printrboards shipped by Solidoodle - HIDBootloader's PC App is the most appropriate way to load it.

17

Re: SD3 logic board DEAD !!

Ok, the Printrboard I have is a clone from Geeeteck.com, and it's rev. D.  I'm not 100% sure, but I think the bootloader is a CDC.  How can I find out for sure?

http://www.soliforum.com/misc.php?action=pun_attachment&amp;item=4472

Based on this information, do I need to make any other changes?

PS.  Check out this board.  It doesn't have any mounting holes

Post's attachments

printrboard.jpg
printrboard.jpg 96.1 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

18 (edited by adrian 2014-01-27 03:44:25)

Re: SD3 logic board DEAD !!

pirvan wrote:

Ok, the Printrboard I have is a clone from Geeeteck.com, and it's rev. D.  I'm not 100% sure, but I think the bootloader is a CDC.  How can I find out for sure?

Just try the 3 upload methods.. So if you think it might be cdc, try the BootloaderCDC.zip (for the .inf file for windows if it complains) with the associated avrdude instructions and give it a go (avrdude will be inside your arduino folder, and you *need* >1.0 for the correct avrdude.exe version that supports CDC.... )

http://blog.lincomatic.com/?p=548
All info there, including how to change them between the various loaders and their pros/cons is listed.

You can use another arduino (or sang or RAMPS etc), as an ICSP programmer to change the bootloader - just use the MegaISP sketch and follow the wiki instructions over at arduino.cc (only relevant if you end up wanting to change the bootloader installed).


Based on this information, do I need to make any other changes?

PS.  Check out this board.  It doesn't have any mounting holes

Nope, not that I can think of at present. And yeah, problem with open-source boards is that not everyone makes them equally wink If you really want to use the printrboard (it really is more pain than any gain... they are not an upgrade in any way shape or form from a Sanguinololu besides the extra PWM header, which can be put onto a sanguinolu with far less effort via a $10 MOSFET board...) then guess you'll have to fashion some side-clip retainers off of a base board that bolts to the frame.

19

Re: SD3 logic board DEAD !!

pirvan wrote:

Ok, the Printrboard I have is a clone from Geeeteck.com, and it's rev. D.  I'm not 100% sure, but I think the bootloader is a CDC.  How can I find out for sure?

http://www.soliforum.com/misc.php?action=pun_attachment&amp;item=4472

Based on this information, do I need to make any other changes?

PS.  Check out this board.  It doesn't have any mounting holes

Quick way to check CDC bootloader:

Follow this: http://learn.adafruit.com/usbtinyisp/avrdude

But once avrdude is installed (if not already) use this command in CMD window:

avrdude -c avr109 -P COM# -p at90usb1286 -U flash:r:test.hex:i

Before typing that command, you will have to short the boot pins, press the reset button, and find out which COM port the CDC driver is attached to and replace the COM# with that.

Also, that GEEEtech board will NEED a jumper underneath for the MOSFET power. The trace they used is woefully undersized:

http://imageshack.com/a/img547/4032/ih3c.jpg

You will also have to reverse all of your motor connector pins as the header polarizors are backward compared to the SD ones. Oh, and you will have to run your own 12V lines for the fan and LEDs.

The good news is that the clone works with the LCD and on-board SD card reader. You will have to move your Y-endstop to the E-endstop and redefine your pin in the configuration.

Chuck Bittner is a quadriplegic gamer who is petitioning the major console developers to include internal button remapping in all console games. You can help.
Sign Chuck Bittners petition

20

Re: SD3 logic board DEAD !!

Well, I spent almost 2 hours trying to no avail to upload something... anything to the Printrboard.

Whenever I try to upload the bootloader, I get an error:

Could not find USB device 0x1781/0xc9f

I assume this error is because it's looking for a programmer, and I don't have one.  So this means I have to try to install the firmware by trial and error since I don't know what bootloader I actually have.

I first tried the CDC version, I got this:
"avrdude: butterfly_recv(): programmer is not responding"

When I try the HID Bootloader, it runs, then says "Waiting for Teensy Device... (hint: press reset button)". Pressing the reset button, doesn't do anything (doesn't start the upload)

I also tried the FLip program, and when I click the USB connection, I get a AtLibUsbDfu.dll not found error, even though the DLL file is in the same directory as the Flip app.

So I'm stuck.  Any ideas?

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

21

Re: SD3 logic board DEAD !!

Did you install the .inf file for the CDC loader, and attach the printrboard in bootloader mode (with jumper installed) and then checked in device manager all the drivers are installed ?

22

Re: SD3 logic board DEAD !!

Hazer wrote:

Quick way to check CDC bootloader:
avrdude -c avr109 -P COM# -p at90usb1286 -U flash:r:test.hex:i

So it looks like I do have a CDC bootloader.  I wish I could copy the text output, but I can't seem to capture or redirect it.  But here is what I get when I run the command:

Found programmer: Id = "LUFACDC", type =S
        Software Version = 1.0; No hardware version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=256 bytes.

Programmer supports the following devices:
        Device Code: 0x44
.....
Since this command worked, I tried to flash the firmware again, and this time it started doing it, except it stopped at 92% and it didn't finish.  After about 10 minutes I hit the reset button, and got a:

avrdude: ser_send(): write error: sorry no info avail.

And the board is now bricked. sad . The board is no longer showing up in the device manager, even though I can hear it (Windows recognizes it) when I plug it in, the device manager "blinks" but there's no new device anywhere (USB, COM ports, HID devices, etc...).

Gotta love this...

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.

23

Re: SD3 logic board DEAD !!

OK. So there are two parts of the MCU memory: The standard part (where the printer firmware goes) and the bootloader part. When you run the bootloader, it will overwrite the standard memory area but not the bootloader area. So, you may have corrupted the firmware that was on the standard area, but the bootloader will still be there.

Remember, you have to have the jumper on the boot pins next to the MCU, then press the reset button. Your computer will recognize the CDC USB device (the bootloader) and assign it a COM port in your device manager.

Chuck Bittner is a quadriplegic gamer who is petitioning the major console developers to include internal button remapping in all console games. You can help.
Sign Chuck Bittners petition

24

Re: SD3 logic board DEAD !!

One of the reasons I like using my AVR ISP mkII to upload firmware, no bootloaders to deal with :-). You can get a usbtiny ISP pretty cheap, or even use an arduino board as an ISP by loading the right firmware on it. All of these will let you bypass bootloaders.

25

Re: SD3 logic board DEAD !!

Hazer wrote:

OK. So there are two parts of the MCU memory: The standard part (where the printer firmware goes) and the bootloader part. When you run the bootloader, it will overwrite the standard memory area but not the bootloader area. So, you may have corrupted the firmware that was on the standard area, but the bootloader will still be there.

Remember, you have to have the jumper on the boot pins next to the MCU, then press the reset button. Your computer will recognize the CDC USB device (the bootloader) and assign it a COM port in your device manager.

Naah, it's gone.  I plugged it in this morning, and it no longer even gets a "ba-bong" of recognition from Windows. With or without the jumper, hitting the reset, nothing.

Gone baby gone.

I might buy an ISP to see if I can revive it, but now I remember why I have such an aversion to flashing stuff.  I just can't believe that in this day and age we should still have such a hard time with this.

To print or, 3D print, that is the question...
SD3 printer w/too many mods,  Printrbot Simple Maker Ed.,  FormLabs Form 1+
AnyCubic Photon, Shining 3D EinScan-S & Atlas 3D scanners...
...and too much time on my hands.