Quadcopter Uses Bare Metal STM32

[Tim Schumacher] got a Crazepony Mini quadcopter and has been reprogramming it “bare metal” — that is to say he’s programming the STM32 without using an operating system or do-it-all environment. His post on the subject is a good reference for working with the STM32 and the quadcopter, too.

If you haven’t seen the quadcopter, it is basically a PC board with props. The firmware is open source but uses the Keil IDE. The CPU is an STM32 with 64K of program memory. In addition, the drone sports a wireless module, a digital compass, an altimeter, and a gyro with an accelerometer.

Although the post is really about the quadcopter, [Tim] also gives information about the Blue Pill which could be applied to other STM32 boards, as well. On the hardware side, he’s using a common USB serial port and a Python-based loader.

On the software side, he shows how to set up the linker and, using gcc, control output ports. Of course, there’s more to go to work the other peripherals, and Tim’s planning to investigate CMSIS to make that work easier. Our earlier post on STM32 prompted [Wassim] over on Hackaday.io to review a bunch of IDEs. That could be helpful, too.

Engineering For The Long Haul, The NASA Way

The popular press was recently abuzz with sad news from the planet Mars: Opportunity, the little rover that could, could do no more. It took an astonishing 15 years for it to give up the ghost, and it took a planet-wide dust storm that blotted out the sun and plunged the rover into apocalyptically dark and cold conditions to finally kill the machine. It lived 37 times longer than its 90-sol design life, producing mountains of data that will take another 15 years or more to fully digest.

Entire careers were unexpectedly built around Opportunity – officially but bloodlessly dubbed “Mars Exploration Rover-B”, or MER-B – as it stubbornly extended its mission and overcame obstacles both figurative and literal. But “Oppy” is far from the only long-duration success that NASA can boast about. Now that Opportunity has sent its last data, it seems only fitting to celebrate the achievement with a look at exactly how machines and missions can survive and thrive so long in the harshest possible conditions.

Continue reading “Engineering For The Long Haul, The NASA Way”

ESP8266 Gets Its Game On With Open Source Engine

This is likely not to come as much of a shock to you, but the ESP8266 is pretty popular. At this point, we’re more surprised when a project that hits the tip line doesn’t utilize this incredibly cheap WiFi-enabled microcontroller. If you’re making a gadget that needs to connect to the Internet, there’s a good chance some member of the ESP family is going to be a good choice. But is it a one-trick MCU?

ESP Little Game Engine Logo

Well, judging by software frameworks like the “Little Game Engine” created by [Igor], it looks like the ESP is expanding its reach into offline projects as well. While it might not turn the ESP8266 into a next-gen gaming powerhouse, we’ve got to admit that the demos shown off so far are pretty impressive. When paired with a couple of buttons and a TFT display such as the ILI9341, the ESP could make for a particularly pocket-friendly game system.

The game engine that [Igor] has developed provides the programmer with a virtual screen resolution of 128×128, a background layer, and 32 sprites which offer built-in tricks like collision detection and rotation. All while running at a respectable 20 frames per second. This environment is ideal for the sort of 2D scrolling games that dominated the 8 and 16-bit era of gaming, and as seen in the video after the break, it can even pull off a fairly decent clone of “Flappy Bird”.

In addition, [Igor] created an online emulator and compiler which allows you to develop games using his engine right in your web browser. You can load up a selection of example programs and execute them to see what the engine is capable of, then try your hand at developing your own game before ever having to put the hardware together. Incidentally, the performance of this online development environment is fantastic; with even the fairly complex “Flappy Bird” example code compiling and starting in the emulator nearly instantaneously.

This isn’t the first handheld game we’ve seen powered by the ESP8266, but it would be fair to say this one is a generational leap over its predecessors. Of course, if you really want to start throwing around some pixels, you might want to make the leap to the ESP32; which is the heart of the incredibly awesome (and tiny) PocketSprite.

Continue reading “ESP8266 Gets Its Game On With Open Source Engine”

OpenSCAD Gives You Parametric Boxes

OpenSCAD is one of the most powerful 3d modeling applications around. Its beauty is in its simplicity; if you need a box, you can just write the code for a box. If you need some bit of plastic to keep your 3D printer running, you can just write the code for that bit of plastic. Like all programming languages, OpenSCAD is only really powerful if you have a huge back-catalog of various components ready for reuse. That’s where [Mark]’s library for hinged boxes comes in handy. Every type of box you would ever want to create, from boxes with covers, magnet closures, or cases for your glasses is easily accessible with just a few lines of code.

The work presented here is an OpenSCAD script to generate two-piece hinged boxes, with rounded corners, a lid, interlocking rims, and optional snap fit, magnet, or screw closures. As you would expect from OpenSCAD, everything in this script is parametric. You can change any measurement or simply delete entire sections of the box.

The included examples consist of a small mini-Altoids tin-sized ‘Bee Box’ with a snap-fit lid. All of the relevant dimensions of the snap-fit lid are variables. Other examples include an eyeglass case and a box for small parts storage that interlock. If you have a few rolls of filament, a lot of time on your hands, and want to organize your workbench, you could do worse than checking out a few of these OpenSCAD boxes.

Miniature 3D Printed Forklift Is Quite Pallet-able

If you have a small logistics problem, we have the solution for you. [Leon] built a tiny little forklift with LED lighting, working forks, and remote control using a combination of 3D printing tech, some CNC work, and fine soldering skills.

The electronics for this build are based around a few servos and a pair of geared DC motors and are driven via an Arduino Mega. Connectivity and remote controllability are what you would expect from an Arduinified project. There’s an HC-05 Bluetooth module on the board and remote control is handled by a custom Android app.

Of note in this project are the forks that actually work, almost like a real forklift. This allows the mini Arduino forklift to pick up mini pallets, drop them somewhere, and have mini DIY enthusiasts come up to build mini-furniture for mini-Etsy, which will be prominently featured in the mini foyer of a mini two-story walkup. No, it’s not mini-gentrification; this mini forklift is helping the mini local economy.

You can check out the entire build video below, filmed in the usual maker demo method of speeding up the entire build process but somehow keeping the no-talking audio. We have a lot to thank [Jimmy DiResta] for, and it’s not just cinematography. All the files for this forklift are up on the Github should you want to build your own.

Continue reading “Miniature 3D Printed Forklift Is Quite Pallet-able”

DIY Reflow Oven Is Heavily Documented

[DJ Legion] decided he wanted a reflow oven so he bought a toaster oven and an assortment of parts including a solid state relay, a Teensy, a display, and a thermocouple. What makes this a different project is the amount of video documentation. The four videos below encompass about 50 minutes of information and he’s promising more to come.

We haven’t found his software — probably because he’s still working on it, but we’re watching his GitHub page expectantly. We really liked the 3D printed faceplate that integrated the controller into the oven. It almost looks like a commercial unit. The use of the woodgrain paper over the 3D printed parts was a nice touch.

[DJ] is not done, though. He wants to increase the heat up time and possibly add convection. He’s also planning on a new video that will show actually making a board and how he has refined the calibration curves.

We are impressed but would have been tempted to just grab a Reflowduino. The work’s already done, and you get wireless control and lots of other goodies. Of course, we also get the urge to do it yourself, so we can’t really throw stones. If you don’t want to mess with an oven, you can always raid the hair salon.

Continue reading “DIY Reflow Oven Is Heavily Documented”

Hackaday Links Column Banner

Hackaday Links: March 10, 2019

Do you like hamburgers? Everyone likes hamburgers. Inspired by a phone you could buy at Spencers in 1991, [Love Hulten] built a Game Burger Advance. The guts are a Raspberry Pi Zero, a standard LCD display and what appears to be a USB control pad. The fabrication is where this one really goes crazy. It’s a significant amount of laser-cut plywood or MDF stacked together into a laminate then sanded and painted to look like a hamburger. Actually, it’s a cheeseburger, but we don’t deal with the prescriptivist view of linguistics and Wendy’s doesn’t sell hamburgers, they sell cheeseburgers without cheese. Hamburgers are not cheeseburgers without cheese but I digress… Just be glad this links post isn’t me going off for two thousand words talking about language and cheeseburgers.

If you have a 2012 MacBook Pro, congratulations, you have one of the last good laptops Apple will ever build. [Docatl] over on Reddit has one of these fine machines, but found it was overheating. This Genius did what anyone would do — drilled some vents in the bottom of the laptop. The results are impressive, with stock temperatures climbing to 80º C when rendering video, and the post-drilled temps cooling down to a balmy 65º.

Here’s a Kickstarter for you. It’s an Arduino Zero in a narrow DIP-16 package, albeit with a USB connector hanging over the outline of a normal DIP-16 footprint. The specs are an ATSAMD21 Cortex-M0+ running at 48 MHz, 256kB of Flash, 32k of RAM, and an integrated bootloader.

Ha ha Tim Cook changed his name to Tim Square because Apple users are squares amirite?

We’re not going to get into a discussion about mental health or anything here, but TheFlightChannel just published a flight sim reenactment of the SeaTac Dash-8 Horizon Air incident from last summer. This video is absolutely fantastic.

The Sipeed K210 is a chip you should know about. It’s a RISC-V microcontroller that’s right up there with the fastest, most powerful STM32 chips, but it’s RISC-V and it costs eight dollars. Also, it has neural networks, because. We first heard about this chip as a preorder on Taobao (?!), but now it’s getting a slightly more official release. Seeed is working on a Raspberry Pi Hat for this chip, and they want your input. Right now we’re looking at two versions, one with WiFi and one without, and both can either work with a Raspberry Pi or as a standalone board. They have the basic layout, but they’d like to know what features the community would want.