Uncategorized

Laser cut v9 pen holder test

Testing out the v9 pen holder that I digitized and then laser cut. Looks like there are still precision errors that (I bet) are bobbin related. I changed the pen holder but the error stayed the same so it must be something else…right?

Uncategorized

Google Hangout + Prusa Fixing

Come join me this afternoon as I install a gear on my 3D Reprap Prusa Marlin. Or is that Marlin Prusa Reprap? I only know one thing about three names … Looks like I’ll be listening to Beck this afternoon, too.

Show’s over. here’s a recap.

Later today we’ll be doing another show with the parts that are being printed right now. Stay tuned for the Hangout link!

Uncategorized

MemoryFree reports memory usage on an Arduino

Ed – I couldn’t put it better myself, so here it is, straight from the author’s mouth.

Hey Dan,

I’ve attached the free open source Arduino libray called MemoryFree I mentioned to you last night. Add it to your Arduino libraries, then:
[code]
#include <MemoryFree.h>

void printMemoryStats()
{
Serial.println();
Serial.print(F("Available memory: "));
Serial.print(freeMemory());
Serial.println(F(" bytes."));
Serial.println();
Serial.flush();
}
[/code]

You can then scatter calls to printMemoryStats() around your code to narrow down the problem areas. When I was tracking down the problems with the VHS doorbot, I ended up with calls to printMemoryStats() inside each set of curly braces, after variables, in many functions, etc (I also put calls in a number of other libraries I was using, as that’s where it was actually failing).

It let me find the problem *really* quickly (fixing it wasn’t quite so quick though :P). The more calls you put in, the easier you’ll be able to see if something is taking up an unexpectedly large amount of memory – because obviously it may just run out of memory way down in the call stack where it’s not using much additional memory, but only because a higher-level function used a lot.

Good luck!

-Richard