Cov txheej txheem:

KillingMinion: 5 Kauj Ruam
KillingMinion: 5 Kauj Ruam

Video: KillingMinion: 5 Kauj Ruam

Video: KillingMinion: 5 Kauj Ruam
Video: Maroon 5 - Girls Like You ft. Cardi B (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
KillingMinion
KillingMinion

Los ntawm Yue, Yanan thiab Hao.

Txoj haujlwm tau ua los ua ib feem ntawm Kev Sib Tham Tsim thiab Kev Tsim Kho Digital hauv kev kawm ITECH masters program.

Qee leej ntawm peb tsis nco qab co ob txhais ceg tas li. Nrog lub xov tooj ntawm tes hauv koj lub hnab ris, qhov kev txav txav no tau hnov los ntawm sab hauv 'Accelerometer'. Ntawm bluetooth xa rov qab mus rau peb lub tshuab me me, lub tshuab ntxhua khaub ncaws ntawm cov iav yooj yim - cov kab ke sib txuas, uas muaj cov minion dai rau ntawm servo, tau tshwm sim. Tus minion yuav raug txav mus nrog cov saw thiab poob rau qhov kawg. Thaum koj tsis txawm pom tias koj tab tom ua dab tsi, R. I. P. Minion!

Kauj Ruam 1: Sau Cov Khoom

Cov npe khoom
Cov npe khoom

Cov npe khoom:

3D Luam cov khoom:

Platform (servo zaum, saw txuas, iav)

Minion & hleb

Arduino:

UNO R3 Tus Tswj Xyuas Haujlwm

830 khi-pin breadboard

Stepper lub cev muaj zog (28BYJ48 5V DC)

UNL2003 Stepper Motor tsav tsav

Servo tsav

Bluetooth tus txais

Piezo buzzer

9V roj teeb nrog DC

9V roj teeb adapter

330R lossis siab dua resistor *2

LED *2

Jumper xov hlau

Lwm tus

4mm ntoo ntoo (txav cov kab)

Saw (kua muag los ntawm Logo tsheb)

M3 bolts thiab ntsia hlau tsav tsheb

Xov tooj (Android)

Kauj ruam 2: Sib sau ua ke lub Platform

Sib sau ua ke lub Platform
Sib sau ua ke lub Platform
Sib sau ua ke lub Platform
Sib sau ua ke lub Platform
Sib sau ua ke lub Platform
Sib sau ua ke lub Platform

Stepper motor thiab servo motor yog ib feem ntawm kev tswj Circuit Court. Servo lub cev muaj zog txuas ncaj qha rau hauv 830 khi-pin breadboard thiab Uno R3 tswj lub rooj tsavxwm, qhov stepper lub cev muaj zog xav tau txuas rau UNL2003 Stepper Motor tsav tsheb thawj zaug, tom qab ntawd txuas rau Uno R3 tswj lub rooj tsavxwm.

Kauj Ruam 3: Kev Tshawb Fawb thiab Cov Cai

Cov voj voog thiab Cov Cai
Cov voj voog thiab Cov Cai
Cov voj voog thiab Cov Cai
Cov voj voog thiab Cov Cai
Cov voj voog thiab Cov Cai
Cov voj voog thiab Cov Cai

Txhawm rau tswj kev txav chaw ntawm cov saw, cov hauv paus hauv qab no tau txiav txim siab:

0. Nruab App thiab txuas nws mus rau lub tshuab ntawm bluetooth. Thiab, pib co!

1. tom qab tau txais cov cim qhia, lub zog pib tig thiab cov saw pib txav ntawm qhov nrawm.

2. cov cim txuas mus ntxiv, kom cov minion nqa mus txog rau lwm qhov kawg ntawm txoj kev, tom qab ntawd lub tshuab hluav taws xob nres thiab lub cav servo tig 90 degree, tso cov minion rau hauv lub hleb.

3. thaum taug txoj saw hlau, yog cov cim nres rau lub sijhawm zoo ib yam, lub zog rov qab thiab cov saw txav rov qab los ntawm qhov nrawm heev.

4. los ntawm kev rov pib dua hauv qab ntawm Uno R3 tswj lub rooj tsavxwm, lossis yog tias qhov rov qab txav mus los pib qhov kawg ntawm txoj kev, cov txheej txheem tau rov pib dua.

5. txhawm rau ua tej yam ntxim nyiam me ntsis, qee lub suab nrov tau ua thaum tsiv thiab nqis. Koj tseem tuaj yeem txuas lub suab thiab suab paj nruag los ntawm Apps hauv koj lub xov tooj. Muaj kev lom zem nrog qhov ntawd.

#include #include #include #include "pitches.h"

const int kauj ruam = 64;

const int counterMax = qib * 9; int counter = 0;

SoftwareSerial mySerial (7, 8);

Stepper stepper (kauj ruam, 9, 11, 10, 12); Servo myServo;

const int Buzzer = 5;

bool isAlive = muaj tseeb;

char cov ntaub ntawv;

int suab paj nruag = {

NOTE_CS4, NOTE_CS4, NOTE_CS4, NOTE_CS4, NOTE_CS4, 0, NOTE_CS4, NOTE_CS4, NOTE_CS4, 0, NOTE_CS4}; int noteDurations = {2, 2, 2, 2, 8, 8, 8, 8, 8, 8, 8, 8, 8};

void teeb tsa () {

Serial.begin (9600); mySerial.begin (9600); myServo.attach (3); pinMode (4, INPUT); stepper.setSpeed (80);

thaum (digitalRead (4) == LOW) {

stepper.step (-1); } stepper.step (60); }

void voj () {

yog (mySerial.available ()> 0) {thaum (mySerial.available ()> 0) {data = mySerial.read (); } yog (counter <counterMax) {mySerial.print ("0"); rau (int thisNote = 0; thisNote = counterMax && isAlive) {mySerial.print ("2"); myServo.write (180); rau (int thisNote = 0; thisNote 1 && counter <counterMax) {mySerial.print ("1"); stepper.step (-1); txee -= 1; ncua (200); }}

Kauj Ruam 4: Kev Xeem Ua Haujlwm

Image
Image
Txhua Cov Ntaub Ntawv Peb Yuav Qhia
Txhua Cov Ntaub Ntawv Peb Yuav Qhia

Kauj Ruam 5: Txhua Cov Ntaub Ntawv Peb Yuav Qhia

Koj tuaj yeem pom txhua cov ntaub ntawv peb tuaj yeem sib qhia hauv qhov txuas no, suav nrog 3d-luam qauv, fritzing Circuit kos duab thiab arduino codings.

drive.google.com/open?id=1qImULCJQRdzlon4s…

Pom zoo: