Thursday, June 26, 2014

New Slic3r release

Slic3r 1.1.5 is out and has a bunch of nice looking features.  Linear gap fill with adaptive extrusion width is very much welcomed, as is "always complete island first"

There are several more significant improvements.  Be sure to pick it up.

http://slic3r.org/

Saturday, June 21, 2014

Nozzle seasoning

I recently put an E3D hotend on my i3 printer. I primarily print with PLA. It turns out that if you are going to print PLA, it's a good idea to "season" your hotend, and by this I mean exactly the same thing as seasoning a cast iron frying pan.

By burning vegetable oil on the metal, you'll be creating a slippery, very thin, heat resistant polymer coating that makes it very much easier to remove the filament in the future.

It's best if you do this when the hotend is new so the seasoning is right on the metal without bits of plastic stuck to it.  If you have already used it, it would be good to use this guide to clean it first if you can.

These instructions are what I did after reading them online.  This isn't my invention, just what I read.

NOTE this is ONLY for all-metal hotends.  Please don't try to season a hotend with a PEEK/PTFE/other plastic liner such as the JHead.  Those don't need this treatment and it might cause trouble.


  • Get a couple of lengths of filament, about 20cm long each, and a small quantity of vegetable oil.
  • If there is filament in the hotend already, try to do a clean pullout of the filament that's in there.  typically for PLA that means heating to 100 to maybe 120 and pulling the filament as soon as it can be pulled.
  • Heat the hotend to about 230
  • Dip one piece of filament in the veg oil and insert it into the hotend.  It will sizzle. Push until you get a couple of centimeters of filament extruded.
  • Remove that filament and push through a couple centimeters of the other bit of filament (without dipping it in oil).  Remove that bit of filament.
  • Repeat with the oil and the unoiled bit at least 2 or 3 times.

Saturday, June 14, 2014

9 LED red blinkie

This blinkie was introduced at Duckon 2014. It was free to all members of the convention.

This blinkie is still available for purchase. Contact john@DragonflyDIY.com for pricing - special pricing for educational groups and organizations

Bill of materials:
  • Circuit board
  • tactile switch
  • 10K resistor
  • 9 LEDs (red)
  • CR2032 battery holder and battery
  • ATTiny85 microcontroller
  • Standard vinyl tag clip
Resources:

More information:
Here's the blinkie in the optional 3D printed case that allows it to hang horizontally and protects the back of the board from shorting out.  The battery holder must be mounted on the front of the board to use this holder.


Assembly video:


Theory of operation:

As you can see from the schematic, 9 LEDs are driven from just 5 I/O lines, and we somehow work the pushbutton switch in there as well.  This is done using a method called Charlieplexing (click here for more detailed info). In short, this method takes advantage of two things: LEDs only light up when power is applied in one direction, and the I/O lines can be put into THREE states - positive, ground, and floating (not connected).

If you look at the top two LEDs in the schematic, you'll notice that they're connected to the same wires but in opposite directions.  So if you put power on one of those lines and ground on the other, one of the LEDs will light up.  Switch those and the other LED will light up.  So far, big deal, we're running two LEDs with two wires.  However, by adding a third line, you can then connect two more LEDs between the first line and the third one, and two more between the second and third.  We're now controlling six LEDs with three wires.

The downside is that while we can light up any single LED we want, we can't light up every LED in whatever order we want (we can't light up BOTH of those top two LEDs at the same time).  In order to light up the LEDs we want, we have to flash through them very quickly, fast enough that your eye will think that all the desired LEDs are on at once. Typically faster than 50 times a second is pretty good, the faster the better.  This sort of multiplexing is done on almost all display electronics; if you wave an LED clock radio around in front of your face, you'll see that it is flashing.  In fact modern LED car taillights when they're in the dimmer modes are flashing and you can sometimes see them as dotted lines if they sweep across your vision quickly.
I should point one thing out, this question comes up frequently.  Normally when driving LEDs, you need to limit the current going to them, typically by using a resistor.  If you attach an LED to a power source that can deliver a lot of current (such as a large battery or power supply) and do not limit the current, the LED will quickly overheat and burn out.  However, in the case of this circuit, the battery that we are using is not capable of delivering much current - at most about 120 milliamps. In addition, the LEDs are being flashed quickly and are turned on at most about 15% of the time, so they have plenty of time to dissipate any heat that builds up.
You'll notice that we only have two choices for an LED - On and Off.  But the LEDs can appear to be brighter or dimmer as desired.  In order to achieve this, we use a technique called Pulse Width Modulation or PWM.  If we want an LED to appear dimmer, we flash it for a shorter amount of time.
PWM is used in a vast number of applications from controlling motors to some types of audio amplifiers (class D amplifiers).  Variable speed DC motors almost all use PWM to control speed, and these days with modern digital control, even multiphase AC motors use PWM in their control circuitry.

The software to drive this does get a little complicated.  The method used here is to create what's called an interrupt service routine and to set up a timer circuit in the chip so that the routine gets called frequently - ideally about 1000 times a second.  Each time the routine gets called, it updates the LED drivers to the next state.

Writing the code with an interrupt service routine really helps simplify things.  You can keep all the weird mucking around with the pins to get the right LED to turn on down there, and once it's working you can just concentrate on doing the stuff to make the LED blink in the way you want.

The switch is also read by the display routine since it's attached to one of the display wires.  To do this, that pin (PB0) is set into input mode, the internal pull-up resistor (about 10K ohms) is turned on, which without anything going on outside the chip would mean that the input would read "1".  However, if someone is pressing the switch, the lead is pulled towards ground with a 5K ohm resistor. This makes the PB0 input read "0" and the software knows someone is pressing the button.

(As an aside, during this phase all the other wires are set into input mode - if they were not, the pull-up resistor on pin PB0 might cause some of the LEDs to glow faintly, causing "ghosting.").  

The reason there is a resistor in series with the switch is that since someone may press the button at any time, it might happen that the PB0 line was trying to drive the LED bank at the time and might be driving itself high. If the switch is pressed and shorts it to ground, you're stressing the chip and may damage it.

Friday, June 6, 2014

16 LED RGB blinkie

This blinkie was introduced at Duckon 2014 as the premium blinkie

This blinkie kit is available for purchase. Email john@dragonflydiy.com for details. Price is $15 plus shipping. Quantity and educational discounts are available.





Bill of materials:

  • circuit board
  • power (slide) switch
  • two pushbutton switches
  • 16 RGB color LEDs
  • ATTiny84 microncontroller
  • 74LS164 shift register
  • Two IC sockets
  • 1.5 to 5v power converter module
  • capacitor (maybe, depends on which power converter module is used)
  • AA battery holder
  • 3D printed rear cover (keeps the wires from snagging your clothes, keeps metal buttons and such from shorting out and crashing the blinkie)

Click to view assembly instructions (PDF)

Video assembly instructions:



Resources:




More information:




New printer: JGAurora A3

This week I decided I'd had it with all the other printers in my stable.  The CTC is stable and decent but it just bugs me (can't st...