Cov txheej txheem:

BookPusher: 8 Kauj Ruam (nrog Duab)
BookPusher: 8 Kauj Ruam (nrog Duab)

Video: BookPusher: 8 Kauj Ruam (nrog Duab)

Video: BookPusher: 8 Kauj Ruam (nrog Duab)
Video: Xav rov ntsib koj ib zaug dua. 8/8/2018 2024, Lub Xya hli ntuj
Anonim
Image
Image
Kev npaj
Kev npaj

Txoj haujlwm no yog ib qho ntawm Hacking Project rau koj Phau Ntawv Tus Kheej.

Cov caj npab no yuav pab koj khaws cov phau ntawv.

Kauj ruam 1: Kev npaj

Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj

1. Muaj qhov loj ntawm koj phau ntawv tus kheej (Piv txwv: peb phau ntawv tus kheej loj)

2. Deside qhov chaw (Hauv peb qhov xwm txheej, peb siv peb daim ntawv txiav plaub fab thiab ob phau ntawv)

3. Npaj Txhua Yam Khoom raws li daim ntawv teev npe

Cov Khoom Siv:

  • Arduino UNO × 1
  • Servo Motor (Ntauwd Pro SG 5010) × 5
  • DC 5V 2.0A Hloov Cov Khoom Siv Hluav Taws Xob (Lub zog sab nraud rau Servo Motors) × 1
  • Lub Hwj Chim Roj Teeb (rau 4 AAA roj teeb) (Sab nraud fais fab rau Arduino UNO) × 1
  • Nruab Nrab Breadboard × 1
  • 10KΩ resistors × 5
  • Laub Khawm Hloov × 5
  • Jumpwires (ntau yam)
  • Daim kab xev thiab super kua nplaum

Kauj ruam 2: Soldering cov Hloov

Image
Image
Ua caj npab thiab Thawv Nrog Laser Cutter
Ua caj npab thiab Thawv Nrog Laser Cutter

Saib cov yeeb yaj kiab siv kom paub meej

Kauj Ruam 3: Ua Caj Npab thiab Ntim Nrog Laser Cutter

Ua caj npab thiab Thawv Nrog Laser Cutter
Ua caj npab thiab Thawv Nrog Laser Cutter
Ua caj npab thiab Thawv Nrog Laser Cutter
Ua caj npab thiab Thawv Nrog Laser Cutter
  1. Ntsuas qhov loj ntawm qhov txuas rau lub cav thiab qhov loj ntawm lub laub khawm
  2. Kos rau Adobe Illustrator: Arm1, Arm2 (Hauv peb qhov xwm txheej, peb ua ke 3 txheej ntawm 4mm MDF, muaj thawj txheej txiav nrog cov duab txuas rau lub tshuab), thiab Box (xyuas kom muaj chaw txaus tso rau ntawm lub txee thiab qhov chaw rau breadboard, Arduino thiab roj teeb, thiab peb siv 4mm MDF)
  3. Txiav nrog laser txiav thiab zoo ib yam
  4. Nco ntsoov tias caj npab yuav tsis tsoo lub txee zoo li lub rooj zaum rov qab thaum txav tom qab teeb tsa hauv phau ntawv tus kheej, yog li, rov ua dua!

Kauj ruam 4: Coding thiab Upload rau Arduino

// Sau cov cai thiab teeb tsa lub kaum sab xis ntawm kev txav caj npab.

// Qhov no yog txoj cai tswj hwm 5 servo motors #include; // Nyeem Arduino tsev qiv ntawv rau kev tswj hwm Servo Tsav Servo myservo1; Servo myservo2; Servo myservo3; Servo myservo4; Servo myservo5;

const int buttonPin1 = 8; // pushbutton tus pin

const int servoPin1 = 2; // servo tus pin const int khawmPin2 = 9; const int servoPin2 = 3; const int buttonPin3 = 10; const int servoPin3 = 4; const int buttonPin4 = 11; const int servoPin4 = 5; const int buttonPin5 = 12; const int servoPin5 = 6;

int buttonState1 = 0; // qhov sib txawv hauv zos los tuav lub xeev khawm

int buttonState2 = 0; int buttonState3 = 0; int buttonState4 = 0; int buttonState5 = 0;

void teeb tsa () {

Serial.begin (9600); // Teeb tsa cov ntaub ntawv xov xwm myservo1.attach (servoPin1); pinMode (buttonPin1, INPUT); // Teeb tsa lub laub khawm kom dhau los ua tswv yim myservo2.attach (servoPin2); pinMode (buttonPin2, INPUT); myservo3.attach (servoPin3); pinMode (buttonPin3, INPUT); myservo4.attach (servoPin4); pinMode (buttonPin4, INPUT); myservo5.attach (servoPin5); pinMode (buttonPin5, INPUT); myservo1.write (90); // Teeb tsa thawj lub kaum ntawm servo motor myservo2.write (90); myservo3.write (0); myservo4.write (0); myservo5.write (0); }

void voj () {

buttonState1 = digitalRead (buttonPin1); buttonState2 = digitalRead (buttonPin2); buttonState3 = digitalRead (buttonPin3); buttonState4 = digitalRead (buttonPin4); buttonState5 = digitalRead (buttonPin5); Serial.println (buttonState1); // qhia teh buttonState1 cov ntaub ntawv ntawm Serial saib yog (buttonState1 == HIGH) {myservo1.write (90); // txiav txim siab lub kaum sab xis ntawm lub cev} lwm {myservo1.write (0); ncua (1500); } yog (buttonState2 == HIGH) {myservo2.write (90); } lwm {myservo2.write (0); ncua (1500); }

yog (buttonState3 == HIGH) {

myservo3.write (90); } lwm {myservo3.write (0); ncua (1500); }

yog (buttonState4 == HIGH) {

myservo4.write (90); } lwm {myservo4.write (0); ncua (1500); }

yog (buttonState5 == HIGH) {myservo5.write (90); } lwm {myservo5.write (0); ncua (1500); }}

Kauj ruam 5: Txhim Kho

Image
Image
Teeb
Teeb

Ua raws li teeb tsa teeb tsa, thiab saib cov vis dis aus kom paub meej ntxiv

Kauj Ruam 6: Txheeb Xyuas

Image
Image

Nco ntsoov tias

  1. txhua lub khawm ua haujlwm,
  2. txhua yam haum rau hauv lub thawv,
  3. cov xov hlau ntev txaus, thiab
  4. cable tuaj yeem ncav cuag lub ntsaws.

Kauj Ruam 7: Teeb

Image
Image
  1. Teeb tsa lub cav raws li koj lub txee rau khoom teeb tsa
  2. Siv daim kab xev los teeb tsa rau txoj haujlwm ua ntej
  3. Xyuas kom txhua caj npab thiab lub cev ua haujlwm
  4. Siv super kua nplaum kom ruaj khov rau lub cav!

Kauj Ruam 8: Txaus Siab Rau Nws hauv Koj Lub Neej

Image
Image

OK! Txoj haujlwm tau ua tiav tag nrho !!

Cia peb txaus siab siv cov khoom no thiab khoom siv hauv qab no rau koj tus kheej txoj haujlwm!

  1. qhov loj ntawm koj lub txee rau khoom
  2. txiav cov ntaub ntawv kaum
  3. puab caj npab
  4. lub thawv ntim khoom
  5. cov cai
  6. teeb tsa teeb

Pom zoo: