Open
Conversation
This is the schematic of self stabilization platform . In this I have used Servo motor to stabilize the platform. The reference of the platform is initiated with the reading of Gyroscope Sensor (MPU-6050) and the motor is activated in opposite direction when the reference position is disturbed.
This file contains the schematic of Automatic Gararge Door Opener which is controlled with the help of HC-05 Bluetooth Module and Arduino UNO
This is the code for Automatic Garage Door for Arduino IDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
`
/*
Stepper Motor Control -Automatic Garage_Door
This program drives a unipolar or bipolar stepper motor.
It will close the door for '1' input and open the door for '0' input.
*/
#include <Stepper.h>
#include <SoftwareSerial.h>
SoftwareSerial BT(0,1);
// creates a "virtual" serial port/UART
// connect BT module TX to D0
// connect BT module RX to D1
// connect BT Vcc to 5V, GND to GND
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins:
Stepper myStepper(stepsPerRevolution, 5,6,9,10);
void setup() {
BT.begin(9600); // set the data rate for the SoftwareSerial port
myStepper.setSpeed(60); // set the speed at 60 rpm
Serial.begin(9600); // initialize the serial port
}
char a; // stores incoming character from other device
void loop() {
if(BT.available())
{
// if text arrived in from BT serial...
a=(BT.read());
if(a=='1'){
Serial.write(a);
//clockwise direction
for(int i=0;i<=8;i++)//{
myStepper.step(stepsPerRevolution);
//delay(20);}
BT.write('1');
}
else if(a=='0'){
Serial.write(a);
// anti-clockwise direction
for(int i=0;i<=8;i++)//{
myStepper.step(-stepsPerRevolution);
//delay(20);}
BT.write('0');
}
}
}`