Hacklet 29 – Altoids Mint Tin Projects

Altoids – they’ve been around since King George III was on the throne. These curiously strong mints have had a storied history, a copy of which is included in every tin. They taste pretty good, but most hackers and makers are more interested in the pocket-sized tin than the mints themselves. It may have been the ham radio operators who first used Altoids tins to hold their sensitive transmitter and receiver circuits. The metal case makes a perfect electromagnetic field shield. It wasn’t long before the tins found their way into thousands of projects. This week’s Hacklet features some of the best projects with Altoids (and other mint) tins on Hackaday.io!

meeting-timerWe start with [Chad Lawson] and the Networking Group Timing Light. [Chad] has a networking meeting where each member has two minutes to introduce themselves. As is the case with most meetings, people tend to be a bit long-winded, running well beyond their allotted two minutes. The timing light contains an RGB LED which changes from green to yellow to red as a speaker’s time ticks away. The timer is reset by simply tilting the mint tin. [Chad] is hoping that the timer will serve as a gentle reminder to keep everyone on track time-wise.

 

radio2Next up is [Rjpope42] and his AM/FM Transmitter Pair. [Rjpope42] loves vintage tube radios, and wants to send his own signals to his amber glowing projects. Wiring an external audio input to a tube radio is pretty easy, but nothing beats a simple AM transmitter for convenience. Small FM transmitters are commonly available to add an MP3 player input to cars without an AUX audio in, but their AM counterparts have become rare. [Rjpope42] has built AM and FM transmitters, each of which will fit in a Mint Tin case. The AM transmitter can run on 9V or 12V, and even includes a USB power output for charging an MP3 player or phone!

da31k[John Hamann] entered Distance Analyzer 3000 in the Trinket EDC contest. While he didn’t win, it was still a great project, especially since this is [John’s] first serious Arduino project. The idea is to use a rotary encoder with a wheel to measure distances. Think of it like a mini version of a surveyor’s walking wheel. The Pro Trinket counts the pulses from the rotary encoder, then converts this to a distance in feet. We’d love to see [John] continue on the project. An ultrasonic distance sensor would be a great addition for multi-sensor distance reads!

 

ttotpFinally, we have [colonwq] with TTTOTP, a pro trinket Time based One Time Password (TOTP) generator. [colonwq] used the trinket to implement the well-known time based one time password algorithm. To implement a project like this, you need a stable time source. The ATmega328 isn’t very good at this, so [colonwq] used a Dallas DS1307 clock chip to keep track of things. The actual code is displayed on a 4 digit 7 segment display. When the button is pressed, the first half of the code is displayed. Once the button is released, the second half of the code is displayed for several seconds.

 

Need more mint? Check out our curiously awesome mint tin project list!

Hackaday.io Update and MeArm Giveaway

Hackaday.io has a few new features, including @username and #projectID. If you mention someone’s username with an @ in front of it, that user will get a notification in their stack. The same goes with mentioning a project ID with a # up front. To celebrate this, we’re giving away a pair of  special edition MeArms. All you have to do is leave a comment using the features on this project log. Huge thanks to [Jasmine] for setting all this up, and to [Ben] for letting us hijack his project for the week!

That’s it for this Hacklet, As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

Binary Clock

Binary Clock Would Make Doc Brown Proud

[Brett] was looking for a way to improve on an old binary clock project from 1996. His original clock used green LEDs to denote between a one or a zero. If the LED was lit up, that indicated a one. The problem was that the LEDs were too dim to be able to read them accurately from afar. He’s been wanting to improve on his project using seven segment displays, but until recently it has been cost prohibitive.

[Brett] wanted his new project to use 24 seven segment displays. Three rows of eight displays. To build something like this from basic components would require the ability to switch many different LEDs for each of the seven segment displays. [Brett] instead decided to make things easier by using seven segment display modules available from Tindie. These modules each contain eight displays and are controllable via a single serial line.

The clock’s brain is an ATmega328 running Arduino. The controller keeps accurate time using a DCF77 receiver module and a DCF77 Arduino library. The clock comes with three display modes. [Brett] didn’t want and physical buttons on his beautiful new clock, so he opted to use remote control instead. The Arduino is connected to a 433MHz receiver, which came paired with a small remote. Now [Brett] can change display modes using a remote control.

A secondary monochrome LCD display is used to display debugging information. It displays the time and date in a more easily readable format, as well as time sync information, signal quality, and other useful information. The whole thing is housed in a sleek black case, giving it a professional look.

Redundant Automated Water Filler For Your Coffee

We’ve always wondered why we have indoor plumbing if it isn’t hooked up to our coffee pots. We probably drink as much coffee as water anyway, so why not just hook up a water line to refill the pot? [Loose Cannon] aka [LC] has been working on just that problem, with a whole lot of extra features, creating a very robust automatically-filled, gravity-fed, vacuum-sealed water tank for whatever appliance you have that could use it, including your coffee pot.

[LC] tapped into the 1/4″ water line from the ice maker, which has the added bonus of being a common size for solenoid valves. He’s using an eTape sensor to measure the water level in the reservoir, but he ALSO is using a flow meter in the line itself to double-check that the reservoir won’t overflow. The flow meter allows a hard limit to be set for the maximum amount of water allowed into the tank. He’s used an Arduino Micro to tie the project together, which also handles a real-time clock so the tank can be filled on a schedule.

The tank that [LC] was trying to fill was vacuum-sealed as well, which made things a little trickier. Without a vacuum on the tank, the water would just run out of the overflow valve. This is an interesting project that goes way beyond the usual automatic water supplies for coffee pots we’ve seen before.

phone controller

Breathe New Life Into Payphones With Asterisk

Payphones used to be found on just about every street corner. They were a convenience, now replaced by the ubiquitous mobile phone. These machines were the stomping grounds for many early computer hackers, and as a result hold a place in hacker history. If you’ve ever wanted to re-live the good ol’ days, [hharte’s] project might be for you.

[hharte] has been working to make these old payphones useful again with some custom hardware and software. The project intends to be an interface between a payphone and an Asterisk PBX system. On the hardware side, the controller board is capable of switching various high voltage signals required for coin-line signaling. The controller uses a Teensy microcontroller to detect the hook status as well as to control the relays. The current firmware features are very basic, but functional.

[hharte] also wrote a custom AGI script for Asterisk. This script allows Asterisk to detect the 1700hz and 2200hz tones transmitted when coins are placed into the machine. The script is also in an early stage, but it will prompt for money and then place the call once 25 cents has been deposited. All of the schematics and code can be found on the project’s github page.

[Thanks mies]

Automated Bed Warmer Control For Chilly Nights

For most of the Northern Hemisphere, winter is in full swing right now. That means long, chilly nights. We assume [LC] is in one of these climes because it seems like his bed warmer wasn’t doing quite a good enough job of getting his bed up to a reasonable temperature before he climbed in. To alleviate some of his discomfort, he hacked into the control unit and added some automation.

The original controller uses a mechanical potentiometer to set the heat level. [LC] added a digital potentiometer which he can switch to in order to allow the automation (using a real-time clock to handle scheduling) to take over control of the bed warmer. This also preserves the original functionality of the controller. There is also an Arduino involved which handles the override from mechanical to digital potentiometer when a capacitive touch sensor is activated. This means that when someone attempts to take manual control of the device, the Arduino can switch the override circuit off.

There is quite a bit of detail on the project site about this hack, including the source code for the controller. [LC] also mentions that this could be interfaced to the web to allow remote control of the bed warmer. This is a great hack, and also fits into the idea of heating the person, not the room.

Arduino Vs. Phidgets – Dev Time Trials

Is developing on an Arduino too slow? Are Phidgets too expensive? When might you use one or the other? Hackaday regular [Ken] breaks down what he learned from three experimental time trials.

The main development differences between Arduino and Phidgets are a mix of flavor preferences and some hard facts. The Arduino is open source, Phidgets are proprietary. Arduino requires a mix of hard- and software where Phidgets only needs (and only allows) a connection to a full computer but enables high level languages – it is expected to get the job done sooner and easier. And finally, Arduinos are cheap, Phidgets are 3-5x the cost.

The three time trials were common tasks: 1. Blink an LED. 2. Use a pot to turn a servo. 3. Build a pedometer. For [Ken], the Phidgets won in each of the three experiments, but not significantly: 37%, 45%, and 25% respectively. The difference is only minutes. Even considering time value, for most hackers it is not worth the cost.

HAD - Phidgets3In context, the advantages of a mildly more rapid development on the simplest projects are wasted away by needing to rebuild a permanent solution. Chained to a PC, Phidgets are only useful for temporary or fixed projects. For many of our readers that puts them dead in the water. Arduinos may technically be dev kits but are cheap enough to be disposed of in the project as the permanent solution – probably the norm for most of us.

[Ken] points out that for the software crowd that abhor electronics, Phidgets plays to their preferences. Phidgets clips together their pricey peripherals and the rest is all done in code using familiar modern languages and libraries. We wonder just how large this group could still be; Phidgets might have been an interesting kit years ago when the gulf between disciplines was broader but the trend these days is towards everyone knowing a little about everything. Hackaday readers probably represent that trend more than most, but let us know if that seems off.

[Ken]’s article has much more and much better detailed explanations of the experiments and the tradeoffs between the platforms.

If you enjoy watching parallel engineering, see the time-lapse video below for a split screen of the time trials.

Continue reading “Arduino Vs. Phidgets – Dev Time Trials”

Digital To Analog To Digital To Analog To Digital Conversion

[Andy] had the idea of turning a mixing desk into a MIDI controller. At first glance, this idea seems extremely practical – mixers are a great way to get a lot of dials and faders in a cheap, compact, and robust enclosure. Exactly how you turn a mixer into a MIDI device is what’s important. This build might not be the most efficient, but it does have the best name ever: digital to analog to digital to analog to digital conversion.

The process starts by generating a sine wave on an Arduino with some direct digital synthesis. A 480 Hz square wave is generated on an ATTiny85. Both of these signals are then fed into a 74LS08 AND gate. According to the schematic [Andy] posted, these signals are going into two different gates, with the other input of the gate pulled high. The output of the gate is then sent through a pair of resistors and combined to the ‘audio out’ signal. [Andy] says this is ‘spine-crawling’ for people who do this professionally. If anyone knows what this part of the circuit actually does, please leave a note in the comments.

The signal from the AND gates is then fed into the mixer and sent out to the analog input of another Arduino. This Arduino converts the audio coming out of the mixer to frequencies using a Fast Hartley Transform. With a binary representation of what’s happening inside the mixer, [Andy] has something that can be converted into MIDI.

[Andy] put up a demo of this circuit working. He’s connected the MIDI out to Abelton and can modify MIDI parameters using an audio mixer. Video of that below if you’re still trying to wrap your head around this one.

Continue reading “Digital To Analog To Digital To Analog To Digital Conversion”