The purpose of this blog is to record my progress on maker projects that I am working on. I will tag each post with the name of the project to group posts together.
Advertisement
Friday, December 13, 2013
Printed Prototype Wobbly Chess Piece
Tested New Water Detection Circuit
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
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
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
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
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.
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); }
