A Beginner’s Guide To LED Matrices

led_tutorial

[Rajendra Bhatt] wrote in to share a tutorial he put together demonstrating the basics of using LED dot matrix displays. While this subject might be old hat to many out there, his helpful walkthroughs are geared more towards beginners who are exploring various electronics concepts for the first time.

He explains the theory behind LED displays using a PIC-driven 5×7 matrix as an example. He discusses persistence of vision and how tricking the human eye can save you quite a bit of time and a whole lot of pins. Multiplexing is broken down into its most basic steps, which [Rajendra] illustrates by showing how a letter would be drawn on the LED display one column at a time. The use of a ULN2803A Darlington Array is also discussed, and he details why it is used when pulling the five columns of LEDs to ground.

The only portion of the tutorial we thought could be expanded upon was the programming section. While he does show how each letter of the alphabet can be displayed via a series of five hex values, he does not cover the “why” part of the process. Obviously while anyone familiar with binary and hex can figure it out in pretty short order, we think that it would be a great place to pause and expand the readers’ knowledge even more.

Overall it’s a useful tutorial, and most beginners would likely find it quite helpful.

Intermediate Concepts: Building Discrete Transistor Gates

[Simon Inns] has put together a lesson in digital logic which shows you how to build your own gates using transistors. The image above is a full-adder that he fabricated, then combined with other full adders to create a 4-bit computer.

Don’t know what a full adder is? That’s exactly what his article is for, and will teach you about binary math and how it is calculated with hardware. There’s probably at least a week’s worth of studying in that one page which has been further distilled into the five-minute video after the break. Although building this hardware yourself is a wonderful way to learn, there’s a lot of room for error. You might consider building these circuits in a simulator program like Atanua, where you can work with logic gate symbols, using virtual buttons and LEDs as the outputs. Once you know what you’re doing with the simulator you’ll have much more confidence to start a physical build like the one [Simon] concocted.

Finding this project a little too advanced? Check out our Beginner Concepts articles to help get you up to speed.

Continue reading “Intermediate Concepts: Building Discrete Transistor Gates”

FET: The Friendly Efficient Transistor

If you ever work with a circuit that controls a decent amount of current, you will often encounter a FET – a Field-Effect Transistor. Whether you want to control a couple of powerful LEDs, switch a USB device on and off, or drive a motor, somewhere in the picture, there’s usually a FET doing the heavy lifting. You might not be familiar with how a FET works, how to use one and what are the caveats – let’s go through the basics.

Here’s a simple FET circuit that lets you switch power to, say, a USB port, kind of like a valve that interrupts the current flow. This circuit uses a P-FET – to turn the power on, open the FET by bringing the GATE signal down to ground level, and to switch it off, close the FET by bringing the GATE back up, where the resistor holds it by default. If you want to control it from a 3.3 V MCU that can’t handle the high-side voltage on its pins, you can add a NPN transistor section as shown – this inverts the logic, making it into a more intuitive “high=on, low=off”, and, you no longer risk a GPIO!

This circuit is called a high-side switch – it enables you to toggle power to a device at will through a FET. It’s the most popular usecase for a FET, and if you’re wondering more about high-side switches, I highly recommend this brilliant article by our own [Bil Herd], where he shows you high-side switch basics in a simple and clear way. For this article, you can use this schematic as a reference of how FETs are typically used in a circuit.

Continue reading “FET: The Friendly Efficient Transistor”

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”

Skittle Sorter Makes Long Task Shorter

One of the most common complaints fielded by the agents of Big Candy regards the non-homogenous nature of their products. Skittles and M&Ms are two egregious offenders in this area, and it’s left up to the determined consumer to handle sorting these candies themselves. Of course, you can always do it by hand, but as we all know – machines will do the work.

This Skittle sorter is the creation of [Lewis] of [DIY Machines], and it’s a build targeted at the beginner level. Constructed out of cardboard, it uses a pair of servos to handle the transport of the candies into their requisite colored bins, via a rotating disc and chute. Skittles are scanned with a TCS34725 color scanner hooked up to an Arduino Nano, which changes the angle of the output chute to dump the candy in the proper location. The hopper is able to handle a standard 180 gram bag of Skittles without problems.

[Lewis] does a great job explaining each stage of the build, from the mechanical and electronic side of things, to the required calibrations to make everything play together nicely. The project teaches builders a multiude of useful lessons, like how to use limit switches and other concepts of automation.  We’ve featured [Lewis] on these pages before, too; his stylish shelf clock is a particular delight. Video after the break.

Continue reading “Skittle Sorter Makes Long Task Shorter”

Hitchhiking To The Moon For Fun And Profit

On February 22nd, a Falcon rocket lifted off from Cape Canaveral carrying the Indonesian communications satellite Nusantara Satu. While the satellite was the primary payload for the mission, as is common on the Falcon 9, the rocket had a couple of stowaways. These secondary payloads are generally experiments or spacecraft which are too small or light to warrant a rocket of their own such as CubeSats. But despite flying in the economy seats, one of the secondary payloads on this particular launch has a date with destiny: Israel’s Beresheet, the first privately-funded mission to attempt landing on the Moon.

But unlike the Apollo missions, which took only three days to reach our nearest celestial neighbor, Beresheet is taking a considerably more leisurely course. It will take over a month for the spacecraft to reach the Moon, and it will be a few weeks after that before it finally makes a powered descent towards the Sea of Serenity, not far from where Apollo 17 landed 47 years ago. That assumes everything goes perfectly; tack a few extra weeks onto that estimate if the vehicle runs into any hiccups on the way.

At first glance, this might seem odd. If the trip only took a few days with 1960’s technology, it seems a modern rocket like the Falcon 9 should be able to make better time. But in reality, the pace is dictated by budgetary constraints on both the vehicle itself and the booster that carried it into space. While one could argue that the orbital maneuvers involved in this “scenic route” towards the Moon are more complicated than the direct trajectory employed by the manned Apollo missions, it does hold promise for a whole new class of lunar spacecraft. If you’re not in any particular hurry, and you’re trying to save some cash, your Moon mission might be better off taking the long way around.

Continue reading “Hitchhiking To The Moon For Fun And Profit”

Supercon: How Many Hardware Talks Can Be Packed Into One Conference?

How can we fit so many impressive talks onto two stages at the Hackaday Superconference? We’ll be bursting at the seams in November as the hardware world gathers in Pasadena for this annual pilgrimage. This year’s Supercon will have more talks and workshops than ever before!

This is the Ultimate Hardware Conference and you need to be there! We’ll continue to announce speakers and workshops as final confirmations come in. Supercon will sell out so grab your ticket now before it’s too late.

Ken Shirriff
Studying Silicon: Reverse Engineering Integrated Circuits

From the outside, integrated circuits are mysterious black boxes. Here’s how to open up some famous analog and digital chips including 8008 microprocessor, 555 timer, the first FPGA chip, Intel’s first RAM, the 76477 sound effects chip, and a counterfeit RAM chip.

Jennifer Wang
Building IMU-based Gesture Recognition

If you combine IMUs with machine learning (ML), you can detect gestures! Experimenting with these devices that sense both motion and orientation is a great way to get ML into your hacker toolkit.

Michael Schuldt
Adventures in Manufacturing Automation

A software engineer explores manufacturing automation, featuring complex software solutions and redemption in the form of reusable hardware components.

Adam McCombs
A Hacker’s Guide to Electron Microscopy

Working on electron microscopes means learning about everything from analog and digital circuit repairs, to how to rig and transport scopes, servicing 120KV+ high voltage tanks, and working on complex high vacuum systems.

Justin McAllister
Simple Antennas to Survive the Zombie Apocalypse

From $10 USB software defined radios to cheap imported transceivers, it’s easier than ever to have a multi-purpose radio in your lab. Low cost antennas can be built by beginners easily to send and receive radio signals from frequencies covering worldwide HF to local VHF, UHF, and microwave.

Alex Glow
What Went Wrong with Archimedes (the Robot Owl)?

Building a wearable, AI-powered robotic owl, is both easier and harder than it looks. Explore the challenges of 3D printing, coding, and how to confront them with creativity.

Kerry Scharfglass
The Economics of Conference Badges at Medium Scale

Discover manufacturing processes and make decisions with an eye towards economics. Buying 30,000 RGB LEDs, using big red arrows to communicate through a translator, and more!

 

Jeremy Hong
Electronic Warfare: A Brief Overview of Weaponized RF Designs

Whether you are trying to avoid having a multi-million dollar fighter jet from being shot down or avoid a speeding ticket from law enforcement , the same radar and electronic warfare equations and concepts apply.

We Want You at Supercon!

The Hackaday Superconference is a can’t-miss event for hardware hackers everywhere. Join in on three amazing days of talks and workshops focusing on hardware creation. This is your community of hardware hackers who congregate to hack on the official hardware badge and on a slew of other projects that show up for the fun. Get your ticket right away!