Close

USB!

A project log for Lerdge 3d Printer Mainboard Hacking

Breaking the encryption on the Lerdge series mainboards so I can try porting Marlin 2.0 to it.

jc-nelsonJ.C. Nelson 12/29/2018 at 06:352 Comments

After my last post, I went back and studied how code that actually can initialize the board correctly worked. With a little borrowed code from micropython sample, I was able to initialze the board successfully, and communicate outbound at much faster rates. Inbound data works in a test sketch, but not in Marlin yet. Now I can use USB instead of having to wire up to the serial1 via a FTDI clone. 

Now I have an ESP8266 hooked to Serial1 and output via USB, so in general, this is very good. 

Notes on the ESP module - For some reason, if I plug into USB, it cuts power to the ESP8266 module. These two do not share the same pins, so there's no logical reason I can find for this. Marlin supports two serial ports in 2.x, so it would be nice to enable both. Perhaps there's a cutoff circuit on the expansion module that can be disabled - I'm not sure yet.

I'm just happy to be able to send and receive data via USB.

Discussions

J.C. Nelson wrote 12/30/2018 at 00:04 point

The NRST pin does in fact reset the printer (I kind of like this - it means we can have a second fail-safe at some point). I'd guess the other board has a different default state, for reasons I do not understand. I'm not ready to even think of writing custom ESP8266 code but it would be feasible to have it watch the temperatures and enact failsafes that reset theprinter.

  Are you sure? yes | no

cmshelton2010 wrote 12/29/2018 at 09:47 point

Your correct, on the lerdge S, X and K when I plug the PC to the printer you see the WiFi module red led go out and no more WiFi connection.  Now another thing I found odd, the Latest Lerdge WiFi module ESP8266, if you Hot plug it in it reboots the lerdge printer board. but the dump I made from this WiFi module when installed on another china made ESP8266 it works the same except when Hot plugged in it did not reboot the Lerdge board.

  Are you sure? yes | no