Enough Blood to Fill a Ten-Gallon Hat


K on the first day of school with some of his friends (who shall remain anonymous). Notice anything new or different about him?

---
There Will Be Ten Gallons of Blood
Today, at a blood drive sponsored by my employer, I donated my 80th pint of blood. A little math shows that equals ten gallons. No wonder the vein in my left arm complains so much when they stick the needle into it.

They didn't have a little "10" pin to give me, though. I might have to go looking on eBay for one, because what's the point of giving ten gallons of blood, one pint at a time, over 20 years or so, if you don't get a pin? There isn't any other good reason that I can think of.

Miscellaneous Related Sentences
K is off to a good start with soccer: he's scored one goal each in his first two games.

M spent three days and two nights with his fellow seventh-graders at Howell Nature Center. I stayed overnight one night with a roomful of boys (including M) as a chaperone, and my conclusion from that is: one night is enough.

The elevator project is pretty close to being done. I have the four buttons ready to go, all I have to do is finish the code to handle them and operate the motor properly. It won't be hard, I just have to sit down and do it.

The two new cats have settled into their new home and are perfecting their daily routine of sleep, eat, ignore the humans, sleep, eat, ignore the humans, and so on. Meanwhile, I go to work to earn money for their food and clean their litter boxes.

---

I hope everyone is enjoying the cooler weather after the hot summer. I know I am. I went out running this morning at 5:30 and the cool air felt great. I was a bit of a slug all summer because I didn't want to run in the heat, so now I have to make up for lost time.

---

The Elevator is Uplifting

---
Elevator "Up" Date


The elevator mechanicals - RIP old drawer hardware...

I've been working on the mechanical part of the elevator project lately, and I thought I had an easy idea - use some of the drawer runners, the ones that have the little wheels that the rails ride on.

I figured I'd just use one rail for a guide, and two of the little wheels to attach to the elevator car.

That didn't work because of the way the rails are constructed - they are only shaped to cradle the wheel on one side, and are flat on the other. That means putting the wheels into the rail vertically would cause the car to flop out of the flat, open side.

I put up two rails next to each other, with the curved (closed) sides on the outside, and that was enough to keep the wheels from flopping out. I superglued some of the drawer rail parts together well enough so they would slide without much friction. I then glued some other wood pieces to it to create a test platform. It's pretty ugly to look at from the back, but it works, and it is enough of what I would call a "Proof of Concept" to be happy with it.

The next challenge was to get the motor working with the rest of the circuit. For all of my testing of the ultrasonic sensor (the one that tells the program how far the nearest object is) I used a tiny toy motor. It doesn't take much power to run that tiny motor, but the bigger motor I am using to raise and lower the elevator car drains a lot more of the power from the rest of the circuit. As I was setting everything up, I noticed that the ultrasonic sensor was not working at all if I hooked up the bigger motor. I went back to my book, "Arduino Cookbook" and checked the wiring diagram again. I knew I needed a second power source for the motor, and I had one setup for that, but I discovered that I hadn't hooked it up correctly. The diagram got me straightened out.

I set the program to raise the elevator car until it was about 3.5 inches from the sensor and hooked up the really fancy pulley system to give the elevator its final test.

The Moment of Truth



A Few Pictures


The setup at the bottom of the rails is the sensor and the power supply for the motor. The sensor is the two small metal cylinders - one sends out a signal, and the other receives it as it bounces back. The time between the "sent" and "received" times can be converted to a distance by the program.

The red light is part of the power supply for the motor, and the black cord coming out of it is plugged into a power strip that's not pictured.



At the top of the elevator rail is the Arduino Uno board (the blue one) and a breadboard that contains a chip called an H-Bridge. It's the H-Bridge's job to control the motor based on the Arduino's commands, turning it on and off, and setting its speed and direction.
You can see the string wound onto a threaded rod, attached to the motor. This raises and lowers the elevator.



M helped me measure the distance between the sensor and the bottom of the elevator car. About 3.5" which is what I was hoping for.

I still have some work to do - it's not an elevator if you can't get the car back to the first floor! Next up, I'll add some buttons to the circuit to allow a user to control its up and down motion. That will require some changes to the program to handle the button presses, and to know where the car is. I don't want the car to keep going up if it's already at the top, and there's no need to let it back down if it's already at the bottom.

I'm also going to create a better rail system than what I have. It works, but is not a very elegant solution, and everyone knows that if there's one word that describes me, it's "elegant." (Maybe not.)

---


An updated shot of some of the components - the ultrasonic sensor is now soldered to a small circuit board instead of plugged into a breadboard. The wiring is more complete and it's been tested. Some of my later posts in this blog have a link to YouTube videos of it in action.