Create A Discord Webhook With Python For Your Bot

Discord is an IRC-like chat platform that all the young cool kids are hanging out on. Originally intended as a way to communicate during online games, Discord has grown to the point that there are servers out there for nearly any topic imaginable. One of the reasons for this phenomenal growth is how easy it is to create and moderate your own Discord server: just hit the “+” icon on the website or in the mobile application, and away you go.

As a long-time IRC guy, I was initially unimpressed with Discord. It seemed like the same kind of stuff we’ve had for decades, but with an admittedly slick UI. After having used it for a few months now and joining servers dedicated to everything from gaming to rocket science, I can’t say that my initial impression of Discord is inaccurate: it’s definitely just a modern IRC. But I’ve also come to the realization that I’m OK with that.

But this isn’t a review of Discord or an invitation to join the server I’ve setup for my Battlefield platoon. In this article we’re going to look at how easy it is to create a simple “bot” that you can plug into a Discord server and do useful work with. Since anyone can create a persistent Discord server for free, it’s an interesting platform to use for IoT monitoring and logging by simply sending messages into the server.

Continue reading “Create A Discord Webhook With Python For Your Bot”

Zen And The Art Of Foam Core

Some of our pastimes are so deeply meditative that we lose ourselves for hours. Our hands seem to perform every step, and sequence like a pianist might recite her favorite song. If [Eric Strebel]’s voice and videos are any indications, working with foam core can have that effect.

Foam core is a staple of art stores, hobby stores, and office supply stores. It comes in different colors, but the universal trait is a sheet of foam sandwiched between a couple of layers of paper. This composition makes a versatile material which [Eric] demonstrates well in his advanced tutorial making a compound surface and later on a speaker mockup.

After the break, you can catch a couple of beginner tutorials which explain the differences between a slapdash foam core model, and one which will draw appreciation. Proper tools and thoughtful planning might be the biggest takeaways from the first two videos unless you count the Zen narration. The advanced videos, linked above, show some ingenious ways to use foam core like offset scoring, adjustable super-structures, and paper transfers.

Each video is less than ten minutes long, so if you just started your coffee break, you can complete a video right now. Or look at another 2D material turned into amazingness with a papercraft strandbeest, then step up your game with another look at vinyl cutters.
Continue reading “Zen And The Art Of Foam Core”

Heated DryBox Banishes Filament Moisture For Under $20

There has been a lot of activity from [Richard Horne] regarding 3D printing filaments lately; most recently he has shared two useful designs for upping one’s filament storage and monitoring game. The first is for a DIY Heated DryBox for 3D printing filament. It keeps filament dry not just by sealing it into a plastic box with some desiccant, but by incorporating a mild and economical heater intended for reptile habitats inside. Desiccant is great, but a gently heated enclosure can do wonders for driving away humidity in the right environment. The DryBox design also incorporates a handy little temperature and humidity sensor to show how well things are working.

Spool-mounted adapter for temperature and humidity sensor (and desiccant) to monitor storage bag conditions.

The second design is a simple spin-off that we particularly liked: a 3D printed adapter that provides a way to conveniently mount one of the simple temperature and humidity sensors to a filament spool with a desiccant packet. This allows storing a filament spool in a clear plastic bag as usual, but provides a tidy way to monitor the conditions inside the bag at a glance. The designs for everything are on Thingiverse along with the parts for the Heated DryBox itself.

[Richard] kindly shares the magic words to search for on eBay for those seeking the build’s inexpensive key components: “15*28CM Adjustable Temperature Reptile Heating Heater Mat” and “Mini LCD Celsius Digital Thermometer Hygrometer Temperature Humidity Meter Gauge”. There are many vendors selling what are essentially the same parts with minor variations.

Since the DryBox is for dispensing filament as well as storing it, a good spool mounting system is necessary but [Richard] found that the lack of spool standardization made designing a reliable system difficult. He noted that having spool edges roll on bearings is a pretty good solution, but only if one doesn’t intend to use cardboard-sided spools, otherwise it creates troublesome cardboard fluff. In the end, [Richard] went with a fixed stand and 3D printable adapters for the spools themselves. He explains it all in the video, embedded below.

Continue reading “Heated DryBox Banishes Filament Moisture For Under $20”

Ride Bike, Charge Phone

Spring is coming to the northern hemisphere, and soon it’ll be nice enough outside to tool around town on your bicycle. But bikes don’t have power outlets, so phone charging on the go will require forethought and charged-up battery packs. It doesn’t have to be that way. You’re working to make the bike move, so why not make the bike work for you?

If you’ve ever used a motor as a generator, then you can see where this is going. That’s the underlying principle behind [Creativity Buzz]’s bike-powered phone charger. As the bike wheel turns, the rim comes in contact with a small wheel attached to the output shaft of a DC motor. Cranking the output shaft of a motor with permanent magnets inside will induce a small voltage, and here it is amplified with a DC-DC boost converter and output to a USB jack.

As long as you can find a way to secure the phone to the bike frame, or use a long cord and good cable management, you’re in business. Wheelie past the break to watch [Creativity Buzz] build it and give it a stationary test run. While you wait for bike-riding weather, you can still use this kind of charger by turning a crank.

Continue reading “Ride Bike, Charge Phone”

Build A Tiny Hot Wire Foam Cutter

Let’s face it: cutting foam with a knife, even a serrated plastic knife meant for the job, is a messy pain in the ass.  This is as true for insulation board as it is for the ubiquitous expanded polystyrene kind of foam used for everything from coffee cups to packaging material.

Those stick-type hot wire cutters from the craft store that plug into the wall aren’t much better than a knife. The actual cleaving of foam is easier, but dragging a long, hot flexible wand through rigid foam just right, without making burn marks, is pretty frustrating. It’s not like you can hold the other end to keep it steady. A foam cutter built like a coping saw but held parallel to the wire would offer much better control.

[Techgenie]’s handheld hot wire foam cutter is a simple build based on a single 18650 and a piece of nichrome wire. While this is probably not the most Earth-shattering hack you’ll see today, it’s a useful tool that can be made in minutes with items on hand. Laptop chargers are full of 18650s, and nichrome wire can be sourced from old toasters, hair dryers, or space heaters.

You shouldn’t use just any old wire for this, though, or the battery will get hot and potentially explode. Nichrome wire has a high resistance, and that’s exactly what you want in a tool that essentially shorts a battery to make heat. [Techgenie] used a momentary button instead of a switch, which is a good way to stay safe while using it. It wouldn’t hurt to add some protection circuitry and take the battery out when you’re done. Burn past the break to watch him build it and cut a few tight turns with ease.

If you have bigger, more complicated foam-cutting jobs in mind, why not build a CNC version out of e-waste?

Continue reading “Build A Tiny Hot Wire Foam Cutter”

A Freeze Dryer You Can Build In Your Garage

What do trail mix, astronaut ice-cream, and cryogel have in common? This may sound like the introduction to a corny riddle, but they are all things you can make in your garage with a homemade freeze dryer. [The Thought Emporium] built his own freeze dryer with minimum fuss and only a few exotic components like a vacuum pump and a high-quality pressure gauge. The video is also posted after the break which contains a list for the parts and where they can be purchased.

Freeze drying uses a process called cryodesiccation or lyophilization. Below a certain pressure, water skips the liquid phase and goes directly to a gas, so frozen items can transition from ice to dry without a soggy step. When you jump the liquid phase, objects hold their shape when they were frozen, and since no heat is used, you don’t carmelize your sugars.

A freeze-dryer like this has three parts. The first is the pump which doesn’t need any explanation. Next to the pump there must be a water trap. This chilly compartment recondenses the water vapor, so it doesn’t get inside the pump or saturate the things you’re trying to dry. Lastly, there is the drying chamber where your items are placed to have their moisture taken out.

Astronaut ice cream has been made on Hackaday before. [The Thought Emporium] has also been seen including a piece on making your own graphene.

Continue reading “A Freeze Dryer You Can Build In Your Garage”

Disco Bulb Keeps The Party Spinning

Even if you don’t like disco, you might like the slick moves that went into this project. [W&M] built a miniature motorized mirror ball inside of a standard incandescent light bulb, and the results are something to dance about.

Short of blowing a glass bulb, building a motor, and growing the wood, this is about as scratch-built as it gets. Much of the woodworking is done on a metal lathe, and this includes the base of the mirror ball itself. As with all good thing-in-a-bottle builds, the ball is too big to go in the bulb, so [W&M] quartered it, drilled a few holes, and ran a string through the pieces so they can be carefully glued and drawn back together into a sphere. He even cut up mirror tiles and painstakingly applied them with tweezers.

This disco bulb is meant to be hung from the ceiling and wired into mains like a regular mirror ball. [M&W] stuffed the guts from a small USB wall charger into the handmade beech base to provide clean power for both the geared motor that spins the ball and the tiny LED that illuminates it. Slip into your best leisure suit (or sweat suit, we won’t judge) and hustle past the break to watch the build video.

We don’t see a lot of disco balls around here, but we did see a disco icosahedron once.

Continue reading “Disco Bulb Keeps The Party Spinning”