March 14th is “Pi Day”, for reasons which should be obvious to our more mathematically inclined readers. As you are not reading this post on March 14th, that must mean we’re either fashionably late to Pi Day 2019, or exceptionally early for Pi Day 2020. But in either event, we’ve got a hack for you that celebrates the day using two things we have it on good authority most hackers overindulge in: food and needless complexity.
One might say that this project takes a three dimensional pie and converts it to a two dimensional facsimile, but perhaps that’s over-analyzing it. In reality, it was a fun little hack [Mike] put together just because he thought it would be fun. Which is certainly enough of a motive for us. More practically though, if you’re looking for a good example for how to get a load cell talking to your non-edible Raspberry Pi, you could do worse than checking this out.
Conventional load cells, at least the ones you can pick up cheaply from the usual sources or harvest from old kitchen or bathroom scales, are usually way too big to be used on the extruder of a 3D-printer. [IvDm] wanted to build a touch sensor for his Hybercube printer, so he built his own load cell to do it. It consists of four 1000 ohm SMD resistors in the big 2512 device size. He mounted them to an X-shaped PCB and wired them in the classic Wheatstone bridge configuration, with two resistors on one side of the board and two on the other.
The extruder mounts into a hole in the center of the board and floats on it. Through an HX711 load cell driver chip, the bridge senses the slight flex of the board when the extruder bottoms out on the bed, and an ATtiny85 pulls a limit switch input to ground. [IvDm] even did some repeatability testing with this sensor and it turned out to be surprisingly consistent. The first minute or so of the video below shows it in action on the Hypercube.
The heart of the stand is a common load cell (the sort of thing you’d find in a digital scale) coupled with a HX711 amplifier board mounted between two plates, with a small section of vertical PVC pipe attached to the topmost plate to serve as a motor mount. This configuration is capable of measuring up to 10 kilograms with an 80Hz sample rate, which is critically important as these type of rocket motors only burn for a few seconds to begin with. The sensor produces hundreds of data points during the short duration of the burn, which is perfect for graphing the motor’s thrust curve over time.
Given such a small window in which to make measurements, [ElementalMaker] didn’t want to leave anything to chance. So rather than manually igniting the motor and triggering the data collection, the stand’s onboard Arduino does both automatically. Pressing the red button on the stand starts a countdown procedure complete with flashing LED, after which a relay is used to energize a nichrome wire “electronic match” stuck inside the motor.
In the video after the break you can see that [ElementalMaker] initially had some trouble getting the Arduino to fire off the igniter, and eventually tracked the issue down to an overabundance of current that was blowing the nichrome wire too fast. Swapping out the big lead acid battery he was originally using with a simple 9V battery solved the problem, and afterwards his first test burns on the stand were complete successes.
We all know how important it is to achieve balance in life, or at least so the self-help industry tells us. How exactly to achieve balance is generally left as an exercise to the individual, however, with varying results. But what about our machines? Will there come a day when artificial intelligences and their robotic bodies become so stressed that they too will search for an elusive and ill-defined sense of balance?
We kid, but only a little; who knows what the future field of machine psychology will discover? Until then, this kinetic sculpture that achieves literal balance might hold lessons for human and machine alike. Dubbed In Medio Stat Virtus, or “In the middle stands virtue,” [Astrid Kraniger]’s kinetic sculpture explores how a simple system can find a stable equilibrium with machine learning. The task seems easy: keep a ball centered on a track suspended by two cables. The length of the cables is varied by stepper motors, while the position of the ball is detected by the difference in weight between the two cables using load cells scavenged from luggage scales. The motors raise and lower each side to even out the forces on each, eventually achieving balance.
The twist here is that rather than a simple PID loop or another control algorithm, [Astrid] chose to apply machine learning to the problem using the Q-Behave library. The system detects when the difference between the two weights is decreasing and “rewards” the algorithm so that it learns what is required of it. The result is a system that gently settles into equilibrium. Check out the video below; it’s strangely soothing.
If you’re tired of having to make small talk with random people in the office break room every time you need a cup of coffee, or simply don’t have the time to get up to pour yourself some more, it would be nice if there was a way you could have your cup filled for you, right at your desk. With this new drink dispenser, you won’t have to get up or even pour your drinks yourself!
We’ve certainly seen plenty of automatic drink makers, but those are more suited to parties and complicated drink mixing. This beverage dispenser is more for the person who knows their tastes and simply wants to save some time. It’s also much simpler, using a peristaltic pump for serving a single liquid from a large bottle into a glass, and using a load cell to know when to stop filling. The peristaltic pump is a little slow though, so it’s best to set the glass back in the dispenser and let it top you off each time.
We’re a big fan of time savers around here, especially when it comes to improving workflow. Of course, the best time saver is a clean, well-organized shop which will help you out whether you’re building a drink dispenser or anything else.
Some things about the human body are trivial to measure. Height, weight, blood pressure, pulse, temperature — these are all easily quantifiable with the simplest of instruments and can provide valuable insights into our state of health. Electrical activity in the heart and the brain can be captured with more complex instruments, too, and all manner of scopes can be inserted into various orifices to obtain actionable information about what’s going on.
But what about, err, going? Urine flow can be an important leading indicator for a host of diseases and conditions, but it generally relies on subjective reports from the patient. Is there a way to objectively measure how well urine is flowing? Of course there is.
The goal for [GreenEyedExplorer]’s simple uroflowmeter is simple: provide a cheap, easy to use instrument that any patient can use to quantify the rate of urine flow while voiding. Now, we know what you’re thinking — isn’t liquid flow usually measured in a closed system with a paddlewheel or something extending into the stream? Wouldn’t such a device for urine flow either be invasive or messy, or both? Rest assured, this technique is simple and tidy. A small load cell is attached to an ESP8266 through an HX711 load cell amp. A small pan on the load cell receives urine while voiding, and the force of the urine striking the pan is assessed by the software. Reports can be printed to share with your doctor, and records are kept to see how flow changes over time.
All kidding aside, this could be an important diagnostic tool, and at 10€ to build, it empowers anyone to take charge of their health. And since [GreenEyedExplorer] is actually a urologist, we’re taking this one seriously.
For many of us. the holiday season is coming up and that means hosting parties and mixing drinks, which can get tiresome. [GreatScott] has come up with a solution, what he calls a crude cocktail mixing machine. But don’t be fooled — it may look crude on the surface, and vibrate a bit while working, but the mechanism is plenty sound and functional.
The machine can mix three different liquids and does so using three peristaltic pumps. In typical [GreatScott] style, while he tears apart the pumps to replace the tubes, he gives us a good glimpse of just how they work. Using a knob and LCD screen, you can enter any quantity you want for the three liquids, though you’ll have to edit the Arduino code if you want to change the liquids’ names.
How does the machine know when to stop pumping a certain liquid? Each pump is rated for a specific quantity per second, though he tests this for each liquid anyway and finds a slight variation which he accounts for in the code. After the machine turns a pump on, a load cell located under the glass tells it when liquid has started arriving at the glass. A simple calculation based on the pump’s quantity per second and the desired quantity tells it how long to leave the pump on for. When the times up, it stops the pump. The result is a machine that’s sure to be a centerpiece for any hacker-filled party. Check out his build and the pump in action in the video below.