# Smart Blind

**URL:** <https://forum.arduino.cc/t/smart-blind/619957>\
**Category:** Programming\
**Created:** [November 10, 2019, 8:46pm UTC](https://forum.arduino.cc/t/smart-blind/619957 "2019-11-10T20:46:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hmaki](https://avatars.discourse-cdn.com/v4/letter/h/90ced4/32.png) [@Hmaki](https://forum.arduino.cc/u/Hmaki)\
**Post date:** [November 10, 2019, 8:46pm UTC](https://forum.arduino.cc/t/smart-blind/619957/1 "2019-11-10T20:46:01Z")

</div>

Hi!  
I'm an another beginner who started a project that looked simple at the beginning. I have some programming problem with the calibration part of the lenght of the window. What I want is that: When you plug in the system it is waiting to push the button and when you push it it's start to going up and when it reaches the highest position you press it again and it's going down and when it is in the lowest position you press it again, it stoppes and it is store the number of the rotations.  
I would be very happy If someone have something similar code that can help me to make my own!  
Thank you!

what I use for that:  
-arduino nano  
-drv8825  
-modded 28byj-48  
-one button  
-power supply, etc.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 12:07am UTC](https://forum.arduino.cc/t/smart-blind/619957/2 "2021-05-06T00:07:35Z")

</div>

Closed on May 6, 2021, 12:07am UTC


