Posts with «trinket» label

Understanding Custom Signal Protocols with Old Nintendos

For retro gaming, there’s really no substitute for original hardware. As it ages, though, a lot of us need to find something passable since antique hardware won’t last forever. If a console isn’t working properly an emulator can get us some of the way there, but using an original controller is still preferred even when using emulators. To that end, [All Parts Combined] shows us how to build custom interfaces between original Nintendo controllers and a PC.

The build starts by mapping out the controller behavior. Buttons on a SNES controller don’t correspond directly to pins, rather a clock latches all of the button presses at a particular moment all at once during each timing event and sends that information to the console. To implement this protocol an Adafruit Trinket is used, and a thorough explanation of the code is given in the video linked below. From there it was a simple matter of building the device itself, for which [All Parts Combined] scavenged controller ports from broken Super Nintendos and housed everything into a tidy box where it can be attached via USB to his PC.

While it might seem like a lot of work to get a custom Nintendo controller interface running just because he had lost his Mega Man cartridge, this build goes a long way to understanding a custom controller protocol. Plus, there’s a lot more utility here than just playing Mega Man; a method like this could easily be used to interface other controllers as well. We’ve even seen the reverse process where USB devices were made to work on a Nintendo 64.

Dedicated Button for Toggling Screens

Anyone who regularly presents to an audience these days has known the pain of getting one’s laptop to work reliably with projection hardware. It’s all the more fraught with pain when you’re hopping around from venue to venue, trying desperately to get everything functioning on a tight schedule. [Seb] found that the magic keystrokes they used to deal with these issues no longer worked on the Macbook Pro Touchbar, and so a workaround was constructed in hardware.

The build itself is simple – an Adafruit Trinket serves as the brains, with a meaty 12mm tactile button used for input. The Trinket emulates a USB keyboard and sends the Cmd-F1 keypress to the computer when the button is pressed. The button’s even mounted in a tidy deadbugged fashion.

While it’s not at all complicated from a build standpoint, the key to this project is that it’s a great example of using the tools available to solve real-life problems. When you’re in a rush with 300 people waiting for your talk to start, the last thing you need to be worrying about is a configuration issue. [Seb] now has a big red button to mash to get out of trouble and get on with the job at hand. It does recall this much earlier hack for emulating a USB keyboard with an Arduino Uno or Mega. It’s a useful skill to have!

 


Filed under: news

Netflix and Chill – and Socks?

Waking up to spoilers in the last episode after falling asleep during the first episode of a Netflix binge-watching session ranks right up there on the list of first-world problems. Luckily there’s a solution in the form of a pair of Netflix enabled socks, which looks like a pretty neat wearable IoT project.

To be sure, calling these socks Netflix enabled is a bit of a stretch. Aside from the sock designs, which are based on popular Netflix original series, there’s nothing about the electronics that’s specific to the popular streaming service. These socks, with their Arduino Pro Trinket and accelerometer, detect when you stop moving and send an IR signal to do your bidding – pause the movie, kill the TV, or whatever. The electronic side of the build is pretty approachable – it’s just a couple of modules soldered together. The fiber arts side of the project might be a little outside the wheelhouse of the typical hardware hacker, but you can either team up with someone who knits – an experienced knitter, as socks are not a beginner’s pattern – or just slip the felt-clad hardware into your favorite comfy socks. We’d be a bit concerned about ESD protection for the hardware in the wooly environment, though.

“Netflix and chill” is the current version of last century’s “Watching the submarine races,” and as such the need for special socks or a custom Netflix switch for the occasion is a bit puzzling. Still, the underlying wearables idea is pretty good, with plenty of possibilities for expansion and repurposing.

[Thanks for the tip, Lizzy!]


Filed under: home entertainment hacks, misc hacks

Hacklet 29 – Altoids Mint Tin Projects

Altoids – they’ve been around since King George III was on the throne. These curiously strong mints have had a storied history, a copy of which is included in every tin. They taste pretty good, but most hackers and makers are more interested in the pocket-sized tin than the mints themselves. It may have been the ham radio operators who first used Altoids tins to hold their sensitive transmitter and receiver circuits. The metal case makes a perfect electromagnetic field shield. It wasn’t long before the tins found their way into thousands of projects. This week’s Hacklet features some of the best projects with Altoids (and other mint) tins on Hackaday.io!

We start with [Chad Lawson] and the Networking Group Timing Light. [Chad] has a networking meeting where each member has two minutes to introduce themselves. As is the case with most meetings, people tend to be a bit long-winded, running well beyond their allotted two minutes. The timing light contains an RGB LED which changes from green to yellow to red as a speaker’s time ticks away. The timer is reset by simply tilting the mint tin. [Chad] is hoping that the timer will serve as a gentle reminder to keep everyone on track time-wise.

 

Next up is [Rjpope42] and his AM/FM Transmitter Pair. [Rjpope42] loves vintage tube radios, and wants to send his own signals to his amber glowing projects. Wiring an external audio input to a tube radio is pretty easy, but nothing beats a simple AM transmitter for convenience. Small FM transmitters are commonly available to add an MP3 player input to cars without an AUX audio in, but their AM counterparts have become rare. [Rjpope42] has built AM and FM transmitters, each of which will fit in a Mint Tin case. The AM transmitter can run on 9V or 12V, and even includes a USB power output for charging an MP3 player or phone!

[John Hamann] entered Distance Analyzer 3000 in the Trinket EDC contest. While he didn’t win, it was still a great project, especially since this is [John’s] first serious Arduino project. The idea is to use a rotary encoder with a wheel to measure distances. Think of it like a mini version of a surveyor’s walking wheel. The Pro Trinket counts the pulses from the rotary encoder, then converts this to a distance in feet. We’d love to see [John] continue on the project. An ultrasonic distance sensor would be a great addition for multi-sensor distance reads!

 

Finally, we have [colonwq] with TTTOTP, a pro trinket Time based One Time Password (TOTP) generator. [colonwq] used the trinket to implement the well-known time based one time password algorithm. To implement a project like this, you need a stable time source. The ATmega328 isn’t very good at this, so [colonwq] used a Dallas DS1307 clock chip to keep track of things. The actual code is displayed on a 4 digit 7 segment display. When the button is pressed, the first half of the code is displayed. Once the button is released, the second half of the code is displayed for several seconds.

 

Need more mint? Check out our curiously awesome mint tin project list!

Hackaday.io Update and MeArm Giveaway

Hackaday.io has a few new features, including @username and #projectID. If you mention someone’s username with an @ in front of it, that user will get a notification in their stack. The same goes with mentioning a project ID with a # up front. To celebrate this, we’re giving away a pair of  special edition MeArms. All you have to do is leave a comment using the features on this project log. Huge thanks to [Jasmine] for setting all this up, and to [Ben] for letting us hijack his project for the week!

That’s it for this Hacklet, As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!


Filed under: Hackaday Columns

What Is This, A Microcontroller Board For Ants?

You youngins probably don’t remember this, but a few years ago there was an arms race on Kickstarter to create the smallest Arduino-compatible microcontroller board. Since then, a few people have realized they can make more money on Kickstarter through fraud or potato salad, and the race to create the smallest ‘duino board petered out.

It’s a shame [Meizhu] wasn’t part of the great miniature Arduinofication of Kickstarter, because this project would have won. It’s an Atmel ATtiny85, with USB port, resistors, diodes, reset button, LED, and pin headers, that is just 72 mils larger than the PDIP package of the ‘tiny85. Outside of getting a bare die of ‘tiny85s, there isn’t much of a chance of this board becoming any smaller.

[Meizhu] was inspired to create this board from [Tim]‘s Nanite 85, which up until a few days ago was the current champion of micro microcontroller boards. With a bit of work in KiCAD, the new board layout was created that is just a hair larger than the 0.4″ x 0.4″ footprint of the PDIP ATtiny85. There were a few challenges in getting a working board this small; you’d be surprised how large the plastic bits around pin headers are, but with some very crafty soldering, [Meizhu] was able to get it to work.


Filed under: ATtiny Hacks

New Project: Model, Modify, and Make ModULO

When Evil Ninja Monster Ballerinas attack - ModULO can save the day! Build this 3D printed robot action figure for yourself.

Read more on MAKE

The Smallest ATtiny85 Based USB Board

“Possibly the smallest ATtiny85 based ‘duino derivative”. Indeed! When Olimex announced the Olimexino 85s as the smallest Arduino ever, [Tim] took that as a challenge. His very small Arduino based USB devboard is quite a bit smaller than the Olimexino!

The Nanite 85 was carefully designed to be both small and functional. Not only is it 20% smaller than the Olimexino, but also sports a reset button! One of the coolest aspects of this design is that it has the same pinout and size as a DIP ATtiny85. This means that you can use the Nanite 85 for developing your code with the USB bootloader, and then you can directly replace it with a standard (pre-programmed) ATtiny85. The major downside to using this device over the aforementioned devices, is that it does not include a voltage regulator for powering the device via USB (or battery), the device is simply hooked directly to the 5V rail from the USB connector.

We can’t help but be impressed with this well-thought-out design. It is also easy to assemble since it uses larger surface mount components. If smaller components were used, even more features (such as a regulator) could be included. Do you have an even smaller USB Arduino? The race is on for the smallest Arduino ever!


Filed under: Arduino Hacks