Posts with «arduino» label

Crawling a Dungeon, 64 Pixels at a Time

The trend in video games is toward not being able to differentiate them from live-action theatrical releases, and games studios are getting hard to tell from movie studios. But quality graphics don’t always translate into quality gameplay, and a lot can be accomplished with minimalist graphics. Turn the clock back a few decades and think about the quarters sucked up by classics like Pac-Man, Space Invaders, and even Pong if you have any doubts about that.

But even Pong had more than 64 pixels to work with, which is why this dungeon-crawler game on an 8×8 RGB matrix is so intriguing. You might think [Stolistic]’s game would be as simple as possible but think again. The video below shows it in action, and while new users will need a little help figuring out what the various colors mean, the game is remarkably engaging. The structure of the dungeon is random with multiple levels to unlock via the contents of power-up chests, and there are mobs to battle in a zoomed-in display. The game runs on an Arduino Uno and the matrix is driven by a bunch of 74HC595 shift registers.

It’s fun to see what can be accomplished with as little as possible. Looking for more low-res goodness? Check out this minimalist animated display, or a Geiger counter with a matrix display.

Hack a Day 06 May 06:00

Building Badges The Hard Way

What’s a hacker to do to profess his love for his dearest beloved? [Nitesh Kadyan] built his lady-love this awesome LED pendant – the LED BLE Hearty Necklace Badge.

The hardware is pretty vanilla by today’s hacker standards. An ATMega328p  does most of the heavy lifting. An HM-11 BLE module provides connection to an Android mobile app. Two 74HC595 shift registers drive 16 columns of red LEDs and a ULN2803 sinks current from the 8 rows. The power section consists of a charger for the 320mAh LiPo and an LDO for the BLE module. All the parts are SMD with the passives mostly being 0603, including the 128 LEDs.

128 LEDs soldered wrong way around

[Nitesh] didn’t get a stencil made for his first batch of boards, so all the parts were painstakingly soldered manually and not in a reflow oven. And on his first board, he ended up soldering all of the LED’s the wrong way around. Kudos to him for his doggedness and patience.

The Arduino code on the ATmega is also quite straightforward. All characters are stored as eight bytes each in program memory and occupy 8×8 pixels on the matrix. The bytes to be displayed are stored in a buffer and the columns are left shifted fast enough for the marquee text effect. The Android app is built by modifying a demo BLE app provided by Google. The firmware, Android app, and the KiCAD design files are all hosted on his Github repository.

[Nitesh] is now building a larger batch of these badges to bring them to hillhacks – the annual hacker-con for making and hacking in the Himalayas. Scheduled for later this month, you’ll have to sign up on the mailing list for details and if you’d like to snag one of these badges. To make it more interesting, [Nitesh] has added two games to the code – Tetris and Snakes. Hopefully, this will spur others to create more games for the badge, such as Pong.

Adafruit Previews CRICKIT, Hopes To Make Robotics More Acessible

There have been a rash of short videos popping onto the Adafruit youtube channel recently that depict Limor Fried showing off a new board driving some fun cardboard based projects. This new board, which we can hear Limor explain is the CRICKIT, appears to be in prototype stages. It got […]

Read more on MAKE

The post Adafruit Previews CRICKIT, Hopes To Make Robotics More Acessible appeared first on Make: DIY Projects and Ideas for Makers.

Tiny Arduino + FPGA = Sno

Alorium rolled out a new product late last year that caught our attention. The Sno (pronounced like “snow”) board is a tiny footprint Arduino board that you can see in the video below. By itself that isn’t that interesting, but the Sno also has an Altera/Intel Max 10 FPGA onboard. If you aren’t an FPGA user, don’t tune out yet, though, because while you can customize the FPGA in several ways, you don’t have to.

Like Alorium’s XLR8 product, the FPGA comes with preprogrammed functions and a matching Arduino API to use them. In particular, there are modules to do analog to digital conversion, servo control, operate NeoPixels, and do floating point math.

However, you can reprogram the FPGA to have other functions — known as XBs or Xcelerator Blocks — if you like. The only problem we see is that, so far, there aren’t many of them. In addition to the stock XBs, there is one that will do quadrature decoding for dealing with things like shaft encoders. There are a few others you can find on their GitHub page. You can get an idea for the workflow by looking at this tutorial for the XLR8 board.

Of course, you can write your own FPGA configurations as you see fit, but they also provide a standard workflow — OpenXLR8 — that lets you build your own blocks that operate just like their blocks. It would be easy to imagine an “app store” concept where people develop custom blocks and make them available.

We really like the idea of this device and it is certainly inexpensive. You can prototype on the XLR8 which looks like a UNO or you can put headers in the Sno. They also sell a breakout board that will make the Sno physically more like an UNO. We are surprised, though, that there are not more XBs created over the last two years.

The FPGA onboard is similar to the one on the Arrow board we looked at earlier this year, although that has some additional components like SDRAM. If you are looking for a project, it might be interesting to convert our PWM code into an XB.

Thanks to [K5STV] for showing us one of these.

Hack a Day 30 Apr 16:30

Core Memory Upgrade for Arduino

Linux programs, when they misbehave, produce core dumps. The reason they have that name is that magnetic core memory was the primary storage for computers back in the old days and many of us still refer to a computer’s main memory as “core.” If you ever wanted to have a computer with real core memory you can get a board that plugs into an Arduino and provides it with a 32-bit core storage. Of course, the Arduino can’t directly run programs out of the memory and as designer [Jussi Kilpeläinen] mentions, it is “hilariously impractical.” The board has been around a little while, but a recent video shined a spotlight on this retro design.

Impractical or not, there’s something charming about having real magnetic core memory on a modern CPU. The core plane isn’t as dense as the old commercial offerings that could fit 32 kilobits (not bytes) into only a cubic foot. We’ll leave the math about how much your 8-gigabyte laptop would have to grow to use core memory to you.

Honestly, this is purely a novelty, but we do miss core memory somewhat. It was inherently nonvolatile. You could turn the computer off, turn it back on, and everything was just how you left it. Sure, it was peculiar that reading a bit also destroyed it, but many of the old computers had the write after read cycle built into the CPU architecture so that it wasn’t a big deal.

If you want to look at how it was to repair a big core system, we looked at that earlier. Surprisingly, though, this isn’t the first Arduino core memory rig we’ve seen.

Expanding Death Star lamp with MKR1000

What could be better than a lamp that expands with the pull of a control cord? How about one that looks like the Death Star and is controlled with your voice? 

That’s exactly what maker Adi Singh created using a popular IKEA lamp and embedding it with an Arduino MKR1000 to take voice commands via Alexa. A stepper motor is tasked with opening and closing the exterior segments, and a solid-state relay turns the light on and off. It also features a spectacular custom paint job, making this lamp/superweapon stand out even more.

You can see the results in the video below as it changes shape and blinks to the soothing sounds of the Imperial March!

RC truck packs Arduino control system… and an electromagnetic accelerator turret!

While some toy vehicles perform quite well out of the box, others are just begging to be equipped with supplemental electronics. This was the case for YouTuber Tanner Tech, who after receiving a capable 4WD truck in the mail with no control system, outfitted it with a transmitter and receiver, along with an Arduino Uno.

That’s interesting enough by itself, highlighting the fact that Arduino boards can take in PWM signals from a normal RC receiver. What really sets this build apart is the coil gun that he constructed in the bed. This device is powered by three capacitors, and a servo pan/tilt assembly aims it. While the projectile isn’t particularly dangerous in its current configuration, one would need to use caution when dealing with capacitors here, as they can be charged to the “shockingly” high potential of 400 volts.

More info on the project can be found here or in the video below!

This Unique Take on LED Cubes Uses Glass

LED cubes, while fascinating, aren't particularly new. We've seen quite a few of them. However, this one, made by Instructibles user mosivers, adds a new twist.

Read more on MAKE

The post This Unique Take on LED Cubes Uses Glass appeared first on Make: DIY Projects and Ideas for Makers.

Catch a Rising Star with Arduino

Space is big. Really big. Yet on TV and movies, enemy spacecraft routinely wind up meeting at roughly the same spot and, miraculously, in the same orientation. If you’ve ever tried to find something smaller than the moon in a telescope, you’ll appreciate that it isn’t that easy. There are plenty of tricks for locating objects ranging from expensive computerized scopes with motors to mounting a phone with Google Sky or a similar program to your telescope. [DentDentArthurDent] didn’t use a phone. He used an Arduino with an outboard GPS module.

You still have to move the scope yourself, but the GPS means you know your location and the time to a high degree of accuracy. Before you start an observing session, you simply point the telescope at Polaris to calibrate the algorithm, a process which in the northern hemisphere is pretty easy.

The telescope in question is a Dobson, so is easy to move and easy to sense its position using potentiometers and an A/D. The project also includes a detailed description of the math used to convert the time, latitude, longitude, right ascension, and declination into position data. One of four LEDs show if you should move up, down, left, or right. When you are on target, all four LEDs light. We assume you should use red LEDs and a red LCD filter so you don’t ruin your night vision.

There are a few sources of error and [Arthur] does a great job of analyzing and correcting each one. The project even has a nice 3D printed case. The database only contains 45 objects but it is easy to add more. We wondered if it wouldn’t have been better to use a larger computer such as a Raspberry Pi to get the stellar data — maybe even from the Internet — and rely on the Arduino to just manage the position sensing and direction indication, but then again, this works and it is very inexpensive.

This isn’t the first Arduino telescope finder we’ve seen. The last one even had a touchscreen.

Hack a Day 27 Apr 06:00

Synthbike Rolls To The Beat

Modular synthesizers are some of the ultimate creative tools for the electronic musician. By experimenting with patch leads, knobs and switches, all manner of rhythmic madness can be conjured out of the æther. While they may overflow with creative potential, modular synths tend to fall down in portability. Typically built into studio racks and composed of many disparate modules, it’s not the sort of thing you can just take down the skate park for a jam session. If only there was a solution – enter the madness that is Synth Bike.

Synth Bike, here seen in the 2.0 revision, impresses from the get go, being built upon a sturdy Raleigh Chopper chassis. The way we see it, if you’re going to build a synth into a bicycle, why not do it with some style? From there, the build ratchets up in intensity. There’s a series of sequencer modules, most of which run individual Arduino Nanos. These get their clock from either a master source, an external jack, or from a magnetic sensor which picks up the rotation of the front wheel. Your pace dictates the tempo, so you’ll want to work those calves for extended raves at the park.

The features don’t stop there – there are drums courtesy of a SparkFun WAV Trigger, an arcade button keyboard, and a filter board running the venerable PT2399 digital delay chip. It’s all assembled on a series of panels with wires going everywhere, just like a true modular should be.

The best thing is, despite the perplexing controls and arcane interface, it actually puts out some hot tunes. It’s  not the first modular we’ve seen around these parts, either.