Code Craft-Embedding C++: Hidden Activities?

What is an embedded system? The general definition is a computer system dedicated to a specific purpose, i.e. not a general purpose system usable for different tasks. That is a very broad definition. I was just skimming the C++ coding guidelines for the Joint Strike Fighter. That’s a pretty big embedded system and the first DOD project that allowed C++! When you use an ATM to get money you’re using an embedded system. Those are basically hardened PCs. Then at the small end we have all the Internet of Things (IoT) gadgets.

The previous articles about embedding C++ discussing classes, virtual functions, and macros garnered many comments. I find both the positive and critical comments rewarding. More importantly, the critical comments point me toward issues or questions that need to be addressed, which is what got me onto the topic for this article. So thank you, all.

Let’s take a look at when embedded systems should or should not use C++, taking a hard look at the claim that there may be hidden activities ripe to upset your carefully planned code execution.

Continue reading “Code Craft-Embedding C++: Hidden Activities?”

Automated Star Wars Themed Nerf Targets

When challenged with making a game for a kids event using only the parts he already had on hand, [Nathan Gray] had to get creative. What he ended up making is pretty awesome. It’s a Star Wars themed Nerf gun shooting gallery.

icons-390Using a Teensy 2.0, he’s controlling nine RC servo motors attached to two-sided targets which randomize themselves every round — The Empire is bad, the Rebels, good. They’re also color coded red and green in case the images are too hard to see.

To keep track of scoring, there are piezo elements which register the impact of a Nerf dart. A cute little command console with a big red start button and score display can be set up in front of the range to let the kids know how they’re doing.

Continue reading “Automated Star Wars Themed Nerf Targets”

Back To Basics: What’s The Deal With Magnets?

I consider myself a fairly sharp guy. I’ve made a living off of being a scientist for over 20 years now, and I have at least a passing knowledge of most scientific fields outside my area. But I feel like I should be able to do something other than babble incoherently when asked about magnets. They baffle me – there, I said it. So what do I do about it? Write a Hackaday post, naturally – chances are I’m not the only one with cryptomagnetonescience, even if I just made that term up. Maybe if we walk through the basics together, it’ll do us both some good understanding this fundamental and mysterious force of nature.

Continue reading “Back To Basics: What’s The Deal With Magnets?”

Review: Voltera V-One PCB Printer

Back in Feburary, I was one of the first people to throw some cash at the Voltera V-One circuit board printer on Kickstarter. With an anticipated delivery date of Q4 2015, I sat back and waited. This week, my V-One arrived!

I’ll preface this article by pointing out that I do know the folks at Voltera as we went to university together. That being said, I did put down my own cash for the device, so I’ve bought the right to be critical. I also have no relationship with their company. In this article, we’ll go through unboxing and printing, then get into a review of the V-One based on what we’ve seen so far.

Continue reading “Review: Voltera V-One PCB Printer”

Preparing Images For Laser Etching Isn’t That Hard

Sometimes we forget how awesome laser cutters really are. After all, they’re essentially giant plotters that shoot infrared lasers to cut and engrave almost anything. Most of the time, we’ll use the cutting feature in order to make rapid prototypes for different projects. We might engrave a logo or text on there too — but with a bit of image pre-processing, you can actually etch grey scale images that look really good.

[miststlkr] has been experimenting with different processes to get the best engraving, and he’s decided to share his findings. He’s created a guide on Instructables, and it’s a pretty quick read. You’re going to need some image editing software, for which [miststlkr] recommends Gimp — as do we.

From there it’s just a matter of a few steps to simplify the image. Start by converting the image to indexed colors — this limits the number of colors the image can have, he recommends limiting to about 4 colors for now. From there, convert to grey scale and import into your favorite laser software. Now it’s time to start testing.

Continue reading “Preparing Images For Laser Etching Isn’t That Hard”

Adding A Fan Where Microsoft Should Have

The Xbox 360 is a great console. But unfortunately, some units are quite susceptible to overheating, resulting in the horrifying red ring of death (or RROD for short!). Sometimes the damage is done, and you’re pretty much out of luck. But if it’s a two light RROD (indicating inadequate cooling), there’s something you can do to save it. It’s simple — just add a fan.

If your unit is showing the two light RROD, open up the Xbox and take a look at the main heat-sink. You’re probably going to have to re-seat it with new thermal paste due to heat overload. That’ll fix your problem for a bit, but it’s more than likely going to happen again.

[Doyle] did this and it solved the RROD — but checking temperatures, he saw that the chip still hit about 80C in less than 30 seconds of being on! So he decided to add an extra fan.

Continue reading “Adding A Fan Where Microsoft Should Have”

3D Carver Makes Magnetic Fields Visible

The history of science is full of examples when a 3D physical model led to a big discovery. But modelling something that’s actually invisible can be tough. Take magnetic fields – iron filings on a card will give you a 2D model, but a 3D visualization of the field would be much more revealing. For that job, this magnetic field following 3D carving machine is just the thing.

What started out as a rapid prototyping session with servos and hot glue ended up as quick and dirty 3D carving rig for [Frits Lyneborg]. The video shows his thought progression and details how he went from hot glue and sticks to LEGO Technics parts and eventually onto Makerbeam extrusions for the frame of his carver. A probe with a Hall effect sensor is coupled to a motor spinning a bit that cuts into a block of floral foam. A microcontroller keeps the Hall sensor a more or less fixed distance from a rare-earth magnet, resulting in a 3D model of the magnetic field in the foam, as well as a mess of foam nubbles. Despite a few artifacts due to in-flight adjustments of the rig, the field presents clearly in the block as two large lobes.

Carving foam isn’t the only way to visualize a magnetic field in three dimensions, of course. If you’d rather have a light show based on the local magnetic field, try this 3D compass build we covered a while back.

Continue reading “3D Carver Makes Magnetic Fields Visible”