• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Blind Stepper Motor 3D Printer File Image 1
Blind Stepper Motor 3D Printer File Image 2
Blind Stepper Motor 3D Printer File Image 3
Blind Stepper Motor 3D Printer File Thumbnail 1
Blind Stepper Motor 3D Printer File Thumbnail 2
Blind Stepper Motor 3D Printer File Thumbnail 3

Blind Stepper Motor

Titafubaki avatarTitafubaki

October 29, 2023

printables-icon
DescriptionCommentsTags

Description

Material List:

  • 1x 28BYJ-48 (5V)
  • 1x Stepper driver board uln2003
  • 1x NodeMCU
  • 1x 608rs bearing
  • 1x M8 x 16mm bold
  • 1x Powersupply 5v 
  • 2x Screws and dovel to mount it to the wall
  • 9 - 13x M3 x 10mm Screw
  • 2x M3 Nut

I did use a universal PSU with 30W and was put the Voltage to 6V You can even go up to 9V but when you connect the NodeMCU make sure to use the VIN Connector.

I use ESPHome with this configuration


api:
  encryption:
    key: "****"
  services:
    - service: control_blind
      variables:
        target: int
      then:
        - stepper.set_target:
            id: my_stepper
            target: !lambda 'return target;'
        - sensor.template.publish:
            id: position
            state: !lambda 'return target;'


cover:
  - platform: template
    name: "Wohnzimmer"
    id: my_blind
    device_class: shade
    position_action:
      - stepper.set_target:
          id: my_stepper
          target: !lambda 'return -52000 +(int(52000 * pos));'
      - sensor.template.publish:
          id: position
          state: !lambda return id(my_stepper).current_position;     
    open_action:
      - stepper.set_target:
          id: my_stepper
          target: 1  # Set the target position for fully open (0 steps)
      - sensor.template.publish:
          id: position
          state: !lambda return id(my_stepper).current_position;
    close_action:
      - stepper.set_target:
          id: my_stepper
          target: -52000  # Set the target position for fully closed (-52000 steps)
      - sensor.template.publish:
          id: position
          state: !lambda return id(my_stepper).current_position;
    stop_action:
      - stepper.set_target:
          id: my_stepper
          target: !lambda 'return id(my_stepper).current_position;'
      - sensor.template.publish:
            id: position
            state: !lambda return id(my_stepper).current_position;
    optimistic: true
    assumed_state: true
    has_position: true

sensor:
  - platform: template
    name: "Wohnzimmer Position"
    id: position
    update_interval: 1s
    lambda: |- 
      return id(my_stepper).current_position;

stepper:
  - platform: uln2003
    id: my_stepper
    pin_a: D1
    pin_b: D2
    pin_c: D5
    pin_d: D6
    max_speed: 500 steps/s
    sleep_when_done: true

    # Optional:
    acceleration: inf
    deceleration: inf

The 52000 in the code is the steppes needed to go all the way down. This you have to figure out yourself for your window.

 

For windows that are right next to each other there is a 2x version so you only need to use one NodeMCU.

License:

Creative Commons — Attribution — Noncommercial — Share Alike

Related Models

Cable Corners... keep cables in corners! preview image

Cable Corners... keep cables in corners!

muzz64 profile image

muzz64

31,008

Headset Hanger 2.0 preview image

Headset Hanger 2.0

RMTB profile image

RMTB

16,829

Baby Birth Tag Holder for the wall  preview image

Baby Birth Tag Holder for the wall

Morganja profile image

Morganja

4,033

Universal Filament Filter and Lubricator preview image

Universal Filament Filter and Lubricator

CreativeTools profile image

CreativeTools

26,130

3D4U by Miele Coffee Clip preview image

3D4U by Miele Coffee Clip

3D4U powered by Miele profile image

3D4U powered by Miele

8,688

Haus-Familienaufsteller „Home“ mit Namensschildern preview image

Haus-Familienaufsteller „Home“ mit Namensschildern

Daniel Lippert profile image

Daniel Lippert

717

SHARKZ... Fun Multipurpose Clips / Holders / Pegs with moving jaws that bite! preview image

SHARKZ... Fun Multipurpose Clips / Holders / Pegs with moving jaws that bite!

muzz64 profile image

muzz64

24,684

Mechanical wall clock preview image

Mechanical wall clock

Harald Andersson profile image

Harald Andersson

6,982