Building A PDA From Scratch

Extremely powerful ARM microcontrollers have been around for ages now, but only recently have they been available for just a few dollars with a good enough toolchain for some serious development work. [Jose] wanted to develop something awesome with an ARM chip he had lying around, so he built a PDA (Spanish, translation) that can be used as a game console, an oscilloscope, a clock, or a wristwatch. Basically, it’s a portable homebrew computer that can do just about anything.

The hardware is built around an ARM Cortex M4 chip clocked at 170MHz. Included on the PCB is an SD card slot, a JTAG interface, a USB port (only used for charging the battery at this point), and a touch screen LCD controller.

After designing the PCB and enclosure, [Jose] looked around the Internet for a decent GUI library without much success. He eventually found Gwen, a lightweight library for programming GUIs that is easily ported to [Jose]’s hardware.

So far, [Jose] has a few GUI demos up and running on his homebrew PDA, but nothing very useful yet. Still, the fact that [Jose] can get a full-featured ARM tablet-like piece of hardware off the ground without a team of developers brings a smile to our face. We can’t wait to see the state of homebrew ARM devices in a few years when everyone has the requisite hardware and software knowledge.

Turning On PC Speakers Whenever There Is Music Playing

If you’re like a lot of people, most of the time your computer speakers are on without actually playing any music. This wastes a bit of power, and [Bogdan] thought he could create a circuit to cut down on that wasted electricity. The result is a very tiny auto-on circuit able fit inside a pair of speakers.

The circuit is built around the ATtiny13, very nearly the smallest microcontroller available with an on-board ADC. When music is played on the computer, the ATtiny senses a bit of voltage in the audio line and switches a relay to power the speaker.

Of course, there is always the problem of music with a high dynamic range; if the sound played from the computer has too low of a volume, the ATtiny might turn the speakers off even if music is playing. [Bogdan] solved this problem by adding a timer to his code; if nothing is detected by the ADC for three minutes, the speakers turn off.

Learning The Ins And Outs Of USB With A Simple Dev Board

We can’t count the number of projects we’ve seen on Hackaday with a USB port.  Unfortunately, most of these builds – from RepRap controllers to wireless data loggers – don’t use the full capabilities offered to them with USB. [Ben] came up with a very cool USB breakout board that allows you to explore the USB protocol with just a single inexpensive ATtiny.

Instead of relying on an FTDI chip or otherwise sending serial data down a USB pipe, [Ben]’s project is meant to be the hardware compliment to his book on programming USB devices. His hardware board is exceedingly simple, just an ATtiny 2313, a USB port, and a handful of other components, but allows [Ben] to receive data on eight pins on a breadboard and send them over USB to a computer.

[Ben] had sent in his USB figure eight controller, a board that displays the numbers 0 through 9 according to what data is received via USB, a while ago. It’s a truly useless build aside from learning how USB works, but an excellent tool if you’d like to program your own USB device.

Generating Truly Random Sequences

Your brain can’t generate random numbers, and computers can’t either. Most of the ‘random’ numbers we come across in our lives are actually pseudorandom numbers; random enough for their purpose, but ordered enough to throw statistical analyses for a loop. [Giorgio] thought generating random sequences would make for an excellent project, so he whipped up a random sequence generator out of a few Opamps, resistors, and a handful of caps.

[Giorgio] used a Chua Circuit – a circuit that models nonlinear equations – to create a chaotic system. When pairs of points from these systems of equations are plotted on a graph, a fabulous and chaotic ‘double scroll’ pattern (seen above) can be found. After taking oscilloscope probes to different points on his Chua circuit, [Giorgio] watched chaos magically appear on his ‘oscope screen.

The double scroll pattern isn’t exactly random, but since the Z signal of his circuit chaotically varies between positive and negative, the only thing needed to create a random sequence of 1s and 0s is sending the Z signal through a comparator.

After calibrating and sampling his circuit [Giorgio] captured thousands of samples at a rate of 5 samples per second. From a cursory glance, it looks like [Giorgio]’s circuit is at least as good as flipping a coin, but proper tests for randomness require many more samples.

A very, very cool piece of work that is much, much more elegant than getting random bits from a Geiger counter.

Making A Gigantic 18 Pole 16 Throw Switch

When you’re building something that hasn’t been done before, sometimes the parts you need just don’t exist.

[Bacteria] over on the Made by Bacteria forum is building a huge all-in-one video game machine, combining hardware from 16 different consoles released through the years. This build requires a way to switch the video output between consoles, so [Bacteria] made a gigantic 18 pole 16 throw switch.

The build began with [Bacteria] sourcing a few 8-pole switches. Of course this switch was too small to toggle between the 16 output lines for each system, so these switches were doubled up and activated by a single button. This system worked, but the results weren’t ideal.

[Bacteria] gave in to the temptation of building his own switch by using spring-loaded metal nuts as the contacts for each part of the switch, allowing him to switch between consoles with a simple sliding contact.

So far, it looks like [Bacteria]’s Project Unity is shaping up nicely. We’ve seen a bit of the controller portion of [Bac]’s build, and already it’s shaping up to be a wonder of retro gaming.

You can check out [Bacteria]’s breakdown of his switch after the break and his Instructable here.

Continue reading “Making A Gigantic 18 Pole 16 Throw Switch”

Prototyping With Very, Very Small ICs

Gone are the days when all the cool chips are able to be thrown into a breadboard very easily. [starlino] was working with a circuit that uses an accelerometer, but unfortunately these chips come in hard to solder LGA-16 packages. [starlino] figured out a way to prototype with these packages that doesn’t require a custom breakout board or spending any time watching a reflow oven.

[starlino]’s LGA-16 adapter board began with a piece of perf board drilled out to form a space that perfectly fits his accelerometer. A piece of tape is placed over the pads of the chip and perf board, and the gap between the chip and board is filled in with a two-part plumbers putty.

Once the putty has cured, the leads on the acclerometer are connected to the pads on the board with a silver conductive pen. After putting a few header pins in the corners of the board, [starlino] soldered the pads to the pins and had a permanent breakout board for a very small accelerometer.

It’s not by any means a pretty build, but after [starlino] sealed the entire build in liquid electrical tape and installed it in a DIP socket, he had a completely functional accelerometer in an easy to prototype package. Not bad for a breakout board that can be built from stuff just lying around a workbench.

Buying Cheaper Electronics And Not Saving Money

As an engineer at Spectrum Design in Minneapolis, [Carl] works with clients to get their product out to the masses. When designing a new USB-powered device, one client thought it would be a great idea to include a USB car charger with the device. The client promptly ordered a few thousand car chargers from China and everything was going swimmingly.

Everything was fine, of course, until [Carl] decided to test the Chinese car chargers with the client’s device. The USB PHY burnt out in short order, and the likely culprit was a shorted 12 volt regulator. This demanded a closer inspection, so after cracking open the charger [Carl] was amazed at what he found.

Yes, what you see on that circuit board is accurate. The manufacturer of these car chargers never even populated the switched mode regulator for this car USB charger.  Amazing, considering a single 10 cent 7805 DC regulator would have almost worked for this application.

If there was ever an example of being careful when purchasing the cheapest possible product to increase profit margins, this would be it.

Ever the engineer, [Carl] sent this into the tip line as a Word document. That’s available here, along with a slide show of the pictures [Carl] snapped.

Continue reading “Buying Cheaper Electronics And Not Saving Money”