Close Menu

    Subscribe to Updates

    Get the latest Tech news from SynapseFlow

    What's Hot

    Ulefone Armor 35 Pro with a 1.2 km laser rangefinder and 11,000 mAh battery goes on sale next month for $430

    November 22, 2026

    The rumored vivo I2606 is powered by the Snapdragon 8s Gen 4

    November 22, 2026

    Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE

    November 22, 2026
    Facebook X (Twitter) Instagram
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    Facebook X (Twitter) Instagram YouTube
    synapseflow.co.uksynapseflow.co.uk
    • AI News & Updates
    • Cybersecurity
    • Future Tech
    • Reviews
    • Software & Apps
    • Tech Gadgets
    synapseflow.co.uksynapseflow.co.uk
    Home»Software & Apps»An ESP32, an $4 motor, and I’ve got a smart window shade in Home Assistant
    An ESP32, an  motor, and I’ve got a smart window shade in Home Assistant
    Software & Apps

    An ESP32, an $4 motor, and I’ve got a smart window shade in Home Assistant

    The Tech GuyBy The Tech GuyNovember 22, 2026No Comments5 Mins Read1 Views
    Share
    Facebook Twitter LinkedIn Pinterest Email
    Advertisement


    My roller blinds work perfectly well, except for the part where I had to get up and pull the chain. Replacing the whole thing with expensive smart shades felt wasteful, especially when I have an ESP32, a small motor, and a 3D printer sitting idle. Surely those could do the pulling for me?

    Advertisement

    That question turned into a project involving a custom 3D-printed gear, some motor-driving wiring, and an ESPHome config. The result pulls my existing blind in Home Assistant, complete with a position slider and all the automations I could ever want.


    RGB Strip in green color with ESP32.


    I built an ESP-powered internet-outage alarm I can’t miss for just $5

    My ISP can’t gaslight me anymore.

    I borrowed someone else’s blind motor and downgraded every part

    Same idea, worse parts, and no buttons because I didn’t have any

    My starting point was nik.po’s open-source roller blind project. Its design uses a JGY-370 12V worm-gear motor, a TB6612FNG driver, and an ESP32-C3 running ESPHome. Two buttons provide physical control, while motor run time stands in for position sensors.

    My approach was slightly different because I only went with the parts I had on hand. This involved a V1 ESP32, a yellow TT gear motor (the sort used in hobby robot cars), an ancient L293D motor driver module, and no buttons, because I didn’t have any lying around.

    The biggest departure was the motor. Mine is a two-wire, 3 to 6 V DC motor, and its shaft didn’t match the original gear. The L293D motor driver is also rather lossy and can lose up to 2V when sending power to the motor, which I offset by using a 12V power supply and limiting the output with PWM.

    Your blind’s chain decides what the gear looks like

    A 0.4mm pitch difference is enough to make a chain skip

    3D Printed gear with slide chain slots.
    Photo taken by Yadullah Abidi | No attribution required.

    The original gear was a 35mm-wide, 13mm-thick sprocket with 16 rounded bead pockets, a connecting card groove, and raised retaining rims. Its center had a single-flat hole for a 6mm motor shaft.

    My chain had roughly 4mm beads spaced about 5.5mm apart, compared to the approximately 5.9mm pocket spacing on the original. That difference sounds small until several beads engage at once. Each mismatched pocket adds another chance for the chain to pop out and skip. Given my motor was already a downgrade over the original project, I needed as much engagement as possible.

    The motor itself had a different kind of shaft compared to the original project. Its plastic shaft had two flats and measured differently from the original gear. Adapting this gear would mean changing both its working surface and its center, so I started fresh.

    A quick design job in FreeCAD with Claude’s assistance got me the perfect gear. It snap-fitted tightly on the motor’s shaft and matched my specific chain’s beads perfectly.

    GPIO pins won’t spin a motor, so a driver does the work

    A 12V supply, a 55 percent duty cycle, and a driver that wastes 2V

    Side view of ESP32 based shade moving system connected to shade chain.
    Photo taken by Yadullah Abidi | No attribution required.

    Now, the driver I had was the good old L298N-style board, often used to teach motor control with simpler boards like the Arduino UNO. These boards use the enable input for PWM speed control and lose quite a lot of voltage internally. Regardless, they’re extremely simple to wire up and use.

    A 12V adaptor powers the driver, and the ESP32 gets its own USB power, which is yet to be merged into the same 12V input. Since the input voltage is double what the motor expects, I set PWM to a 55 percent duty cycle. After the driver’s losses, that gives a rough average near 5.5V. The motor still receives higher-voltage pulses, so this isn’t the same as powering it from a proper low-voltage supply. But for a jury-rigged project built from whatever I had lying around, it works.

    Home Assistant guesses where the blind is, and so do I

    Time-based position is an assumption, not a measurement

    ESP32 smart shade controls in Home Assistant.
    Screenshot taken by Yadullah Abidi | No attribution required.

    ESPHome’s time-based cover platform supplies the trick that makes this project possible: estimating position from how long the motor runs. It needs no position feedback, but the reported percentage is an assumption, not an exact measurement.

    This means I had to time complete opening and closing runs separately and use both durations in the configuration. Home Assistant then provides open, close, stop, and percentage position. I also added two manual controls in Home Assistant to compensate for the lack of physical buttons on the device.

    Regardless, without limit switches or a proper stepper or servo motor, careful calibration matters. A jam or slipping chain can easily leave the estimated position wrong and cause the blind controls to be useless.

    A smarter blind, a few compromises, one flimsy mount

    The blind stayed, the chain got a motor, and the mount is a sketch

    The best part about this project is that the blind itself hasn’t become obsolete. I changed how its chain moves, not the whole window covering. The custom gear solved the mechanical mismatch, and ESPHome connects it to the system I already use.


    ESP32 running NAT router perched on a router.


    Wi-Fi has a weird new smart-home use case: detecting people

    Your Wi-Fi can tell when you’re home, and no phone is required.

    There are some compromises that need further work though. The position is estimated, the motor driver wastes power, and the entire circuit is mounted on a flimsy mount that I sketched up to test everything. The chain loop is still there, so keep it tensioned and out of reach of children and pets. Still, this is exactly the kind of upgrade I enjoy.

    Advertisement
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    The Tech Guy
    • Website

    Related Posts

    I turned off every Galaxy AI feature in One UI 9 for a week, and I only missed 2 of them

    November 22, 2026

    Your Google TV isn’t complete until you replace its ad-filled home screen

    November 21, 2026

    Your phone could soon stop you from doomscrolling, if regulators get their way

    November 21, 2026

    I installed this free dashboard to catch my home server when it goes down

    November 20, 2026

    Hulu has an alien invasion thriller that’s almost completely silent, and it’s terrifying

    November 20, 2026

    I ran a free checkup on my saved passwords, and 8 of them were already leaked

    November 19, 2026
    Leave A Reply Cancel Reply

    Advertisement
    Top Posts

    You don’t need a NAS to self-host — I proved it with hardware from my closet

    June 7, 2026395 Views

    Spotify is giving one of its best playlists a big visual upgrade to give subscribers ‘a closer connection’ to its New Music Friday curators — and I think it could be the update it’s always needed

    June 12, 2026215 Views

    The iPad Air brand makes no sense – it needs a rethink

    October 12, 202519 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Advertisement
    About Us
    About Us

    SynapseFlow brings you the latest updates in Technology, AI, and Gadgets from innovations and reviews to future trends. Stay smart, stay updated with the tech world every day!

    Our Picks

    Ulefone Armor 35 Pro with a 1.2 km laser rangefinder and 11,000 mAh battery goes on sale next month for $430

    November 22, 2026

    The rumored vivo I2606 is powered by the Snapdragon 8s Gen 4

    November 22, 2026

    Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE

    November 22, 2026
    categories
    • AI News & Updates
    • Cybersecurity
    • Future Tech
    • Reviews
    • Software & Apps
    • Tech Gadgets
    Facebook X (Twitter) Instagram Pinterest YouTube Dribbble
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    © 2026 SynapseFlow All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.