JTAG dongle pushes code to FPGA after bootup

This gnarly beast has near-magical qualities. [Sprite_TM] patched it together as a dongle which attaches to a JTAG header (we’re fairly certain this is not a standard footprint for that interface though). He uses it to push code to an FPGA after that device boots. Why? Well, there’s several reason, but the most generic answer is that some boards will not boot unless there is a chain of trust that validates the code which will be running.

In this case, [Sprite_TM] is using a knock-off board he acquired from a Chinese supplier. It’s a hardware network terminal (thin client), and as you can see in the video after the break, it works just fine. But that’s pretty boring and he wanted to use it for his own purposes. When he plugs in the dongle and powers up the board the network terminal is nowhere to be found, replaced with the code to play Pac-Man as if were a full arcade cabinet.

The dongle is simply a female DIL header, an ATtiny85, and a flash memory chip. The AVR has a software UART that speaks XSVF, the protocol used to push data to the FPGA. The data to be written is stored in the memory chip, and with that header in place reprogramming the AVR is just a matter of connecting an ISP programmer. Brilliant!

[Read more…]

Using a cheap accelerometer with Arduino comes with a catch

[Boris Landoni] put together a guide to using an inexpensive 3-axis accelerometer with Arduino. The chip that he chose for the exercise is an MMA7455L made by Freescale. It’s got a lot of nice features packed into it, using hardware to do some of the things you’d need software for with other chips like reporting in which direction the chip is moving, detecting when movement has stopped, and few others. It’s an I2C device, so the examples he provides will be super simple to port to your uC of choice.

But as the title says, there’s a catch. The chip is extremely versatile and you can get your hands on one for under $2. But check out the size of it. That’s a DFN (dual flat no-lead) package which means there are no pins on it. The package has solder contacts on the bottom which do not protrude out the sides. If you want to do some at-home prototyping with the chip you’ll need a hot air pencil or reflow gear as hand soldering is unlikely to be successful. We’re not saying it’s impossible, but it is quite tricky.

Of course, if you’ve got the secret to getting this done with a quality soldering iron we’d like to hear about it.

The Ultimate Breadboard – a prototyping station that has it all

ultimate-breadboard

[Claudio] was working on a homebrew oscilloscope project when he started thinking about how unsuitable a standard breadboard is for a large-scale project. Rather than adding components on top of components until they became what he lovingly calls a “fragile, unforgiving crapstack”, he decided to build himself the Ultimate Breadboard.

He packed so much into his design, that it’s honestly hard to know where to begin describing it. Aside from an appropriately large breadboarding surface embedded in the center of the console, he added a power supply to the left hand side, which sits just below an Avr-Net-IO board. The right side of the console features an Arduino NG, and a pair of level converters. He also added some LED-based VU meters, a couple of 7-segment displays, an LCD display, an analog voltmeter, along with plenty of I/O connectors.

The Ultimate Breadboard might look a bit daunting at first, but it seems like an awesome setup on which to do any sort of prototyping. Be sure to check out the video below for more details and to see [Claudio] give a tour of the device.

[Read more…]

Learning to use the V-USB (AVR USB firmware) library

The V-USB library is a pretty handy piece of code that lets you add USB connectivity to ATtiny microcontrollers (it was previously named tinyUSB). But if you’ve ever looked into adding the library to your own projects you may have been stymied by the complexity of the code. There are many examples, but there’s a lack of a concise quick-start for the uninitiated. [Joonas Pihlajamaa] has been working to correct that shortfall with his four-part V-USB tutorial series. It’s not for the absolute newbie; you should already be comfortable working with AVR chips but that’s the only real prerequisite we can see.

He starts the series with a look into the hardware considerations. USB provides a 5V power rail but the data lines expect 3.3V logic so this must be accounted for. With the test rig built on a breadboard he moves on to pick apart the code, covering various user-defined variables that you’ll need to set based on your project’s needs. We’re going to keep this on the back burner and hopefully the Troll Sniffing Rat will get a makeover (although we must say comments have been a lot nicer as of late… keep it up!).

We’ve embedded links to all four tutorial parts after the break.

[Read more…]

Bring your own name badge

It used to be that the contents of your pocket protector directly mirrored your geek level. But that just doesn’t cut it in our fast-paced digital age. We think [Jonathan] is headed down the right track though, by creating a scrolling LED name badge which he takes to conventions with him. With the right enclosure this could reach the same geek level as Woz’s watch. There’s a lot packed into the little device, but readability at close range doesn’t look like one the features so make sure you glance at the tag before you approach him for a conversation.

As you can see, the PCB for the project is the same form factor as a landscape ID card. It hosts an 8×5 LED matrix, which meshes nicely with the registers of the MSP430 chip which runs it. He admits that the hardware may not last very long as the chip is multiplexing the display directly, with no resistors or LED drivers for current protection. But there is potential in the design. It uses a rechargeable battery (which we like) and he included a QR code in the board artwork for easy exchange of contact information. We’ve embedded his description of the project after the break. [Read more…]

WiFi experiments with ATtiny microcontrollers

[Quinn Dunki] got some free stuff from Element14 to evaluate, including this Mircrochip WiFi module. It’s been used as the centerpiece of an Arduino shield in the past, and she grabbed a copy of that library to see if it would play nicely with an ATtiny chip. What follows is a struggle to de-Arduino the code so that it’s portable for all AVR controllers.

This module is one of the least expensive ways to add WiFi to a project, coming in at around $23. But it’s not really an all-in-one solution as there’s still a huge software hurdle to cross. The hardware provides access to to radio functions needed to communicate with the network, but you need to supply the TCP/IP stack and everything that supports it. Hence the re-use of the Arduino library.

Battling adversity [Quinn] fought the good fight with this one. Switching from an ATtiny to the ATmega168, compiling more code, and troubleshooting the process. She used a single LED as feedback, and can get some connectivity with her hotspot. But to this point she hasn’t gotten everything up and running.

We’re hot for an AVR WiFi solution that is cheap and easy to use. But as we see here, the software is complex and perhaps best left up to beefier hardware like the ARM controllers. What do you think?