Electronic Dice Is Introduction To Microcontroller Programming

By now most of us are familiar with the Arduino platform. It’s an inexpensive and fairly easy way into the world of microcontrollers. For plenty of projects, there’s no need to go beyond that unless you have a desire to learn more of the inner workings of microcontrollers in general. [Cristiano] was interested in expanding some of his knowledge, so he decided to build this electronic dice using a PIC microcontroller instead of the Arduino platform he was more familiar with.

As a result, this project is set up as a how-to for others looking to dive further into the world of microcontrollers that don’t have the same hand-holding setup as the Arduino. To take care of the need for a random number for the dice, the PIC’s random number generator is used but with the added randomness of a seed from an internal timer. The timer is started when a mercury tilt switch signals the device that it has been rolled over, and after some computation a single digit number is displayed on a seven-segment display.

While it might seem simple on the surface, the project comes with an in-depth guide on programming the PIC family of microcontrollers, and has a polish not normally seen on beginner projects, including the use of the mercury tilt switch which gives it a retro vibe. For some other tips on how to build projects like this, take a look at this guide on how to build power supplies for your projects as well.

Continue reading “Electronic Dice Is Introduction To Microcontroller Programming”

One Stepper Plus A Whole Bunch Of Magnets Equals A Unique Seven-Segment Display

Sometimes the cost of simplicity is extra complexity. It seems counterintuitive, but it seems to be true. And this single-motor mechanical seven-segment display seems to be a perfect example of this paradox.

On second thought, [aeropic]’s mechanism isn’t really all that mechanically complicated, but there sure was a lot of planning and ingenuity that went into it. The front has a 3D-printed bezel with the familiar segment cutouts, each of which is fitted with a pivoting segment, black on one side and white on the other.

Behind the bezel is a vertical shaft with three wheels, one behind each horizontal segment, and a pair of horizontal shafts, each with two wheels behind each vertical segment. The three shafts are geared to turn together by a single stepper in the base. Each wheel has ten magnets embedded in the outer circumference, with the polarity oriented to flip the segment in front of it to the right orientation for the current digit. It’s probably something that’s most easily understood by watching the video below.

We’ve seen quite a few of these mechanical seven-segment displays lately — this cam-and-servo mechanism comes to mind. We love them all, of course, but the great thing about [aeropic]’s display is how quiet it is — the stepper is mostly silent, and the segments make only a gentle clunk when they flip. It’s very satisfying.

Continue reading “One Stepper Plus A Whole Bunch Of Magnets Equals A Unique Seven-Segment Display”

Mechanical 7-segment display

A One-Servo Mechanical Seven-Segment Display

The seven-segment display may be a bit prosaic after all these years, but that doesn’t mean there aren’t ways to spice it up. Coming up with a mechanical version of the typical photon-based display is a popular project, of which we’ve seen plenty of examples over the years. But this seven-segment display is quite a mechanical treat, and a unique way to flip through the digits.

With most mechanical displays, we’re used to seeing the state of each segment changed with some kind of actuator, like a solenoid or servo. [Shinsaku Hiura] decided on a sleeker design using a 3D-printed barrel carrying one cam for each segment. Each hinged segment is attached to an arm that acts as a follower, riding on its cam and flipping on or off in a set pattern. Which digit is displayed depends on the position of the barrel, which is controlled with a single servo and a pair of gears. It trades mechanical complexity for electrical simplicity and overall elegance, and as you can see from the video below, it’s pretty snappy.

We think the best part of this build is figuring out the shape of the cams. We wonder how they compare to the cam profiles in [Greg Zumwalt]’s mechanical display; it uses two separate discs with grooves, but the principle is pretty much the same.

Continue reading “A One-Servo Mechanical Seven-Segment Display”

mechanical seven segment display

Mesmerizing Mechanical Seven-Segment Display

Seven-segment displays are ubiquitous. From where I’m writing this, I can see several without even having to swivel my chair. We’re all familiar with their classic visage; slightly italicized numbers that are brought to life by LEDs. There are a boatload of variants available– you can get displays with a decimal point, ones with multiple numbers, and even versions in just about any color you desire, but at the core they’re all basically the same thing- an array of LEDs sitting behind a faceplate. Except for those ones that have some gears inside.

Wait, what?

You read that right– a seven-segment display that contains gears, along with a handful of cams for good measure. Artist [Kango Suzuki] created this stunning all-mechanical seven-segment display that sequentially counts up from zero to nine when a thumbwheel is spun. All of the components are cut from wood and mesh together beautifully, complete with a satisfying click when the display rolls into a new digit, which you can hear in the video at the above link. You may recognize [Kango]’s style from this incredible mechanical clock he made a few years back. Unlike his earlier work, the seven-segment display is tiny, relatively speaking. Maybe we’ll see it integrated into a larger project some day, like a mechanical-digital clock.

We just love when somebody uses intricate mechanisms to artfully emulate some piece of existing tech. This isn’t even the first time we’ve seen a mechanical seven-segment display; [Peter LehnĂ©r] built one back in 2019, and judging by [Kango]’s twitter feed, it appears to have inspired his design. There have even been a few other 3D printed ones over the years, but as far as we know this is the first wooden one– and, in true [Kango] fashion, its beautiful.

Thanks to [J. Peterson] for the tip!

Continue reading “Mesmerizing Mechanical Seven-Segment Display”

Mechanical Seven-Segment Display, Smaller And Better Than The Original

One thing we love here at Hackaday is when we get to track the evolution of a project over time. Seeing a project grow over time is pretty typical — scope creep is real, after all. But watching a project shrink can be a real treat too, as early versions get refined into sleeker and more elegant solutions.

This slimmed-down mechanical seven-segment display is a perfect example of that downsizing trend. When we saw [IndoorGeek]’s first vision of an electromechanical display, it was pretty chunky. Then as now, each segment is a 3D-printed piece with a magnet attached to the rear. The segments hover over solenoid coils, which when energized repel the magnet and protrude the segment, forming the desired digit. The old version used large, hand-wound coils, though, making the display pretty bulky front to back.

Version 2 of the display takes a page from [Carl Bugeja]’s playbook and replaces the wound coils with PCB coils. We’ve seen [Carl]’s coils on both rigid substrates and flex PCBs; [IndoorGeek] used plain old FR4 here. The coils occupy four layers so they have enough oomph to extend and retract each segment, and the PCB includes space for H-bridge drivers for each segment. The PCB forms the rear cover for the display, which is also considerably slimmed down for this version. What’s the same, though, is how good this display looks, especially with strong side-lighting — the shadows cast by the extended segments are striking against the plain white face of the display.

Congratulations to [IndoorGeek] on a great-looking build and a useful improvement over the original.

Continue reading “Mechanical Seven-Segment Display, Smaller And Better Than The Original”

DIY 8-Bit Computer Knows All The Tricks

Some projects are a rite of passage within their respected fields. For computer science, building one’s own computer from scratch is certainly among those projects. Of course, we’re not talking about buying components online and snapping together a modern x86 machine. We mean building something closer to a fully-programmable 8-bit computer from the ground up, like this one from [Federico] based on 74LS logic chips.

The computer was designed and built from scratch which is impressive enough, but [Federico] completed this project in about a month as well. It can be programmed manually through DIP switches or via a USB connection to another computer, and also includes an adjustable clock which can perform steps anywhere from 1 Hz to 32 kHz. Complete with a 1024 byte memory, a capable ALU, four seven-segment LEDs and (in the second version of the computer) a 2×16 LCD disply, this 8-bit computer has it all.

Not only is this a capable machine designed by someone who clearly knows his way around a logic chip, but [Federico] has also made the code and schematics available on his GitHub page. It’s worth a read even without building your own, but if you want to go that route without printing an enormous PCB you can always follow the breadboard route.

Thanks to [killergeek] for the tip!

Continue reading “DIY 8-Bit Computer Knows All The Tricks”

A Unique Display Makes An Unusual Clock

Do you know the clock speed of the computer you’re reading this article on? Maybe Hackaday readers are more likely to reply “Yes!” to that question than the general public, but if there’s a takeaway it’s that for most computer users their clock speed is now an irrelevance. It’s quick enough for the job in hand and that’s all that matters. This was not always the case though, and a few decades ago the clock speed of a PC was its major selling point. Beige boxes would have seven-segment displays lit up with the figure, and it was an unusual example of one that [Ken Yap] used to produce a clock that he believes is one-of-a-kind; unless by some slim chance somebody else has rescued the same part.

The displays were hard wired without any signals from the processor, and what makes this one unusual is that as well as having a couple of digits in yellow it also sports a segmented “MHz” in red. This would have been quite a big deal on your 486 back in about 1994. To make a clock from this unpromising start required a little creative thinking, and he manages it by using the “M” and the “H” digits to represent minutes and hours, and displaying each figure in turn. The display is wired on a piece of protoboard with an STM8 dev board, and yes, as you can see in the very short video below the break, it does tell the time.

Custom displays are more usually seen in the world of LCDs than LEDs, so this one remains a rarity on these pages. Happily there are projects out there in which people spin their own takes on the idea.

Continue reading “A Unique Display Makes An Unusual Clock”