Project "Automatic Window Blinds" - Debugging and Problems

in #steempress5 years ago


Project "Automatic Window Blinds"

I think the project is working well. Debugging the codes was very hard for starters, deep digging of research from Servos, reading those datasheets are troublesome. There has been some changes from the Codes.

GitHub Repo Link

https://github.com/Chuuuckie/ProjectArduinoWindow

Change of Codes

//include the servo library

#include <Servo.h>
Servo servo1;
//Servo servo2;

void setup()
{

servo1.attach(8);
Serial.begin(9600);
//servo1.write(180);
}

void loop()
{

int val = analogRead(A0);
int lightValue;
unsigned int AnalogValue;
AnalogValue = analogRead(A0);

//lightValue = map(val, 10, 630, 0, 180);

if (AnalogValue <=230)
servo1.write(180);
delay(1000);

else if (AnalogValue <=

//delay(15);
//servo1.write(lightValue);
Serial.println(AnalogValue);
Serial.println(lightValue);

}


Hardware Update

Instead using the SERVO MODEL MG995 to be specific, we will be using the SG90 SERVO, and will be updating the codes after another test-runs tomorrow.

Problems Encountered

Since the Servo Model has a different output, if we set the code servo1.write(180) it does not turn 180 degrees but instead it goes full clockwise/counterclockwise, which is the problem because the servo has no LIMIT for rotating. It is never ending, as for the next SERVO MODEL SG90, based from its datasheet - it will precisely turn to 90 degrees to 180 degrees depending from the mapping of its LDR.

The LDR has no problems at all, but we will still be buying (Non Module LDR) because we are using a MODULATED LDR. Therefore the resistor from the module can be adjusted, so as the flow of the current. Let us see for tomorrow if we will be able to Cope up with proper output.

All details and source references will be accredited after making the Project at GitHub repo.

Posted from my blog with SteemPress : http://chuckunlimited.net/index.php/2019/05/06/project-automatic-window-blinds-debugging-and-problems/
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!

Congratulations @chuuuckie! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 13000 upvotes. Your next target is to reach 14000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

SteemitBoard - Witness Update
SteemitBoard to support the german speaking community meetups
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

bati😂

Posted using Partiko Android

Spammer ampota

Posted using Partiko Android

murag nindot post2😂

Posted using Partiko Android

Klaro kaayo spam rka 😂

Posted using Partiko Android

Coin Marketplace

STEEM 0.36
TRX 0.12
JST 0.039
BTC 70112.96
ETH 3549.99
USDT 1.00
SBD 4.71