Advertisement

Friday, December 13, 2013

Printed Prototype Wobbly Chess Piece

I would like to print the wobbly chess set I found on Thingiverse.  The author says it will take 60 hours to print everything so it will be a challenge.  I only have about four hours per week to print stuff on the Makerbot Replicator at the Milwaukee Makerspace.  At that rate, it would take almost four months to print everything.

Just for fun, I printed one piece and one square of the board.  If I wanted a permanent piece, I would use different colors for the top and bottom.

The piece has some trouble standing on its own.  I sanded the bottom a bit flatter and I can get it to stand by itself if I am careful.  However, the wobbly nature of the piece might make it annoying to play with.  Maybe I need more weight in the bottom than the nut I used.

Tested New Water Detection Circuit

I worked on the Home Environmental Sensor Array at the Milwaukee Makerspace tonight.

First, I made a bit more progress on the enclosure.  I took some wire connectors off of some junk in the hack rack at the 'space and installed them in the bottom of the enclosure.  They will be used for the water sensor wires.  I'm not sure that this will be the long-term solution but for now, it is a semi-permanent way to connect the wires.

I had to move the power cable to another opening to make room for one of the connectors.

I am thinking that I will add a male 120v power connector to the right side of the enclosure.  I might also add a CAT5 network connection for the network cable.   Finally, it would be a good idea to have a whole strip of in and out connectors for the other sensors.  Tom G., another Maker, was at the 'space tonight working on circuit boards for a sensor board he is making.  He is using RJ11 jacks as inputs for his circuit plugs.  Maybe that would work for me as well.

After getting the HESA setup in the enclosure, I tested the simplified circuit that my nephew, Jason suggested.  It is the same circuit that I started out with in the beginning--the Raspberry pi sends power out one wire and looks for power coming back in a second wire.  The difference now is that I have the Raspberry pi creating a pull-down resistor on the input side.  The pull-down resistor ensures that any ambient current goes to ground and does not trigger a false reading.  In other words, the input current is always 0 volts until the real current comes across it.

I ran several experiments on the new circuit to make sure it works.

Experiment #1: Ran the HESA water detection program without connecting the leads.  It basically
continually sends power out one wire and looks for a signal on the other.  The program ran for about fifteen minutes.  I never got a false reading.  Success!

Experiment #2: I put some water from a bottle of purified water that was "mineral enhanced for taste" in a plastic shot glass.  Then, I fired up the circuit and put the leads in the shot glass.  The HESA program immediately detected the current and shut off the power to my simulated water softener.  Success!

Experiment #3: Got some Lake Michigan water out of the tap in the bathroom sink at the Makerspace.  Put the leads in the shot glass.  The HESA program immediately detected the current and shut off the power to my simulated water softener.  Success!

Experiment #4: Used water from the water cooler at the Milwaukee Makerspace.  It is also Lake Michigan water but it goes through a filter.  Put the leads in the shot glass.  The HESA program immediately detected the current and shut off the power to my simulated water softener.  Success!

I think we are ready for final assembly.

Saturday, December 7, 2013

Started Making a Wizards Staff

My son is going to play a wizard in a high school play in January.  He wants a staff to use as a prop.  We are going to make a staff based on an Instructable for Gandalf's staff.

I went to Michaels and bought two three foot (3') long, one inch (1") diameter dowels.  I would have liked to get longer dowels but they did not have any.

I was at the Milwaukee Makerspace yesternight and spent a bit of time connecting the two dowel pieces together.  First, I used the metal cutting bandsaw to cut the head off of a 5/8", six inch long bolt.  Then, I used a hand drill to drill a hole on the end of each of the dowels.  I inserted half of the bolt into one of the dowels.  Then, I put Gorilla Glue on the other half of the bolt and on the surface of the dowel.  I connected the two pieces and secured them with electrical tape.

The finished staff appears sturdy.  The next step is to cut a bit off of each end to get the height right and then decorate it to look like a tree branch.

(Not sure who that geek in the picture is but the staff looks good.)

Progress on new HESA Enclosure

Yesternight, I spent about eight hours at the Milwaukee Makerspace working on a couple of projects.  One of the main things I worked on is the new enclosure for my Home Environmental Sensor Array (HESA).  I needed a bigger enclosure to house the Powerswitch Tail relay as well as the Raspberry Pi and any circuit boards.

In another post, I mentioned that I found an enclosure at the Makerspace that was big enough for the HESA project.  I needed to get it ready to hold my project.  First, I cut a piece of plywood that I found at the 'space to fit in the back of the enclosure.  I used a table saw to cut the wood (no time to mess with the CNC router unfortunately).  I drilled holes to attach the board to the enclosure and to hang the enclosure on the wall.  The enclosure is now ready for components.

Next, I removed the power switch and 120 volt power plug from a PC power supply to use as the main power input on the enclosure.  A power cord will plug in to the enclosure to supply power.  The switch will allow power to flow to the components in the enclosure or not.

I had to cut holes in the metal side of the enclosure for the parts to fit.  There might be better ways to do this with all of the cool tools we have at the Makerspace but I chose to use a crude method.  First, I drilled holes in the enclosure around the inside edge of the square that I wanted to remove.  Then, I used cutting pliers to remove the metal.  Next, I used a square hand file to remove the rest of the metal and smooth out the holes.  It took about an hour to make the two small holes but it worked pretty well.

The next step was to install the Powerswitch Tail into the enclosure.  I had to solder some wires between the switch and the power plug.  Then, I connected the wires to the PST and attached the PST to the wood with some short screws.  I connected the Raspberry Pi to the PST and tested the circuit.  It worked as it did before.

When I finished the test, it was after 11:00pm.  I would have liked to work on the water detection circuit but there was not enough time.  I also regret not taking more pictures.  Overall, it was another good day at the Makerspace.

Saturday, November 30, 2013

New Maker Podcast

I like to listen to podcasts while in the car. Just this weekend I found a new Maker - oriented podcast called, the "Gadget Makers Blog". The description on the blog's website says, "Articles, tutorials & how-tos on electronics, Arduino, 3d printing, and more."

There are only two episodes so far. The first was a general discussion about the author's recent Kickstarter product named Recap as well as some general electronics talk.

The second episode talks about how the author bought some fake chips from Ali Baba, the Chinese Amazon.com. I found this episode to be pretty interesting. I have heard of Ali Baba's but never bought anything from them. I don't think I will after hearing about this.

I'm definitely going to keep listening to this podcast. If you know of any other interesting Maker or novice electronics podcasts please post a comment.

Friday, November 29, 2013

New Water Detection Circuit

I was showing my nephew my Home Environmental Sensor Array over the Thanksgiving holiday.  We tested it at his house with his city water.  It took about a minute to detect the current but it eventually did.

My nephew did some research and came up with a potentially better and simpler circuit.  It basically sends power out through on of the Raspberry Pi's GPIO ports and looks for a signal on another port.  There is a resistor on the input side that connects to ground.  This stops the pi from getting false readings.

When we tested it out, the circuit never gave a false reading when connected to the resistor.  It also detected the current in his water immediately every time.  I'll have to solder up another circuit board and test it out at the Makerspace.

I don't understand why the circuit works to block transient current.  Maybe someday...

Here is the circuit that I documented using Digikey's Schemeit.


Fun With a New Arduino

I was visiting my Mom and sister and nephew over the Thanksgiving holiday.  My nephew is, like me, interested in electronics and microcontrollers.  We spent a lot of time just goofing around with different projects.  It was a great couple of days.

There is a neat store near his house called Gateway Electronics.  They have pretty much everything you could want for electronic projects for good prices (and free Twizzlers).  I bought an Arduino Uno, a continuous operation servo, and a couple of potentiometers.  My nephew bought the DFRobot Arduino LCD keypad shield for his Arduino.  We spent the rest of the day trying to get the Arduinos working with LCD displays and the servo.

Adafruit has a web page that explains how to connect an Arduino to an LCD.  The LCD in the example was a 16x2 LCD.  I had an LCD display from the Milwaukee Makerspace.  It looks like most LCDs are the same.  They have 14 or 16 pins.  Pin one is ground.  Pin two is power in.  Pin three is to control contrast.  Pins 15 and 16 control the backlight, if the LCD has that feature.  Pins 4 through 14 are to send data to the LCD.  Check out the Adafruit web page for more details.

The Arduino IDE comes with several example programs for displaying on an LCD.  Plus, there is a built-in library called LiquidCrystal that makes it very easy to work with LCDs.  The Adafruit page does a good job explaining the basics for first-time users like me.

Our first try at connecting the Arduino to the LCD was a bit flaky.  The display would go a bit crazy after the first boot-up.  If we wiggled the cables, the display would change.  We replaced all of the cables with different ones and the LCD worked perfectly.

Various web pages say that a potentiometer is needed to control the contrast.  You can see it in the picture above next to the right-hand corner of the LCD.  It basically needs power and ground on the outside pins.  The middle pin connects to the contrast pin on the LCD.

My nephew hooked his DFRobot LCD shield to his Arduino.  Their web page has some sample code.  He downloaded the code to the Arduino and the board worked great -- at first.  After about 30 seconds, the display started getting flaky.  Tapping on the screen would settle it momentarily.  Everything works functionally, but the display is not stable.  Looks like he will have to exchange it for a better one.

Next, I hooked the servo to the Arduino.  I found an Arduino sketch to control the servo with pulse width modulation.  It basically lets you press keys on the computer keyboard to speed up and slow down the servo.  I played around with the minimum and maximum settings and was able to get the servo to go both clockwise and counter clockwise.  I also added the LCD code to the sketch to display the pulse width setting on the screen.  Nice!

The Arduino IDE comes with a library for the servo called the Servo Library.  I did not play with the Library much but I was able to get it to go clockwise, counterclockwise, and stop.  The library did not control the time, nor the speed.  Maybe it will, but I could not get it to work that way.

In the picture to the right, you can see the Arduino in the front, the LCD in the middle, and the servo in the rear.  I would like to use the Servo to control the automated pet food dispenser.  In theory, I could connect the Arduino to the servo and plug the power for the Arduino to a timer that will turn it on once or twice a day for five minutes.  The program I wrote moves the augur counter-clockwise for about 1 second.  Then, it rotates clockwise for 2 seconds.  According to the Instructable about the dispenser, this will keep the augur from jamming on food pieces.  One weird thing is that the program works great when the Arduino is connected to the PC but not when it is connected to a USB power converter.

Here is the code to control the servo.

#include <server.h>

Servo augur; 

void setup() 
{ 
} 

void loop()
{ 
  // Make the servo turn clockwise then counter 
  // Set up the servo 
  augur.attach(9); 

  // Spin counter clockwise 
  augur.write(-180); 
  delay(1000); 

  // Spin clockwise 
  augur.write(180); 
  delay(2000); 

  augur.detach(); 
  delay(500); 
}