Cheap Parts Aren’t Worth the Money

In the previous post I talked about a fire safety circuit I’m building for a 3D printer.  One essential piece of that design was the inclusion of a thermal fuse.  The idea being that if things get too hot, the fuse will break the circuit and we can avoid starting any unintended fires.

I was getting ready to assemble part of this project and before I put everything together, I thought maybe I should test the fuses to see if they actually behave as expected.  Since you’ve read this far, you can probably guess the answer to that question.

Thermal Fuses?  Or solid wire?  In this case, there is no difference.

A good thermal fuse will blow at the design temperature, plus or minus a little bit.  A faulty one can blow early when the temperature is still below the trigger point.  A REALLY faulty one will blow at some temperature above the trigger point.  An INCREDIBLY faulty one won’t blow even though other parts of the circuit are already melting.

Care to hazard a guess as to which one I got?  That’s right… I ended up with a bag of INCREDIBLY faulty thermal fuses.  By spec, these fuses are rated to blow at 100 degrees Celsius.  I figured that if my circuit were hot enough to boil water, then it was too hot.

As a test, I setup a circuit with a temperature sensor and one of these thermal fuses side-by-side.  Then I pointed a heat gun at them and watched the temperature rise. I was expecting the fuse to blow somewhere between 95 and 105 degrees but much to my surprise, it was still going strong at a blazing

206 degrees Celsius!

For those of you that don’t like metric, 206 Celsius is 402 degrees Fahrenheit! In other words, I could put this thing in the oven next to my frozen pizza and it would happily continue to pass current while the cheese melted and the crust browned.

It’s a bummer that I can’t build the project the way I originally envisioned but on the other hand, I guess I saved myself some design and assembly time.

What is the takeaway from this experience?  The ability to order any kind of electrical component off of Amazon and have it show up at your house a week or two later is great but don’t assume that what you receive is what you want.  Test it and make sure.

Advertisements

3D Printer Fire Safety

I have a sneaking suspicion that Santa is bringing me a 3D printer for Christmas. (I sat next to Teri while she ordered the right one, so it isn’t a real stretch to think that it might happen. 🙂

Until next week when I can actually play with it er… investigate the capabilities of this new tool, I’m trying to get everything ready.  During this preparation, I read a few items about printer malfunctions that either caused a fire or nearly did so.  3D printers have high-temperature components and hardware problems can result in fire, though this is admittedly rare.

My doctor says I’m allergic to fire and should try to avoid it so I’m putting together a fire detection circuit that will cut power to the printer if it detects fire or even an overheated environment.  I’ll post more when it is done but check out these cool little bits I’m using.


First up is an AC cord that has a built-in relay that can be controlled with a low-voltage signal.  The printer will plug into this and can only be turned on if my safety circuit sends a signal to close the relay.

 

 

 


Next is a Mini Flame Sensor that can be read from your favorite micro-controller or embedded computer.  In my case, I’m using a Raspberry Pi.  This boards pulls a digital signal low if it detects light in the same spectral range as fire.

 

 


adafruit_products_1782_ORIG.jpg

This temperature sensor will give you the current temperature over I2C.  I’m using several of them at various places around the printer.

When the detected temperature exceeds some pre-determined limit (say 60 degrees Celsius), or when the flame sensor detects fire, the Raspberry Pi will turn off the control signal to the relay, thereby cutting power to the printer.


Software solutions are fine and dandy but sometimes software or the computer it is running on don’t behave as intended. That’s why you should always have a hardware-only layer of protection.

This is a replacement thermal fuse for a clothes dryer.  I plan to put this inline with the mains supply inside the control unit of the 3D printer. If the ambient temperature gets too high, it will break the circuit.

 

 


These thermal fuses are another layer that operates independently of the software.  I’ll put these at various points on the printer, along with the temperature sensors.  But these won’t be used as input to the Raspberry Pi so a software problem won’t keep them from working.  Instead, they will be in series in the control signal going to the relay.  If one of these blows, the relay will lose its signal and cut off power to the printer.

 


 

So what is my total investment in fire safety?  Disregarding the Raspberry Pi because I was including that anyway so it can provide a web interface to the printer, the components add up as follows:

  • PowerSwitch – $26
  • Flame sensor – $5
  • 5 temperature sensors – $25
  • Thermal fuse for dryer – $12
  • Inline thermal fuses – $8

That adds up to $70.  Throw in shipping on those items I didn’t get from Amazon Prime and it is closer to $80. Is that worth it?  Lots of people (most) operate 3D printers without any sort of fire detection circuit.  Is this degree of safety unnecessary on my part?  Obviously I don’t think so.  Anyway, it was fun sourcing the parts and putting it together and since the whole purpose of this hobby is to have fun, it is a win-win.

Comments?  What would you have done differently?

 

Wow… so much for “regular” updates!

I can’t believe that I slacked off on posting anything for over a year.  It would be reasonable to assume that maybe I haven’t been doing anything in the lab but I actually have stayed pretty busy over the past year.  I was just very bad about posting anything.  So it is time to do a brief recap and start fresh.

While I haven’t made much progress on my end goal of building a Mars rover style vehicle, I did do several entertaining projects.

  • Built a half-decent vehicle frame from aluminum stock and HDPE
  • Created a CAD drawing and 3D print of my great-grandfather’s airplane design (http://www.instructables.com/id/3D-Printing-a-Bizarre-Aircraft-Design-from-the-190/)
  • Modified a automatic sprinkler system that is based on a Raspberry Pi to light an LED based on which zone is active
  • Learned how to etch my own Printed Circuit Boards
  • Built Santa’s Game o’ Chance for Teri’s Christmas present
  • Built a testbed to measure the accuracy of different stepper motor drive mechanisms.  Eventually I hope to use this knowledge to build a 3D printer and/or a CNC router.
  • Caught a motor driver on fire (see previous bullet)
  • Reverse engineered some digital calipers, soldered in lines to the circuit board to get output data and hooked them up an Arduino to record measurements (see two bullets ago)
  • Received a Logic Analyzer for Christmas and learned how to use it

Besides these, there were several other smaller projects  that kept me busy.  So, I can’t say I wasted my time.  I had fun and learned stuff.

Now comes the test… will I remember to write up any more projects before another year passes?  Time will tell.

The Start of My Robot Army

I successfully took a cast-off toy robot that I got from the thrift store for $5.00, added sensors and a microprocessor and turned it into a self-directed line following robot.  In December, I was browsing the the Arc, looking for something that would make a good project when I found a Robosapien V1.  

At the time, I had no idea what it was or did but it was heavy, shiny and only cost five dollars so I brought him home.   Turns out that it is a fairly high-end, remote controlled robot.  When new, they retailed for around $100.  I figure a 95% discount was a good deal even if it was missing the remote.  

A little Google-fu quickly showed how I could tap into the existing control system and add a second micro-processor.  By adding an Arduino as a Master Controller and soldering a line to the wire that connects to the built-in infrared receiver, I could make the robot think that it was receiving commands from the remote control.  With that, I could make it walk, wave its arms or make various noises. All that was missing was a purpose.  A mission.  What would it be?

Not having anything against people named Sarah Connor, I skipped the whole Travel Back In Time And Change History To Ensure The Rise Of The Machines thing.  Instead, I decided to add some infrared sensors to the feet and turn him into an entry for an upcoming Line Following Robot contest that my employer is hosting.

The first step was to tie in some lines to the existing control system for power, ground and the control signal.  Opening the back and accessing the control board is pretty simple.  Some more Google-fu and a little time with the multimeter let me identify ground, the 6 volt unregulated supply, the 3.3 regulated supply and the control line.  I would like to take a lot of credit for that amazing piece of work but the control board is labeled pretty well so it wasn’t exactly rocket science.  So I soldered in the new lines, drilled a hole in the body for the cable to run through and put him back together.  A dab of hot glue where the cable runs into the body provides strain relief.

Next I had to mount some sensors on the feet.  That wasn’t technically difficult but the placement of the sensor is crucial to his line following performance and the place I wanted to mount them was not structurally viable.  So I had to add a Flexible Support Structure to both feet.  (That’s Big Words for using hot glue to attach a strip of plastic on the front that I could mount the sensors on.)

After that, I was ready to take the lines from the robots innards and the lines from the sensors and hook them up to a suitable micro-controller.  I started with an Arduino Micro since it is easier to work with than the Trinket.  After I got all the bugs worked out, I ported the code to the Trinket.  And as they say, it was just a Small Matter Of Programming and Voila!  It all worked perfectly the very first time.  (For some definitions of “first”)  🙂

The cost for the hardware is very reasonable.  All told, I’m into this thing for maybe $20.  Of course, if you factor in the amount of time I spent working on it, the cost would sky-rocket.  Fortunately, I work cheap when I’m having fun.  It probably shouldn’t have taken as long as it did to build this but I was treading some new ground in my personal knowledge quest and figuring out new things can be very time-consuming.

One of the following videos show the robot standing there looking cool and the other shows him “racing” around the track.  So make some popcorn, pour yourself a soft-drink, send YouTube to the big screen TV and enjoy the show.

https://www.youtube.com/watch?v=hFvs5gGQwq0

https://www.youtube.com/watch?v=fH62e9h1YEM

 

Finally – a line follower that works pretty well

This video shows the line following robot I built recently.  There are a few fun things about this one (besides the fact that it works).

1) No microprocessor.  The control circuit is built with a few ICs, some resistors and some capacitors.  No software at all.

2) Pulse Width Modulation using a 555 timer for adjusting the motor speed

3) Sensor sensitivity controlled by a voltage divider potentiometer

There is also some ugliness…  First, it is built on a breadboard.  I haven’t started doing my own printed circuit boards but I will someday. Second, the sensor leads are too long.  Grotesquely long.  Stupid long.  Longer than a three hour staff meeting that starts at 2:30 on a Friday afternoon.  These sensors will eventually go on a different project that will need longer leads and I don’t want to cut them.  And obviously the chassis is not very polished.  Sturdy and functional but not pretty or impressive.  Let’s just ignore the blemishes and focus on the positives, m-kay?

Image

Top-down View with all the wires obscuring the breadboard

Image

The breadboard with all the wires out of the way

Image

View from the front showing the four infra-red sensors

If you are curious about the hardware, read on.  From right to left in the above photos, you can see the following parts.

Stage 1 – Adjustable voltage divider.  This allows me to control the dark/light sensitivity of the sensors.

Stage 2 – A quad comparator is used to compare the four input sensors to the reference voltage described above.

Stage 3 – A quad NOR gate is used to determine whether either sensor on a given side is over the line.  There are two outputs from this chip, one for each side.  If an output is high, it is used to turn off the corresponding motor.

Stage 4 – Motor driver chip, SN754410NE dual H bridge.  The sharp-eyed will notice that I have actually stacked two ICs and soldered them together.  I needed this for an earlier project where the DC motors were drawing more current than a single chip can provide.

Stage 5 – 555 timer and the bits needed to build a PWM circuit.  This lets me tune the motor speed by adjusting the potentiometer on the left.

So am I proud of this?  Meh… it would probably do pretty well in a high school robotics competition but it isn’t exactly Skynet.  But I had a lot of fun and it puts me one step closer to the larger, more capable robot that I want to build one day.  Baby steps? Yes. But the steps are getting bigger.

Raisin Box Robot

Image

Stick some electrical tape on a piece of poster-board and what do you have?  A racetrack, of sorts.  A robot racetrack.  There are all kinds of robotics competitions but one popular style is called Line Following.  You take a “racetrack” as described above and construct a robot that can go around the course on its own.  Technically, it isn’t extremely difficult to build a line following robot.  The challenge is being the quickest, the most accurate, the smallest or the most creative.

Today’s entry is in the fun and creative category.  I decided to build a line follower using an empty raisin box for the body.  This is not an ideal platform because it is mostly vertical, which means that it has a high center of gravity and a tendency to tilt and rock.  You can see this in the RaisinBoxBot video.  But nonetheless, it followed the line.  

Most people that build a line following robot use some form of microprocessor because it is a much easier.  However, I decided to go the other way for this one and do it all in hardware.  The entire circuit consists of two sensors, a comparator, a motor driver chip and some resistors.  It was a lot of fun doing it that way and let me learn more about hardware.

Image
This is not what was inside the box when we bought it from Safeway

Now I think I’ll cannibalize the hardware, build a better chassis and try to make a version that rolls a bit smoother than this one.  

 

Lindsey and Kelsey Build a Robot er… Pigbot

When some families get together, they do activities like jigsaw puzzles or craft projects.  Not ours.  While my daughters were home for the Christmas break, they wanted to try their hands at building a robot.  We talked about simple “My First Robot” projects and came up with a robot design they felt comfortable with.  Then I gave them all the parts they needed and stood by to help where needed and then they got to work.

Of course, Lindsey and Kelsey can’t do things the plain & simple way so it took about three minutes for them to decide that this wasn’t going to be a simple, unadorned robot.  Due to their mutual love for teacup pigs, this robot was going to be Pigbot, complete with snout, ears and a tail.

ImageImage

It is a pretty simple robot – two servos for drive motors and three contact switches on the front to detect when it runs into something.  Here’s a video of it in action – http://www.youtube.com/watch?v=qh_miyljQmY&feature=youtu.be

And to answer your unasked question – they are 24 and 21.  Still my babies.Image