Interfacing With A Digital Speedometer

After swapping the engine out in his scooter, [James Stanley] made an unfortunate discovery. The speedometer was digitally controlled, and while the original engine had a sensor which would generate pulses for it to interpret, his new engine didn’t. Learning that the original sensor would pull the signal wire to ground each time it detected a tooth of one of the spinning gears, [James] reasoned he needed to find a way to detect the scooter’s speed and create these pulses manually.

To find the scooter’s speed, he installed a magnet on the front wheel and a hall effect sensor on the fork to detect each time it passed by. Since the wheel is of a known circumference, timing the pulses from the sensor allows calculation of the current speed. A GPS receiver could be used if you wanted fewer wires, but the hall effect sensor on the wheel is simple and reliable. With the speed of the scooter now known, he needed to turn that into a signal the speedometer understands.

Speedometer controller potted with resin.

[James] wrote a program for an ATmega that would take the input from the wheel sensor and use it to create a PWM signal. This PWM signal drives a transistor, which alternates the speedometer sensor wire between low and floating. With a bit of experimentation, he was able to come up with an algorithm which equated wheel speed to the gearbox speed the speedometer wanted with accuracy close enough for his purposes.

While the software side of this project is interesting in its own right, the hardware is an excellent case study in producing robust electronic devices suitable for use on vehicles. [James] 3D printed a shallow case for the circuit board, and potted the entire device with black polyurethane resin. He even had the forethought to make sure he had a debugging LED and programming connector before he encapsulated everything (which ended up saving the project).

While the specific scenario encountered by [James] is unlikely to befall others, his project is an excellent example of not only interfacing with exiting electronics but producing rugged and professional looking hardware without breaking the bank. Even if scooters aren’t your thing, there are lessons to be learned from this write-up.

For all you two wheeled hackers out there, we’ve covered similar projects designed for bicycles, as well as some very slick digital speedometer mods for motorcycles.

Using A Jewelry Kit To Resin-Encase Electronics

clear-cast-squareSome of us have looked at clear resin jewelry casting kits online and started to get ideas. Hackaday’s own [Nava Whiteford] decided to take the plunge and share the results. After purchasing a reasonably economical clear resin jewelry casting kit from eBay, a simple trial run consisted of embedding a solar lantern into some of the clear resin to see how it turned out. The results were crude, but promising. A short video overview is embedded below.

The big hangup was lack of a proper mold. [Nava]’s attempt to use a plastic bag and a cup as an expedient stand-in for a proper mold was not without its flaws, and the cup needed to be broken before the cured resin could be removed. Despite this, the results were good; the mixing needed careful measurement and the curing process was lengthy but the cured resin is as attractive as the advertisements promise. Mixing introduced many air bubbles into the mixture, but most of them seemed to disappear on their own during the curing process. The results of this quick test may not be pretty, but the resin seems to have held up its end of the bargain and delivered the expected smooth, clear finish.

Continue reading “Using A Jewelry Kit To Resin-Encase Electronics”