speed control – Hackaday https://hackaday.com Fresh hacks every day Tue, 25 Feb 2025 19:16:07 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 156670177 Taking Cues From a Gramophone To Make a Better Marble Music Machine https://hackaday.com/2025/02/25/taking-cues-from-a-gramophone-to-make-a-better-marble-music-machine/ https://hackaday.com/2025/02/25/taking-cues-from-a-gramophone-to-make-a-better-marble-music-machine/#comments Wed, 26 Feb 2025 00:00:06 +0000 https://hackaday.com/?p=765576 [Martin] of [Wintergatan] is on a quest to create the ultimate human-powered, modern marble music machine. His fearless mechanical exploration and engineering work, combined with considerable musical talent, has been …read more]]>

[Martin] of [Wintergatan] is on a quest to create the ultimate human-powered, modern marble music machine. His fearless mechanical exploration and engineering work, combined with considerable musical talent, has been an ongoing delight as he continually refines his designs. We’d like to highlight this older video in which he demonstrates how to dynamically regulate the speed of a human-cranked music machine by taking inspiration from gramophones: he uses a flyball governor (or centrifugal governor).

The faster the shaft turns, the harder the disk brake is applied.

These devices are a type of mechanical feedback system that was invented back in the 17th century but really took off once applied to steam engines. Here’s how they work: weights are connected to a shaft with a hinged assembly. The faster the shaft spins, the more the weights move outward due to centrifugal force. This movement is used to trigger some regulatory action, creating a feedback loop. In a steam engine, the regulator adjusts a valve which keeps the engine within a certain speed range. In a gramophone it works a wee bit differently, and this is the system [Wintergatan] uses.

To help keep the speed of his music machine within a certain narrow range, instead of turning a valve the flyball governor moves a large disk brake. The faster the shaft spins, the harder the brake is applied. Watch it in action in the video (embedded below) which shows [Wintergatan]’s prototype, demonstrating how effective it is.

[Wintergatan]’s marble machine started out great and has only gotten better over the years, with [Martin] tirelessly documenting his improvements on everything. After all, when every note is the product of multiple physical processes that must synchronize flawlessly, it makes sense to spend time doing things like designing the best method of dropping balls.

One final note: if you are the type of person to find yourself interested and engaged by these sorts of systems and their relation to obtaining better results and tighter tolerances, we have a great book recommendation for you.

]]>
https://hackaday.com/2025/02/25/taking-cues-from-a-gramophone-to-make-a-better-marble-music-machine/feed/ 8 765576 How Gramophones play Tight Music - The Flyball Governor 0-58 screenshot
Motorized Camera Slider Rides on Carbon https://hackaday.com/2023/09/01/motorized-camera-slider-rides-on-carbon/ https://hackaday.com/2023/09/01/motorized-camera-slider-rides-on-carbon/#comments Fri, 01 Sep 2023 15:00:00 +0000 https://hackaday.com/?p=613537 While not every camera mount needs to have six degrees of freedom, one or two can be extremely helpful in the photographic world. In order to make time-lapse shots with …read more]]>

While not every camera mount needs to have six degrees of freedom, one or two can be extremely helpful in the photographic world. In order to make time-lapse shots with some motion or shots that incorporate some parallax, a moving camera mount or dolly is needed, and this small one builds upon a pre-existing, although non-motorized, camera slider.

The slider is an inexpensive model from everyone’s favorite online warehouse, with rails that are at least coated in carbon, if not made out of it entirely, to ensure smooth camera motion. To add the motorization to automatically move the camera, a stepper motor with a belt drive is used which is controlled by an Arduino. A few limit switches are added, letting the dolly perform different movement patterns automatically, and a pair of potentiometers for fine and coarse speed control are included as well, letting the camera take both time-lapse and video while using this mount at various controllable speeds.

With everything tucked into a relatively small box at one end of the dolly, the build is both accessible and functional. The code for the microcontroller is also available on the project’s GitHub page for anyone looking to replicate or build upon the project. And, for those looking to add more degrees of freedom to their camera setups, take a look at this DIY pan and tilt mount.

]]>
https://hackaday.com/2023/09/01/motorized-camera-slider-rides-on-carbon/feed/ 1 613537 camera-slider-main
How Current Shunts Work https://hackaday.com/2018/02/08/how-current-shunts-work/ https://hackaday.com/2018/02/08/how-current-shunts-work/#comments Thu, 08 Feb 2018 18:01:04 +0000 http://hackaday.com/?p=291754 Current. Too little of it, and you can’t get where you’re going, too much and your hardware’s on fire. In many projects, it’s desirable to know just how much current …read more]]>

Current. Too little of it, and you can’t get where you’re going, too much and your hardware’s on fire. In many projects, it’s desirable to know just how much current is being drawn, and even more desirable to limit it to avoid catastrophic destruction. The humble current shunt is an excellent way to do just that.

Ohm’s Law.

To understand current, it’s important to understand Ohm’s Law, which defines the relationship between current, voltage, and resistance. If we know two out of the three, we can calculate the unknown. This is the underlying principle behind the current shunt. A current flows through a resistor, and the voltage drop across the resistor is measured. If the resistance also is known, the current can be calculated with the equation I=V/R.

This simple fact can be used to great effect. As an example, consider a microcontroller used to control a DC motor with a transistor controlled by a PWM output. A known resistance is placed inline with the motor and, the voltage drop across it measured with the onboard analog-to-digital converter. With a few lines of code, it’s simple for the microcontroller to calculate the current flowing to the motor. Armed with this knowledge, code can be crafted to limit the motor current draw for such purposes as avoiding overheating the motor, or to protect the drive transistors from failure.

In fact, such strategies can be used in a wide variety of applications. In microcontroller projects you can measure as many currents as you have spare ADC channels and time. Whether you’re driving high power LEDs or trying to build protection into a power supply, current shunts are key to doing this.

Resistors come in all shapes and sizes!

With the theoretical side of things covered, it’s here that we veer towards the practical. If you’re new to electronics, when you hear “resistor”, you’re probably thinking of a little 1/4 watt beige device with some colourful bands indicating the value. However resistors come in all shapes and sizes. In fact, everything except superconducting materials have resistance – even just bare wire! So when you’re choosing a resistor to use as a current shunt, where should you start? The first thing to remember is that power loss is relative to resistance.

The power lost in the resistor is equal to the current squared, multiplied by the resistance. P = IV = I^2R = V^2/R. A high resistance will limit the current that can pass through the circuit, and also waste power as heat. For these reasons, the current shunt resistance should be as low as possible.

What this means in practical terms is that in some cases, a link of wire is chosen to act as the shunt. This is prevalent in many applications, such as motor controllers you might find on an electric skateboard or e-bike. As long as the resistance of the wire link is known, it can be used to calculate the current passing through it.

A brushed motor speed controller from an electric scooter. Note the wire link acting as a current shunt, circled in red.

The shunt is generally used to protect the speed controller from a load drawing too much current, or to limit the speed of the attached motor. If you want to play fast and loose with such a controller and are thirsty for more speed, there’s a simple trick. By cutting the connection from the shunt to the controller’s sense line, and instead tying the sense line to ground, it will appear as if no current is flowing since no voltage drop is measured. The speed controller will respond by giving all the power it can, which usually ends in flames as the transistors in the controller fail under excessive load.

Current shunts designed for taking accurate measurements in the tens of amps.

Other times, a very accurate current shunt may be desired during the bench testing of equipment. In this case, a precision current shunt may be used with a voltmeter to determine the current passing through the circuit. Typical shunts are generally rated to have a voltage drop of 50 mV at their rated current. Armed with a suitably sensitive voltmeter, it’s possible to measure large currents relatively safely – something not achievable with the average multimeter.

These are just a handful of ways current shunts can be used. Fundamentally, proper current measurement can make a wide variety of projects safer, more robust, and more reliable. The key is applying the basic principle of the current shunt with the correct hardware for your application, which will ensure that any measurements taken are reliable and safe.

]]>
https://hackaday.com/2018/02/08/how-current-shunts-work/feed/ 55 291754 Shunt
Possibly the Most Up-Cycled, Hacked E-Bike You’ll See All Week https://hackaday.com/2017/08/24/possibly-the-most-up-cycled-hacked-e-bike-youll-see-all-week/ https://hackaday.com/2017/08/24/possibly-the-most-up-cycled-hacked-e-bike-youll-see-all-week/#comments Thu, 24 Aug 2017 23:00:00 +0000 http://hackaday.com/?p=270059 When it comes to bringing an idea to life it’s best to have both a sense of purpose, and an eagerness to apply whatever is on hand in order to …read more]]>

When it comes to bringing an idea to life it’s best to have both a sense of purpose, and an eagerness to apply whatever is on hand in order to get results. YouTube’s favorite Ukrainians [KREOSAN] are chock full of both in their journey to create this incredible DIY e-bike using an angle grinder with a friction interface to the rear wheel, and a horrifying battery pack made of cells salvaged from what the subtitles describe as “defective smartphone charging cases”.

Battery pack made from cells salvaged out of defective equipment. Sometimes, you use what you have on hand.

What’s great to see is the methodical approach taken to creating the bike. [KREOSAN] began with an experiment consisting of putting a shaft on the angle grinder and seeing whether a friction interface between that shaft and the tire could be used to move the rear wheel effectively. After tweaking the size of the shaft, a metal clamp was fashioned to attach the grinder to the bike. The first test run simply involved a long extension cord. From there, they go on to solve small problems encountered along the way and end up with a simple clutch system and speed control.

The end result appears to work very well, but the best part is the pure joy (and sometimes concern) evident in the face of the test driver as he reaches high speeds on a homemade bike with a camera taped to his chest. Video is embedded below.

Personal electric vehicles are fertile ground for hobbyist experimentation, and while everyone might have their own take on a DIY e-bike let’s not forget that unique projects like the Snow Bike are out there as well.

Thanks for the tip, [bat]!

]]>
https://hackaday.com/2017/08/24/possibly-the-most-up-cycled-hacked-e-bike-youll-see-all-week/feed/ 32 270059 KREOSAN E-Bike Headliner
DIY Wire Spooler with Clever Auto-Tensioning System https://hackaday.com/2017/02/05/diy-wire-spooler-with-clever-auto-tensioning-system/ https://hackaday.com/2017/02/05/diy-wire-spooler-with-clever-auto-tensioning-system/#comments Sun, 05 Feb 2017 15:01:34 +0000 http://hackaday.com/?p=242389 [Solarbotics] have shared a video of their DIY wire spooler that uses OpenBeam hardware plus some 3D printed parts to flawlessly spool wire regardless of spool size mismatches. Getting wire from …read more]]>

[Solarbotics] have shared a video of their DIY wire spooler that uses OpenBeam hardware plus some 3D printed parts to flawlessly spool wire regardless of spool size mismatches. Getting wire from one spool to another can be trickier than it sounds, especially when one spool is physically larger than the other. This is because consistently moving wire between different sizes of spools requires that they turn at different rates. On top of that, the ideal rate changes as one spool is emptying and the other gets larger. The wire must be kept taut when moving from one spool to the next; any slack is asking for winding problems. At the same time, the wire shouldn’t be so taut as to put unnecessary stress on it or the motor on the other end.

There aren’t any build details but the video embedded below gives a good overview and understanding of the whole system. In the center is a tension bar with pulleys on both ends though which the wire feeds. This bar pivots at the center and takes up slack while its position is encoded by turning a pot via a 3D printed gear. Both spools are motor driven and the speed of the source spool is controlled by the position of the tension bar. As a result, the bar automatically takes up any slack while dynamically slowing or speeding the feed rate to match whatever is needed.

There’s nothing like facing down a repetitive and lengthy task to get a good solution brewing. This reminds us of another DIY automation solution to a wire-related need: a contraption to cut 1,000 pieces of wire.

]]>
https://hackaday.com/2017/02/05/diy-wire-spooler-with-clever-auto-tensioning-system/feed/ 19 242389 wire-spooler-headliner
Beautiful Cardboard Robot Build https://hackaday.com/2016/06/16/beautiful-cardboard-robot-build/ https://hackaday.com/2016/06/16/beautiful-cardboard-robot-build/#comments Thu, 16 Jun 2016 08:01:29 +0000 http://hackaday.com/?p=207060 [Miloslav Stibor] may have built Mimobot 2.1 out of cardboard so that it’s not very heavy, but the robot is absolutely no lightweight. Read through his logs (in Czech, or …read more]]>

[Miloslav Stibor] may have built Mimobot 2.1 out of cardboard so that it’s not very heavy, but the robot is absolutely no lightweight. Read through his logs (in Czech, or in translation) and you’ll see what we mean.

Our favorite feature is the recharging dock and docking connectors, made respectively out of spring-loaded rivet ferrules and copper-tape-covered cardboard. The video found on that page is also absolutely brilliant: watch in awe as it climbs over children’s books, pulls a wooden train, or scales a mountain of pillows.

We wrote [Miloslav] and asked about the continuous-rotation servos, because they ran so smoothly at low speeds. He replaced the potentiometer with a pair of “carefully matched” 2.2 k resistors, and drives them with a PWM signal. Sounds easy, and obviously works very well. We were always under the impression that it was a little bit more complicated to get proportional control of hobby servos. We’ll have to experiment.

The wheels and lightweight frame (made of “military grade” cardboard — saturated with a wood/paper glue) make it entirely capable in living-room environments covered in cables or rugs, which is something we can’t say about our purchased vacuum-cleaner-bot. And the cell-phone remote interface that lets him control the onboard camera and its elevation and lighting. Driving the thing around with the phone control looks fun.

In short, if you build small robots, give this one a look. Something very much like this is now on our short must-build list. And we can’t wait to see Mimobot v3!

]]>
https://hackaday.com/2016/06/16/beautiful-cardboard-robot-build/feed/ 16 207060 IMG_25161_featured