Cat-Operated Cat Food Dispenser

Tired of being harassed by your cat? [MomWillBeProud] made a cheap, effective — and more importantly cat-operated — cat food dispenser.

The feeder is of an efficient construction — a double cat food dish, one container to store the electronics, and a Pringles can to act as the hopper. A simple servo rotates the hopper thirty degrees and back on each button press; using gravity to drop food through an opening that appears due to this motion. The button itself is an old IKEA timer and a piece of plastic large enough for a hungry cat to swat.

An Arduino controls the servo, and while [MomWillBeProud] skips over going into detail on his code, you can check it out here.

Continue reading “Cat-Operated Cat Food Dispenser”

How The Human Brain Stores Data

Evolution is one clever fellow. Next time you’re strolling about outdoors, pick up a pine cone and take a look at the layout of the bract scales. You’ll find an unmistakable geometric structure. In fact, this same structure can be seen in the petals of a rose, the seeds of a sunflower and even the cochlea bone in your inner ear. Look closely enough, and you’ll find this spiraling structure everywhere. It’s based on a series of integers called the Fibonacci sequence. Leonardo Bonacci discovered the sequence while trying to figure out how many rabbits he could make starting with just two. It’s quite simple — add the right most integer to the previous one to get the next one in the sequence. Starting from zero, this would give you 0-1-1-2-3-5-8-13-21 and so on. If one was to look at this sequence in the form of geometric shapes, they can create square tiles whose sides are the length of the value in the sequence. If you connect the diagonal corners of these tiles with an infinite curve, you end up with the spiral that you saw in the pine cone and other natural objects.

fib_01
Source via Geocaching

So how did mother nature discover this geometric structure? Surely it does not know math. How then can it come up with intricate and sophisticated structures? It turns out that this Fibonacci spiral is the most efficient way of squeezing the most amount of stuff in the least amount of space. And if one takes natural selection seriously, this makes perfect sense. Eons of trial and error to make the most copies of itself has stumbled upon a mathematical principle that permeates life on earth.

fb_02
Source via John Simmons

The homo sapiens brain is the product of this same evolutionary process, and has been evolving for an estimated 7 million years. It would be foolish to think that this same type of efficiency natural selection has stumbled across would not be present in the current homo sapiens brain. I want to impress upon you this idea of efficiency. Natural selection discovered the Fibonacci sequence solely because it is the most efficient way to do a particular task. If the brain has a task of storing information, it is perfectly reasonable that millions of years of evolution has honed it so that it does this in the most efficient way possible as well. In this article, we shall explore this idea of efficiency in data storage, and leave you to ponder its applications in the computer sciences.

Continue reading “How The Human Brain Stores Data”

How I²C EEPROM Talks To The Bus

You will probably be familiar with I²C, a serial bus typically used for not-very-fast communication with microcontroller peripherals. It’s likely though that unless you are an I²C wizard you won’t be intimately familiar with the intricacies of its operation, and each new device will bring a lengthy spell of studying data sheets and head-scratching.

If the previous paragraph describes you, read on. [Clint Stevenson] wrote a library for interfacing I²C EEPROMs to Arduino platforms, and when a user found a bug when using it on an ATtiny85, he wrote up his solution. The resulting piece is a clear explanation of how I²C EEPROMs talk to the bus, the various operations you can perform on them, and the overhead each places on the bus. He then goes on to explain EEPROM timing, and how since it takes the device a while to perform each task, the microcontroller must be sure it has completed before moving to the next one.

In the case of [Clint]’s library, the problem turned out to be a minor incompatibility with the Arduino Wire library over handling I²C start conditions. I²C has a clock and a data line, both of which are high when no tasks are being performed. A start condition indicates to the devices on the bus that something is about to happen, and is indicated by the data line going low while the clock line stays high for a while before the clock line starts up and the data line carries the I²C command. He’s posted samples of code on the page linked above, and you can find his library in his GitHub repository.

If you want to know more about I²C, take a look at Hackaday Editor [Elliot Williams’] masterclasses on the subject: What could go wrong, I²C edition, and Embed With Elliot, I²C bus scanning.

Serial EEPROM die picture, By Epop (Own work) [CC0], via Wikimedia Commons.

Inventables Releases Improved X-Carve CNC Router

Introduced last year as an improvement on the very popular Shapeoko CNC router, the X-Carve by Inventables has grown to be a very well-respected machine in the community. It’s even better if you throw a DeWalt spindle on there, allowing you to cut almost everything that’s not steel. With a recent upgrade to the X-Carve, it’s even more capable, featuring the best mods and suggestions from the community that has grown up around this machine.

The newest iteration of the X-Carve features higher power drivers, better rigidity, and a heat sink for the spindle. That last item is an interesting bit of kit – routing takes time, and a 1¼HP motor will turn electricity into heat very effectively.

X-CarveIn addition to the 500mm square and 1000mmm square routers previously available, there’s a new, 750mm square machine available. All machines feature a new electronics box for the X-Carve, the X-Controller. This ‘brain box’ is a combined power supply, stepper driver, and motion controller built into a single box. The stepper drivers are able to supply 4A to a motor, is capable of 1/16 microstepping, and has connections for limit switches, spindle control speed, a Z probe, and outputs for vacuums or coolant systems. The underlying controller is based on grbl, making this brain box a very solid foundation for any 3-axis CNC build. The ‘brain box’ format seems to be the way the hobbyist CNC market is going, considering the whispers and rumors concerning Lulzbot selling their Taz6 brainbox independently from a 3D printer.

The new X-Carve is available now, with a fully-loaded 1000mm wide machine coming in at about $1400. That’s comparable to many other machines with the same volume, unlike the Chinese 3040 CNC machines, you don’t need to find an old laptop with a parallel port.

Hackaday Prize Entry: Open Sip And Puff

A sip-and-puff device is an assistive technology used by people who cannot use their hands. Being a quasi-medical device, you can imagine this technology is extremely expensive, incapable of being modified, and basically a black box that can’t do anything except what it was designed for. For his Hackaday Prize entry, [Jason] is building his own sip-and-puff interface that’s cheaper and more capable than the available commercial versions.

Sip-and-puff devices can be mapped to control a wheelchair, click a mouse, or press a key on a keyboard. You can do a lot with USB, so for this open sip-and-puff device, [Jason] is using the ever-popular ATmega32U4 microcontroller.

USB is only one part of the problem, and to measure the sips and puffs of air through a plastic hose, [Jason] is using a pressure sensor from Freescale/NXP. While this is very similar to what would be found in the off-the-shelf version of a sip-and-puff device, it’s rather hard to interface with. The current version of the board is using an instrument amplifier, and the mechanical connection between the pressure sensor and the board is slightly bizarre. [Jason] has a few ideas for a better sensor, and for the rest of the Hackaday Prize he’s going to work on redesigning this device with simplicity in mind.

Antenna Rotation Arduino Style

Back in the days when you didn’t pay for your TV programming, it was common to have a yagi antenna on the roof. If you were lucky enough to have every TV station in the area in the same direction, you could just point the antenna and forget it. If you didn’t, you needed an antenna rotator. These days, rotators are more often found on communication antennas like ham radio beams. For terrestrial use, the antenna only needs to swing around and doesn’t need to change elevation. However, it does take a stout motor because wind loading can put a lot of force on the system.

[SP3TYF] has a HyGain AR-303 rotator and decided to build an Arduino-based controller for it. The finished product has an LCD and is able to drive a 24 V motor. You can control the azimuth of the antenna with a knob or via the computer.

Continue reading “Antenna Rotation Arduino Style”

Internet Of Things Woodworking

Woodworking is the fine art of building jigs. Even though we have Internet-connected toasters, thermostats, cars, and coffee makers, the Internet of Things hasn’t really appeared in the woodshop quite yet. That’s changing, though, and [Ben Brandt]’s Internet of Things box joint jig shows off exactly what cheap computers with a connection to the Internet can do. He’s fully automated the process of making box joints, all with the help of a stepper motor and a Raspberry Pi.

[Ben]’s electronic box joint jig is heavily inspired by [Matthias Wandel]’s fantastic screw advance box joint jig. [Matthias]’ build, which has become one of the ‘must build’ jigs in the modern woodshop, uses wooden gears to advance the carriage and stock across the kerf of a saw blade. It works fantastically, but to use this manual version correctly, you need to do a bit of math before hand, and in the worst-case scenario, cut another gear on the bandsaw.

[Ben]’s electronic box joint jig doesn’t use gears to move a piece of stock along a threaded rod. Stepper motors are cheap, after all, and with a Raspberry Pi, a stepper motor driver, a couple of limit switches, and a few LEDs, [Ben] built an Internet-enabled box joint jig that’s able to create perfect joints.

The build uses a Raspberry Pi 3 and Windows IoT Core to serve up a web page where different box joint profiles are stored. By lining the workpiece up with the blade and pressing start, this electronic box joint jig automatically advances the carriage to the next required cut. All [Ben] needs to do is watch the red and green LEDs and push the sled back and forth.

You can check out [Ben]’s video below. Thanks [Michael] for the tip.

Continue reading “Internet Of Things Woodworking”