Custom MCU-module for UP! Mini...

Post improvements made for UP, and share ideas.
sfinktah
Posts: 46
Joined: Sat Aug 17, 2013 10:51 am

Re: Custom MCU-module for UP! Mini...

Post by sfinktah » Fri Nov 22, 2013 7:26 pm

Flow my tears....

I use Gekko board, which is a world of hurt in itself. Because I cant' trust it to stick, I use a glu-stick ontop. I believe things are meant to be hard to remove, that's why they give you all those sharp tools :)

Sorry, the only way I know how to get input into a python program is via the command line arguments, and I'd have to look *that* up too.

I did however check out what was offered in USB land for Windows, and believe I have found enough things to make a GUI in c#... when and if I get around to it.

I'm not really a Python programmer, I just copy and pasted my way to where I wanted to go. If I knew the language better, I would have at least made decimal input variables :p

twocycler
Posts: 59
Joined: Tue Aug 21, 2012 5:09 am

Re: Custom MCU-module for UP! Mini...

Post by twocycler » Fri Nov 22, 2013 8:47 pm

I wrote commercial software in C and 68K assembly language for a machine called the Amiga a very long time ago. These days I just ponder the existence of the 3 gigabyte operating system and the obfuscation of the brilliance of modern processors by the molasses like OS' they are forced to run, so that the net output is similar to my Apple ][. Anyway, back on subject, thanks for taking the initiative to resolve what has been a debated topic.

sfinktah
Posts: 46
Joined: Sat Aug 17, 2013 10:51 am

Re: Custom MCU-module for UP! Mini...

Post by sfinktah » Mon Nov 25, 2013 5:19 pm

I used to hack together gradients in Apple //e 'DoubleHighRes' mode. They say there's only 15 colors there, but it looked like a rainbow to me.

Image

marto
Posts: 87
Joined: Wed Nov 14, 2012 2:01 pm

Re: Custom MCU-module for UP! Mini...

Post by marto » Sun Dec 01, 2013 12:10 am

Nice work here guys. I did some dumping of the UP Mini SD cards and although I only spent a day or two going over the dumps I am pretty sure that there wasn't any obvious places in the start where it set the temperature. This may or may not be correct.

My inclination is that it would store the PLA or ABS mode on the printer so when you change computers it can recall it. However the difference you documented between 1.15 and recent versions seems to support that it is set through there. Also remember when heating the printer will often overshoot the setpoint. So if you set 225C it will overshoot then come back down as it settles.

I would be interested in a script which lets me set the temp regardless. Sorry if I have missed anything only really skimmed the thread.

Steve

sfinktah
Posts: 46
Joined: Sat Aug 17, 2013 10:51 am

Re: Custom MCU-module for UP! Mini...

Post by sfinktah » Wed Dec 04, 2013 8:09 pm

I didn't realise the Mini had an SD card. Can you dump SD card output for this test STL for me?

Print in fast mode, 0.20mm Z-resolution, with no raft, and solid infill.

Code: Select all


The extension up3 is not allowed.
The extension stl is not allowed.
Geniuses. Attached as ZIP.

P.S. You did a really bad job of skimming this topic. :p

https://github.com/sfinktah/uptempo/
Attachments
MiniTest.UP3.zip
Simple Test
(471 Bytes) Downloaded 464 times
Last edited by sfinktah on Wed Dec 04, 2013 10:51 pm, edited 1 time in total.

twocycler
Posts: 59
Joined: Tue Aug 21, 2012 5:09 am

Re: Custom MCU-module for UP! Mini...

Post by twocycler » Wed Dec 04, 2013 10:01 pm

Ahh so your now accepting temp variable input in the form of a command line argument? The one time I tried to run your old script on a W8 machine I got an error returned from pyUSB. I have not had time to mess with it further. I want an executable windows gui version of this...and a pony. :lol:

Ironic, you cant upload a file with their own file type.

marto
Posts: 87
Joined: Wed Nov 14, 2012 2:01 pm

Re: Custom MCU-module for UP! Mini...

Post by marto » Thu Dec 05, 2013 1:07 am

They both have SD cards not just the mini. In fact they are exactly the same boards inside them.

I haven't got the time to dump anything atm but I might over christmas. I tried to get the PyUSB script to run on windows and its a bitch.

Also instead of making a GUI. If you can get a binary which will just run on windows why not just make 10 binaries with 3 deg steps and different names. I know its a stupid and convoluted but hell if it gives me temp access I don't really care.

I did look a bit into HID stuff and I found a few cross platform APIs but realistically this should just be a windows app as 95% of are using windows as the mac version lags so far behind.

Steve

marto
Posts: 87
Joined: Wed Nov 14, 2012 2:01 pm

Re: Custom MCU-module for UP! Mini...

Post by marto » Thu Dec 05, 2013 3:07 am

Another usb stream which would be useful to dump would be the print again command.

I have some knowledge about writing python scripts to control the UP software directly and this could be integrated to allow you to automate the process as its a bit of a paint to send. Wait for it to start. Kill Job. Run script then restart the process.

Steve

roller
Posts: 1622
Joined: Sat Oct 06, 2012 9:09 pm
Location: Brisbane, Australia

Re: Custom MCU-module for UP! Mini...

Post by roller » Thu Dec 05, 2013 12:35 pm

marto wrote:They both have SD cards not just the mini. In fact they are exactly the same boards inside them.

I haven't got the time to dump anything atm but I might over christmas. I tried to get the PyUSB script to run on windows and its a bitch.

Also instead of making a GUI. If you can get a binary which will just run on windows why not just make 10 binaries with 3 deg steps and different names. I know its a stupid and convoluted but hell if it gives me temp access I don't really care.

I did look a bit into HID stuff and I found a few cross platform APIs but realistically this should just be a windows app as 95% of are using windows as the mac version lags so far behind.

Steve
Actually the Mac version is pretty close to caught up now and there's actually quite a few Mac users.

sfinktah
Posts: 46
Joined: Sat Aug 17, 2013 10:51 am

Re: Custom MCU-module for UP! Mini...

Post by sfinktah » Fri Dec 13, 2013 1:31 am

[quote="marto]realistically this should just be a windows app[/quote]

I have a very good relationship with Windows. I use it when I'm paid to do so.
marto wrote:Another usb stream which would be useful to dump would be the print again command.
I believe it's " # 56 94 e7 03 00 00 - print last model?"

I also just grabbed the commands that move the head around when you're calibrating, although I haven't tested them yet. I'll push them to the git repo now.
marto wrote:I have some knowledge about writing python scripts to control the UP software directly and this could be integrated to allow you to automate the process as its a bit of a paint to send. Wait for it to start. Kill Job. Run script then restart the process.
If the job isn't so large that it has time to heat the extruder before it finishes sending it, you can just quit and set the temperature.
roller wrote:Actually the Mac version is pretty close to caught up now and there's actually quite a few Mac users.
Indeed it has. And you'll be happy to know that I have found the technique of using a higher temperature for the initial layers to be very useful.

roller
Posts: 1622
Joined: Sat Oct 06, 2012 9:09 pm
Location: Brisbane, Australia

Re: Custom MCU-module for UP! Mini...

Post by roller » Fri Dec 13, 2013 2:11 pm

Indeed it has. And you'll be happy to know that I have found the technique of using a higher temperature for the initial layers to be very useful.
Oh yes it would be - a fave feature of my reprap to improve base bonding.

sfinktah
Posts: 46
Joined: Sat Aug 17, 2013 10:51 am

Re: Custom MCU-module for UP! Mini...

Post by sfinktah » Sun Dec 15, 2013 3:43 am

I took a 10 minute poke at this USB driver for Windows thing... turns out we're very very lucky, in that the makers of the UP software use the generic WinUSB.sys driver, which is also used by libusb.

Image

It's not much, but that's the hard part. Now that it can be seen, it's just details.

Code: Select all


using System;
using System.Collections.Generic;
using System.Text;
using LibUsbDotNet;
using LibUsbDotNet.Info;
using LibUsbDotNet.Main;
using System.Collections.ObjectModel;




namespace LibUsbDotNetConsoleApplication1
{

internal class ShowInfo
{
public static UsbDevice MyUsbDevice;

public static void Main(string[] args)
{
// Dump all devices and descriptor information to console output.
UsbRegDeviceList allDevices = UsbDevice.AllDevices;
foreach (UsbRegistry usbRegistry in allDevices)
{
if (usbRegistry.Open(out MyUsbDevice))
{
Console.WriteLine(MyUsbDevice.Info.ToString());
for (int iConfig = 0; iConfig < MyUsbDevice.Configs.Count; iConfig++)
{
UsbConfigInfo configInfo = MyUsbDevice.Configs[iConfig];
Console.WriteLine(configInfo.ToString());

ReadOnlyCollection<UsbInterfaceInfo> interfaceList = configInfo.InterfaceInfoList;
for (int iInterface = 0; iInterface < interfaceList.Count; iInterface++)
{
UsbInterfaceInfo interfaceInfo = interfaceList[iInterface];
Console.WriteLine(interfaceInfo.ToString());

ReadOnlyCollection<UsbEndpointInfo> endpointList = interfaceInfo.EndpointInfoList;
for (int iEndpoint = 0; iEndpoint < endpointList.Count; iEndpoint++)
{
Console.WriteLine(endpointList[iEndpoint].ToString());
}
}
}
}
}


// Free usb resources.
// This is necessary for libusb-1.0 and Linux compatibility.
UsbDevice.Exit();

// Wait for user input..
Console.ReadKey();
}
}
}

pp3dp.se
Posts: 14
Joined: Tue Jan 10, 2012 9:49 am
Location: Sweden
Contact:

Re: Custom MCU-module for UP! Mini...

Post by pp3dp.se » Sat Dec 21, 2013 5:19 pm

@michael_k interesting, mail me your ideas
@twocycler move.l 4.w,a6 those where the days
@sfinktah there are floating points hidden in the hex dumps, beware that to much poking can void warranty

Have a merry Xmas and blissful hacking
/Patrick

pp3dp.se
Posts: 14
Joined: Tue Jan 10, 2012 9:49 am
Location: Sweden
Contact:

Re: Custom MCU-module for UP! Mini...

Post by pp3dp.se » Thu Jan 23, 2014 10:20 am

Just a quick teaser of some inhouse testing
Beware that this breaks all warranties

Happy hacking and sorry for abusing this thread ;)

Be well

//Patrick
Attachments
2014-01-23 10.32.22.jpg
UP 3d DLP Printer
2014-01-23 10.32.22.jpg (138.92 KiB) Viewed 20453 times

User avatar
wackojacko
Posts: 667
Joined: Fri Nov 12, 2010 5:46 am
Contact:

Re: Custom MCU-module for UP! Mini...

Post by wackojacko » Thu Jan 23, 2014 5:52 pm

Now that is impressive
Bruce
http://www.3DPrintingSystems.com

Need help with your printer, check out our Youtube channel.
https://www.youtube.com/user/3dprinting ... /playlists

pp3dp.se
Posts: 14
Joined: Tue Jan 10, 2012 9:49 am
Location: Sweden
Contact:

Re: Custom MCU-module for UP! Mini...

Post by pp3dp.se » Thu Jan 23, 2014 8:00 pm

Thanks Bruce

Another tease, skewed and missing features, but still a successfull test
http://www.thingiverse.com/thing:36711

Will start another thread tomorrow for this..

Be well

//Patrick
Attachments
20140123_204815.jpg
UP DLP Print
20140123_204815.jpg (245.78 KiB) Viewed 20397 times

amd-tec
Posts: 286
Joined: Sun Apr 15, 2012 6:16 am
Contact:

Re: Custom MCU-module for UP! Mini...

Post by amd-tec » Thu Jan 23, 2014 8:29 pm

Up! DLP Kit ;).
"3D design with intelligent printing"
http://www.amd-tec.com

User avatar
josejuako
Posts: 479
Joined: Fri Aug 20, 2010 5:55 am

Re: Custom MCU-module for UP! Mini...

Post by josejuako » Thu Jan 23, 2014 9:54 pm

BEST

pp3dp.se
Posts: 14
Joined: Tue Jan 10, 2012 9:49 am
Location: Sweden
Contact:

Re: Custom MCU-module for UP! Mini...

Post by pp3dp.se » Fri Jan 24, 2014 1:34 pm

Wrong picture and wrong text;)

Another teaser for a cold Swedish Friday:)

See effects of wrong cure time on chin
Attachments
2014-01-24 15.05.53.jpg
2014-01-24 15.05.53.jpg (41.59 KiB) Viewed 20333 times

caesar
Posts: 64
Joined: Sat Feb 22, 2014 1:32 am
Location: Romania

Re: Custom MCU-module for UP! Mini...

Post by caesar » Sat Feb 22, 2014 9:48 pm


Hey sfinktah, tried your script while switching to Ubuntu in a VM, works like a charm.
If you ever need testing on a UP Mini just let me know.

Workflow:
1) sent job to printer
2) cancelled it after it got sent completely
3) switch to Ubuntu in a virtual machine
4) run script
5) back to windows and clicked on print again

PS: a working print again command for the script would be nice!

Post Reply