70 Watt Amp Uses An ATtiny

If you’re looking for a DIY amplifier project made with a minimum of parts, this is the build for you. [Rouslan] created a 70 watt class D amplifier using an ATtiny45 and just a few dollars worth of additional components.

A class D amplifier simply switches transistors of MOSFETs on and off very rapidly. By passing the signal produced by these MOSFETs through a low pass filter and connecting a speaker, a class D amp is able to amplify a signal very efficiently. Usually, these sort of amp builds use somewhat esoteric components, but [Rouslan] figured out how to use a simple ATtiny microcontroller to drive a set of MOSFETs.

In [Rouslan]’s circuit, the audio signal is passed into the analog input of an ATtiny45. Inside this microcontroller, these analog values are sent to the MOSFETs through a PWM output. [Rouslan] threw in a few software tricks (explained in revision 2 of his build) to improve the sound quality, but the circuit remains incredibly simple.

[Rouslan] posted a video going over the function of his ATtiny amp, and from the audio demo (available after the break), we’re thinking it sounds pretty good. Amazingly good, even, if you consider how minimalistic this 70 watt amp actually is.

Thanks [Alec] for sending this one in.

Continue reading “70 Watt Amp Uses An ATtiny”

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.

Programming The ATtiny10 With An Arduino

The ATtiny10 – along with its younger siblings that go by the names ATtiny 4, 5, and 9 – are the smallest microcontrollers Atmel makes. With only 32 bytes of RAM and 1 kB of Flash, there’s still whole lot you can do with this tiny six-pin chip. [feynman17] figured out a way to program this chip using an Arduino, allowing him to throw just about anything at this absurdly small microcontroller.

The ATtiny10 doesn’t use the familiar ISP programming header found on other Atmel-based boards. Instead, it uses the exceedingly odd Tiny Programming Interface to write bits to the Flash on the chip. [feynman17] realized he could use the Arduino SPI library to communicate with this chip and built a small programming shield with just a few resistors and a 8-pin DIP socket to mount an ATtiny10 breakout board.

After writing a sketch to upload a .hex file from the Arduino serial console, [feynman] had a programmed ATtiny10, ready to be dropped into whatever astonishingly small project he had in mind.

As for what you can do with this small microcontroller, chiptunes are always an option, as is making a very, very small Simon clone. It may not be a powerhouse, but there’s still a lot you can do with this very inexpensive microcontroller.

Genezap Improves Your Video Game Skills Using Corporal Punishment

genezap

As if getting your ass handed to you while playing video games wasn’t annoying enough, [furrtek] decided that the best way to help improve his skills was by inflicting physical pain each time his on-screen character died.

While perusing the Internet looking for something to break through the doldrums of the day, he came upon a video in which someone decided to try on a dog shock collar just for kicks. This sparked [furrtek’s] imagination, and he started to think that it would be pretty cool to use the same sort of device to make dying in a video game that much more unpleasant.

After ordering a set of collars online, he tore them apart to see how they functioned, and to measure just how big of a jolt they were able to deliver. [furrtek] then modified two Genesis controllers with a pair of ATtiny 25s, which let him send the fire signal to the collars. Unfortunately, stock Genesis games don’t allow you to send signals to the controllers, so [furrtek] had to spend some time hacking ROM images to trigger events when players are injured or lose a life.

We think the project is pretty slick, and if you don’t mind fiddling with your old controllers, you too can have a merciless trainer strapped around your neck. For those slightly more averse to pain, you can watch [furrtek] and his friend [Dyak] suffer the consequences of poor gameplay for your amusement.

Continue reading “Genezap Improves Your Video Game Skills Using Corporal Punishment”

Bench Power Supply Resetting Thingy

As is common among some hackers, [Henry] re-purposed an ATX power supply unit to function as a bench power supply for testing circuits on a breadboard (much like this fancy example).

However, safety mechanisms on some modern PC PSUs do not automatically reset after over-current protection has kicked in, which soon became annoying for [Henry]. In order to make his power supply more hacker-friendly, he wired up and programmed an ATtiny85V, using some Arduino libraries, to do that for him. This simple project is a great example of using a hack to improve a pre-existing hack.

Do Anything With The Help Of Lucid Dreaming Goggles

In the world of your dreams, you can build an entire world, an entire universe, an entire society governed by your every whim. While lucid dreaming you are a god in your own mind, free to create or destroy at will. You can train yourself to recognize when you are dreaming, but sometimes a little technological help can speed you towards the path of becoming an old testament god. [Will] over at revolt lab built a set of lucid dreaming goggles so he could take control of his own dreams.

To induce a lucid dream, [Will] took a pair of safety goggles and attached red LEDs to shine into his closed eyes. A simple circuit was constructed out of an ATtiny85 that blinks the LEDs two hours after being turned on. The idea is these LEDs will be noticed by the user during REM sleep and they will realize they’re still sleeping. After that, it’s basically Inception.

It is possible to induce lucid dreaming through psychological and not technological hacks; just asking yourself, ‘am I dreaming’ throughout the day may be enough to make a holodeck in your mind while you’re sleeping. You can check out a video of [Will] wearing his goggles after the break.

Continue reading “Do Anything With The Help Of Lucid Dreaming Goggles”