Don’t Be A Code Tyrant, Be A Mentor

Hardware hacking is a way of life here at Hackaday. We celebrate projects every day with hot glue, duct tape, upcycled parts, and everything in between. It’s open season to hack hardware. Out in the world, for some reason software doesn’t receive the same laissez-faire treatment. “Too many lines in that file” “bad habits” “bad variable names” the comments often rain down. Even the unsafest silliest of projects isn’t safe. Building a robot to shine lasers into a person’s eyes? Better make sure you have less than 500 lines of code per file!

Why is this? What makes readers and commenters hold software to a higher standard than the hardware it happens to be running on? The reasons are many and varied, and it’s a trend I’d like to see stopped.

Software engineering is a relatively young and fast evolving science. Every few months there is a new hot language on the block, with forums, user groups, and articles galore. Even the way software engineers work is constantly changing. Waterfall to agile, V-Model, Spiral model. Even software design methodologies change — from pseudo code to UML to test driven development, the list goes on and on.

Terms like “clean code” get thrown around. It’s not good enough to have software that works. Software must be well commented, maintainable, elegant, and of course, follow the best coding practices. Most of these are good ideas… in the work environment. Work is what a lot of this boils down to. Software engineers have to stay up to date with new trends to be employable.

There is a certain amount of “born again” mentality among professional software developers. Coders generally hate having change forced upon them. But when they find a tool or system they like, they embrace it both professionally, and in their personal projects. Then they’re out spreading the word of this new method or tool; on Reddit, in forums, to anyone who will listen. The classic example of this is, of course, editors like the vi vs emacs debate.

Continue reading “Don’t Be A Code Tyrant, Be A Mentor”

JB Weld Fixes Cracked Cylinder Heads

There are persistent rumors that the main ingredient in JB Weld is magic. This two-part epoxy that you would normally find on a shelf next to your basic 5-minute epoxy, Titebond, various cyanoacrylates, and Gorilla glue is somehow different. Stories of ‘some guy’ in the Yukon using JB Weld on a cracked engine block abound. These stories are of course met with skepticism.

Now, finally, we have evidence you can use JB Weld to fix an engine. [Project Farm] over on YouTube gave it the ultimate test: he took the cylinder head off a lawnmower, took a grinder to the head, and patched the hole with JB Weld. The head had good compression, and the engine actually ran for 20 minutes before the test was concluded.

If this were a test of a field repair, it would be a test of an extremely crappy field repair. [Project Farm] made no attempt to ensure the piston didn’t make contact with the blob of JB Weld, and in fact, there was some slight knocking from the piston tapping against a blob of epoxy. Still, this repair worked.

While this serves as proof of the feasibility of repairing an engine block with JB Weld, there is one ultimate test of JB Weld epoxy: build an engine out of it. For years, I’ve been casting my leftover JB Weld into a small square plastic container. In a few more years, I’ll have a block of JB Weld ‘stock’, large enough to machine the parts for a small (.049 cc) glow engine, like what you would find in ye olde tymie model planes and cars. Will it work? I have no idea, but now I can’t wait to find out.

Continue reading “JB Weld Fixes Cracked Cylinder Heads”

Zen And The Art Of Arduino

A zen garden should be a source of relaxation and escape from the everyday. The whole point should be to escape from–among other things–your electronics. Unless you are [MakrToolbox]. Then you’ll make a beautiful zen garden end table that allows you to make patterns in the sand using a ball bearing and an Arduino. You can see a video below.

Technically, the device is almost an upside down 3D printer with no Z axis. The mechanism moves a magnet which controls the steel ball and draws patterns in the sand. However, the really impressive parts of this project are the woodworking for the end table and the impressive documentation, should you want to reproduce this project yourself.

Continue reading “Zen And The Art Of Arduino”

Digitize Your Room With LIDAR

What’s the best way to image a room? A picture? Hah — don’t be so old-fashioned! You want a LIDAR rig to scan the space and reconstruct it as a 3D point map in your computer.

Hot on the heels of [Saulius Lukse]’s scanning thermometer, he’s replaced the thermal camera on their pan/tilt setup with a time-of-flight (TOF) camera — a Garmin LIDAR — capable of 500 samples per second and end up scanning their room in a mere fifteen minutes. Position data is combined with the ranging information to produce a point cloud using Python. Open that file in a 3D manipulation program and you’ll be treated to a sight like this:

Continue reading “Digitize Your Room With LIDAR”

Flamethrower skateboard

Light A Fire Under Your…Skateboard?

Kids, please don’t try this at home. Or at least make sure there’s nothing flammable around.

With that out of the way, we have to ask — who doesn’t love playing with fire? We’re betting that many of you also have enjoyed a little skateboarding at some point in your lives. [mikeasaurus] has married the two beloved activities and made a flame throwing skateboard! The parts count is fairly low, and it looks like everything can be purchased from Amazon if you can’t source all of the items locally.

[mikeasaurus] gives a few useful tips such as how he bent one of the two pipes on the fuel tank cap to prevent fuel from pouring out. Also, he used an adapter to bring down the diameter of the tubes from 1/4″ to 1/8″ which makes for a better performing fuel stream.

Instead of making this little foot cooker more complicated with additional electronics and wires to be operated by a hand-held remote control, [mikeasaurus] decided to build the controls directly into the skateboard with just a couple of foot-activated switches. This keeps his hands free to wave at all of the onlookers watching him speed by. Or better yet, to carry a fire extinguisher.

Admittedly, it appears from the video that the flame doesn’t really get ‘thrown’ too far, and [mikeasaurus] himself says:

“As long as you’re moving forward when the flames are activated, you’re good to go!”

Because of this, you probably don’t want to use your favorite board, as it’s going to be subject to direct flames.

You’ll see this when you watch the video after the break.

Continue reading “Light A Fire Under Your…Skateboard?”

Liquid cooled Raspberry Pi with mineral oil

Liquid Cooling Overclocked Raspberry Pi With Style

[HydroGraphix HeadQuarters] has earned his name with this one. While he is using mineral oil instead of hydro, he’s certainly done a nice job with the graphics of it. The ‘it’ in questions is an overclocked Raspberry Pi 3 in a transparent container filled with mineral oil, and with a circulating fan.

He’s had no problem running the Pi at 1.45 GHz while running a Nintendo 64 emulator, getting between 40 °C and 50 °C. The circulating fan is a five volt computer USB fan. It’s hard to tell if the oil is actually moving, but we’re pretty sure we see some doing so near the end of the video below the break.

Mineral oil is not electrically conductive, and is often used to prevent arcing between components on high voltage multiplier boards, but those components are always soldered together. If you’ve ever worked with mineral oil, you know that it creeps into every nook and cranny, making us wonder if it might work its way between some of the (non-soldered) contacts in the various USB connectors on this Raspberry Pi. Probably not, but those of us with experience with it can attest to it’s insidiousness.

Continue reading “Liquid Cooling Overclocked Raspberry Pi With Style”

Reusing A Wire Bonded Chip

We will all at some point have opened up a device to investigate its internal workings, and encountered a blob of resin on the PCB concealing an integrated circuit. It’s usually a cost thing, the manufacturer has sourced the chip as bare silicon rather than in encapsulated form, and it has been bonded to the board with its connections made directly using fine wires. The whole fragile component is then hidden by a protective layer of resin.

Normally these chips are off-limits to we experimenters because they can not be removed from the board without damage, and we have no information such as a part number about their function. Today though we have a rare example of a wire bonded chip being reused courtesy of Reddit user [BarockObongle], who has incorporated the controller from a multi-game joystick into his handheld NES project by cutting a square of PCB containing the chip, and soldering lengths of wire to the PCB tracks.

Of course, he’s in the rare position of knowing the function of the chip in question, and having a ready application for it. But it’s probable that few of us have considered the possibility of taking a resin blob from its original board and using it in a different way, so even though this is quite a straightforward piece of work it is sufficiently unusual to be worth a look. Sadly we don’t have the rest of the build to see it in context, it would be nice to think we’ll be able to feature it when it is completed.

If you are interested in what goes on underneath the blob, have a look at SparkFun’s explanation. Or charge your laser.