Project "Automatic Window Blinds" - Software Update

in #steempress5 years ago


CC


Project "Automatic Window Blinds"

What I am going to show you from this post is how to install the Arduino and configure it like a noob guy would do. I havent tried it yet because the bread board wires are not available at this moment. So I tried some research and Viola - I think this will work.


Install Arduino IDE

https://www.arduino.cc/en/Main/Software - Download it Here
https://www.filehorse.com/download-arduino/ - Recommended, since Windows 10 leads you to a different download path or whatever.


Source Code


//include the servo library

#include <Servo.h>

//create a servo object called servo1 Servo servo1;

Servo servo1; //There will be 2 Servos at this Point, but lets start with 1 only.
//Servo servo2;

void setup() {

servo1.attach(9);
//servo2.attach(8) 2nd Servo attached
}

void loop() {

int lightValue = analogRead(A0);

lightValue = map (lightValue, 0, 1023, 0, 180);

servo1.write(lightValue);

}

  • Check and Compile it
  • Then Upload it to your Arduino UNO

GitHub Repo Link

https://github.com/Chuuuckie/ProjectArduinoWindow (Updated as 3:15 PM PHT 5/5/2019)

Want More?

Read this - https://steemit.com/esteem/@tphn/engineering-project-line-follower-robot-without-microcontroller @tphn , the Developer of the system did not use any Microcontroller, which is a difficult project for some.


Posted from my blog with SteemPress : http://chuckunlimited.net/index.php/2019/05/05/project-automatic-window-blinds-software-update/
steempress.png
SteemPress Moderator | Discord Server

Sort:  

Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

Coin Marketplace

STEEM 0.35
TRX 0.12
JST 0.040
BTC 70351.33
ETH 3563.43
USDT 1.00
SBD 4.72