Giter Site home page Giter Site logo

coanda-effect-drone-rpi's Introduction

Coanda-Effect-Drone-Rpi

Rpi 접속

1. RPI 전원 연결
2. window -> 원격데스크톱(remote desktop) 열기
   Mac OS -> microsoft remote desktop 어플 다운 
3. 192.168.2.199 or 192.168.2.189 입력
4. shell 을 켠 뒤, cd CEDR

* 와이파이 연결이 KSQ Student 로 되어있어야 함




Class 사용법

bldc_motor.py

Bldc Motor Class
code example(test_class.py)

from esc_class import bldc_motor

var = bldc_motor(4, 2000, 700, 800)
print "For first time launch, select calibrate"
print "Type the exact word for the function you want"
print "calibrate OR manual OR control OR arm OR stop"

inp = raw_input()
if inp == "manual":
    var.manual_drive()
elif inp == "calibrate":
    var.calibrate()
elif inp == "arm":
    var.arm()
elif inp == "control":
    var.control()
elif inp == "stop":
    var.stop()
else :
    print "Thank You for not following the things I'm saying... now you gotta restart the program STUPID!!"

Servo.py

Servo Motor Class
code example)

from Servo import Servo

servo_1 = Servo(18, GPIO)     # Servo(pin, GPIO)
servo_2 = Servo(17, GPIO)     # pin is GPIO pin number

servo_1.motor_ctrl(argument)

Gyro.py

Gyro Class
code example)

from Gyro import Gyro
gyro = Gyro()

accel_x, accel_y, accel_z = gyro.get_accel_data_g()
x_angle = gyro.get_x_rotation(accel_x, accel_y, accel_z)
y_angle = gyro.get_y_rotation(accel_x, accel_y, accel_z)




RPi - Device(including Sensor) 연결

RPi GPIO


BLDC Motor

검정선 -> Raspberrypi GND
흰선   -> Raspberrypi GPIO

Servo Motor

빨간선 -> Raspberrypi Voltage, 3.3V or 5V 
주황선 -> Raspberrypi GPIO 
갈색선 -> Raspberrypi GND 

Gyro Sensor

GYRO VCC  –> Raspberrypi Vortage, 3.3V or 5V
GYRO GND  –> Raspberrypi GND
GYRO SCL  –> Raspberrypi SCL
GYRO SDA  –> Raspberrypi SDA

GPS Sensor

GYRO VCC  –> Raspberrypi Vortage, 3.3V or 5V
GYRO GND  –> Raspberrypi GND
GYRO SCL  –> Raspberrypi SCL
GYRO SDA  –> Raspberrypi SDA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.