User Tools

Site Tools


xiang_luo_final_project

The Sunflower Camera Project

Drafting idea: Creating a Teletubbies House like structure, and have the camera hidden within.

Testing Phrase:

Materials used

Inner part Servo motor, Arduino Uno, Jumping wires, Breadboard, Raspberry pi with camera module, Power source of choice,

Outer/Deco part Artificial flower, Artificial pot covered with fake moss. (Both can be replaced with real plants and stuff.) Scissors and hot glue.

Schematics

Code of the servo through Arduino

// Modified from code found on https://www.instructables.com/id/Arduino-Servo-Motors/

// Include the Servo library 
#include <Servo.h> 
// Declare the Servo pin 
int servoPin = 3; 
// Create a servo object 
Servo Servo1; 
void setup() { 
   // We need to attach the servo to the used pin number 
   Servo1.attach(servoPin); 

   
}
float degree = 0.0;
bool sign =true;

void loop(){ 

  for (int i = 0; i < 360; i++) {
    degree +=.5;
    Servo1.write(degree); 
    delay(1000); 
  }
    for (int i = 360; i > 0 ; i--) {
      degree -= .5;
    Servo1.write(degree); 
    delay(1000); 
  }

//  for (int i = 0; i < 180; i++) {
//    Servo1.write(i); 
//    delay(500); 
//  }
//    for (int i = 180; i > 0 ; i--) {
//    Servo1.write(i); 
//    delay(500); 
//  }
}

Final Documenting video

Parts breif introduction

https://youtu.be/Zxm0fd4GtG0

More recording of the flower camera rotating & inspirations that lead to the project

https://youtu.be/zVPd4uBfrVQ

xiang_luo_final_project.txt · Last modified: 2019/08/11 00:29 by radical