Flower Dropping Box Wireless Controlling With 1 Km Range

Introduction: Flower Dropping Box Wireless Controlling With 1 Km Range

Project Name is flower dropping box this project based on welcome entries & functions like marriages
This project have to 2 km range & easily to remote access and this project cost have to very minimum amount.

Step 1: Materials Required

Arduino uno
Rf sensor 434 MHz
Stepper motor
UlN2003 motor driver
Connection wire

Step 2: Code

//button
#include
// Define number of steps per rotation:
const int stepsPerRevolution = 550;
unsigned long duration;
// Wiring:
// Pin 8 to IN1 on the ULN2003 driver
// Pin 9 to IN2 on the ULN2003 driver
// Pin 10 to IN3 on the ULN2003 driver
// Pin 11 to IN4 on the ULN2003 driver
// Create stepper object called 'myStepper', note the pin order:

const int buttonPin = 3; // the number of the pushbutton pin
//const int ledPin = 13; // the number of the LED pin
Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);

// variables will change:
int buttonState = 1; // variable for reading the pushbutton status
void setup() {
// Set the speed to 5 rpm:
myStepper.setSpeed(15);

// Begin Serial communication at a baud rate of 9600:
Serial.begin(9600);
// initialize the LED pin as an output:
//pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}

void loop(){
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);
// Step one revolution in one direction:



// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
duration = pulseIn(buttonPin, HIGH);
if (duration < 1) {
// turn LED on:
digitalWrite('Stepper',HIGH);
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);

// Step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}
else {
// turn off buttonPin:
digitalWrite('Stepper', LOW);
}
}

1 Person Made This Project!

Recommendations

  • Maps Challenge

    Maps Challenge
  • Fandom Contest

    Fandom Contest
  • Summer Fun: Student Design Challenge

    Summer Fun: Student Design Challenge

Comments