Stepper Motor? Encoder? It’s Both!

We always think it is interesting that a regular DC motor and a generator are about the same thing. Sure, each is optimized for its purpose, but inefficiencies aside, you can use electricity to rotate a shaft or use a rotating shaft to generate electricity. [Andriyf1] has a slightly different trick. He shows how to use a stepper motor as an encoder. You can see a video of the setup below.

It makes sense. If the coils in the stepper can move the shaft, then moving the shaft should induce a current in the coils. He does note that at slow speeds you can miss pulses, however. Again, the device isn’t really optimized for this type of operation.

The circuit uses an opamp-based differential amplifier to read the pulses from the coil. Two opamps on two coils produce a quadrature signal just like a normal encoder. When the shaft turns in one direction, one pulse will lead the other. In the other direction, the lead pulse will be reversed.

There’s code to let an Arduino read the pulses. And here’s plenty of code that will read quadrature on an Arduino or other processors. We’ve seen similar hacks done with hard drive motors which are quite similar, by the way.

Continue reading “Stepper Motor? Encoder? It’s Both!”

Laser Draws Weather Report

Have you ever wished that a laser could tell you the weather? If you have, then [tuckershannon] has you covered. He’s created a machine that uses a laser and some UV sensitive paper to draw the temperature and a weather icon! And that’s not all! It’s connected to the internet, so it can also show the time and print out messages.

Building on [tuckershannon]’s previous work with glow-in-the-dark drawing, the brains inside this machine is a Raspberry Pi Zero. The laser itself is a 5mw, 405nm laser pointer with the button zip-tied down. Two 28BYJ-48 stepper motors are used to orient the laser, one for the rotation and another for the height angle. Each stepper motor is connected to a motor driver board and then wired directly to the Pi.

The base and arm that holds the laser were designed in SolidWorks and then 3d printed. The stepper motors are mounted perpendicular to one another and then the laser pointer mounted at the end. The batteries have been removed from the laser and the terminals are also wired directly to the raspberry pi. The Pi is then connected to Alexa via IFTTT so that it can be controlled by voice from anywhere.

The real beauty of [tucker]’s laser drawing machine is that is will draw out the temperature and weather icon, as well as drawing the time in either digital or analog forms! We’ve seen [tuckershannon]’s work before. The precursors to this project were his clock which uses a robotic arm with a UV LED on it to draw the time and another clock which uses similar robotic arm only with a laser attached. Let’s hope we get to see the rest of [tucker]’s progress!

Continue reading “Laser Draws Weather Report”

Watch The World Spin With The Earth Clock

With the June solstice right around the corner, it’s a perfect time to witness first hand the effects of Earth’s axial tilt on the day’s length above and beyond 60 degrees latitude. But if you can’t make it there, or otherwise prefer a more regular, less deprived sleep pattern, you can always resort to simulations to demonstrate the phenomenon. [SimonRob] for example built a clock with a real time rotating model of Earth to visualize its exposure to the sun over the year.

The daily rotating cycle, as well as Earth’s rotation within one year, are simulated with a hand painted plastic ball attached to a rotating axis and mounted on a rotating plate. The hand painting was done with a neat trick; placing printed slivers of an atlas inside the transparent orb to serve as guides. Movement for both axes are driven by a pair of stepper motors and a ring of LEDs in the same diameter as the Earth model is used to represent the Sun. You can of course wait a whole year to observe it all in real time, or then make use of a set of buttons that lets you fast forward and reverse time.

Earth’s rotation, and especially countering it, is a regular concept in astrophotography, so it’s a nice change of perspective to use it to look onto Earth itself from the outside. And who knows, if [SimonRob] ever feels like extending his clock with an aurora borealis simulation, he might find inspiration in this northern lights tracking light show.

This is a spectacular showpiece and a great project you can do with common tools already in your workshop. Once you’ve mastered earth, put on your machinists hat and give the solar system a try.

3D Printer Tech Cuts Paper

While 3D printing has been a great thing all by itself, it has also made electromechanical hardware a commodity item. Instead of raiding an old printer for motors and rods of unknown provenance, you can now buy everything very inexpensively due to the economy of scale and offshore manufacturing.

[Mr. Innovation] proves this point with his recent paper cutting machine which feeds and slices paper strips with user-selected width and quantity. He did steal one roller assembly from an old printer, but most of it is straight out of a 3D printer build. There’s NEMA stepper motors, modular motor driver boards, smooth rods, belts, and pulleys.

The blade of the cutter is just a standard snap off box cutter blade. It is angled so it doesn’t drag when the motor pulls it back to the home position after a cut. Honestly, we might have made the paper mechanism retract the paper a bit at that point, but that would be simple to add to the device’s firmware.

Continue reading “3D Printer Tech Cuts Paper”

Jeremy Cook's strandbeest kit RC conversion

Stepper Motor And Key Fob Controlled Strandbeest

We never tire of watching Strandbeests with their multitude of legs walking around, and especially enjoy the RC ones. [Jeremy Cook], prolific Strandbeest maker, just made one by motorizing and adding remote control to a small, plastic wind-powered kit.

We’ve seen a Strandbeest kit conversion like this before, such as this DC motor one but it’s always interesting to see how it can be done differently. In [Jeremy’s], he’s gone with two inexpensive $2.00 stepper motors. The RC is done using a keyfob transmitter with a receiver board wired into an Arduino Nano’s analog pins. He tried driving it directly off the LiPo batteries but had issues which he solved by adding a 5-volt regulator. Check out his build and the modified Strandbeest walking around in the video below.

Continue reading “Stepper Motor And Key Fob Controlled Strandbeest”

Glow In The Dark Globe On A Spherical Screen

Terrestrial globes are almost a thing of the past in an era of Google Earth, but they can still be an exciting object worth hacking together, as [Ivan Miranda] shows with his glow-in-the-dark globe. It’s a globe, it’s a display, and it’s a great use of glow in the dark filament.

For the mechanical part of this build, [Miranda] used glow in the dark filament to 3D print a sphere and a reinforcing ring that hides inside. A threaded rod through the middle secured with screws and bearings make an appropriate spindle, and is attached to a stepper motor in the 3D printed stand. So far, it’s a sphere made of glowey plastic. Where’s the ‘globe’ part coming from?

To project a globe onto this sphere, [Miranda] used a strip of WS2812B LEDs stuck to the inside of the stand’s arc are programmed to selectively illuminate the globe as it rotates on its axis. After a brief hiccup with getting the proper power supply, he was ready to test out his new….. giant light ball.

It turns out, the filament was a bit more transparent than he was expecting so he had to pull it all apart and cover the interior with aluminium tape. [Miranda] also took the chance to clean up the wiring, code, and upgrade to a Teensy 3.1 before another test.

Despite the resulting continental projection being upside-down, it worked! [Miranda] added a USB cable before he closed it up again in case he wanted to reprogram it and display any number of images down the line.

[Thanks for the tip, olivekrystal!]

Pi Zero Gives Telescope Hands Free Focus

It seems like [Jason Bowling] never gets tired of finding new ways to combine the Raspberry Pi with his love of the cosmos. This time he’s come up with a very straightforward way of focusing his Celestron 127SLT with everyone’s favorite Linux SBC. He found the focus mechanism on the scope to be a bit fiddly, and operating it by hand was becoming a chore. With the Pi Zero and a stepper motor, he’s now able to focus the telescope with more accuracy and repeatability than clumsy human fingers will be able to replicate.

On this particular type of telescope, the focus knob is a small knob on the back of the scope (rather than on the eyepiece), which just so happens to be the perfect size to slide a 15mm bore pulley over. With a pulley on the focus knob, he just needed to mount a stepper motor with matching toothed pulley next to it and find a small enough belt to link them together. Through the magic of Amazon and McMaster-Carr he was able to find all the parts without having to make anything himself, beyond the bent piece of aluminum he’s using as a stepper mount.

To control the stepper, [Jason] is using an EasyDriver connected up to the Pi’s GPIO, which along with a 5V regulator (which appears to be a UBEC from the RC world) is held in a tidy weather proof box mounted to the telescope’s tripod. The regulator is necessary because the whole setup is powered by a 12V portable “jump start” battery pack for portability. Handy when you’re stargazing in the middle of a field somewhere.

[Jason] promises a future blog post where he details how he used Flask to create a web-based control for the hardware, which we’ll be keeping an eye out for. In the meantime, he reports that his automated focus system is working perfectly and keeps the image stable in the eyepiece even while moving (something he was never able to do by hand).

Last year this same scope had a Raspberry Pi camera mounted to it to deliver some very impressive pictures without breaking the bank. We’re interested in seeing how [Jason] ties these systems together going forward.