Cov txheej txheem:

SASSIE: Cov Txheej Txheem rau Kev Txaus Siab Tsis Txaus Siab thiab Kev Sib Tham Sib Tham: 5 Cov Kauj Ruam
SASSIE: Cov Txheej Txheem rau Kev Txaus Siab Tsis Txaus Siab thiab Kev Sib Tham Sib Tham: 5 Cov Kauj Ruam

Video: SASSIE: Cov Txheej Txheem rau Kev Txaus Siab Tsis Txaus Siab thiab Kev Sib Tham Sib Tham: 5 Cov Kauj Ruam

Video: SASSIE: Cov Txheej Txheem rau Kev Txaus Siab Tsis Txaus Siab thiab Kev Sib Tham Sib Tham: 5 Cov Kauj Ruam
Video: Txheej Txheem Kev Sib Tw Hu Nkauj Thiab Lub Hom Phiaj " XPK Hmong Music Foundation " EP: 05 2024, Hlis ntuj nqeg
Anonim
Image
Image
Qhov Chaw, Cov Khoom Siv thiab Cov Cuab Yeej
Qhov Chaw, Cov Khoom Siv thiab Cov Cuab Yeej

SASSIE yog lo lus teb rau lo lus nug uas peb txhua tus tau nug rau peb tus kheej thaum muaj kev ntsiag to txawv ntawm ib qho hauv peb lub neej, "Kuv puas yuav hais lus tom ntej?" Zoo tam sim no koj tsis tas yuav txhawj xeeb vim tias SASSIE tau tsim tshwj xeeb los lees paub qhov ua tsis meej pem, thiab tom qab ntawd tshem tawm nws los ntawm kev txiav txim siab yam leej twg yuav tsum tham tom ntej. Tam sim no koj tuaj yeem nkag mus rau hauv kev sib tham tsis muaj kev ntxhov siab, paub tias SASSIE muaj koj nraub qaum.

Kauj Ruam 1: Cov Khoom, Cov Khoom thiab Cov Cuab Yeej

Arduino Xeem

2 X Arduino Uno R3

2 X Arduino Microphone

1 X XBee Wireless SD Shield

1 X 1/2 w 8 Volt Hais Lus

1 X Ib nrab Loj Breadboard

1 X Arduino Stepper Tsav

1X ULN 2003 Stepper Tsav Tsav Tsav

1 X Micro Servo

Puag thiab Vaj Tsev (Laser Txiav Cheeb Tsam)

Txhua yam khoom hauv qab no tuaj yeem tab sis laser txiav ntawm Birch Ply Fullbed (32 "X 18")

1 - Hauv paus

1 X Hauv Qab Phaj

1 X Ntev ntev Ntev Qhov Siab Ncaj Lattice Sawb

1 X Sab Saum Toj Phaj

4 X Ntev Ntev Ntev Siab Siab Ncaj Lattice Sab Sawb Luag

2 - Qhov tseem ceeb

1 X Stepper Tsav Tshuab Ntxhua Khaub Ncaws

1 X Hauv Qab Phaj Loj

1 X Nruab Nrab Ntev Qhov Nruab Nrab Qhov Ncaj Ncaj Lattice Sawb

1 X Sab saum toj Lub Nplhaib

1 X Ntev Ntev Ntev Siab Siab Ncaj Lattice Sab Sawb

1 X Sab Saum Saum Phaj

1 X Cov Phaj Me Me (Rau Micro Servo)

3 - Microphone Stand

4 X Base Phaj

1 X 13 cm 3/16 Dowel (nrog rau sab ntawm 30 degrees)

1 X Me Me Phaj Plaub (Rau Microphone)

Kauj ruam 2: Circuit Court

Circuit Court
Circuit Court
Circuit Court
Circuit Court

Kauj Ruam 3: Tshuab Ua (Mechanics thiab Assembly)

Tshuab Ua (Mechanics thiab Sib dhos)
Tshuab Ua (Mechanics thiab Sib dhos)

1_Pre-los ua ke

  • (Tsis teb los tau) Xuab zeb tag nrho cov ntoo ntoo ply Cheebtsam rau qhov ua tiav tiav
  • Ntub tag nrho birch ply strip thiab tom qab ntawd khoov nws los tsim daim ntawv ncig.
  • Qhwv ib ncig ntawm cov kab txaij ntoo uas siv daim npog ntsej muag los tuav daim ntawv ncig
  • Cia nws zaum ib hmos rau kab txaij kom khaws daim ntawv ncig

2_ Vaj Tsev Los Ua Ke

Hauv paus

  1. Kua Cov Phaj Hauv Qab Hauv Qab Rau Cov Hauv Paus Ntawm Cov tawv nqaij
  2. Muab cov plaub Sab Hauv Qab Saum Plate Plate los ua ke thiab tom qab ntawd muab cov kua nplaum ntawd tso rau sab ntug ntawm Daim Phiaj Xwm Sab Saum Toj
  3. Kab xev Stepper lub cev mus rau hauv nruab nrab ntawm Cov Phaj Sab Saum Toj (Nco ntsoov coj mus rhaub ntawm tib sab ib sab li Sab Saum Toj Phaj & kho qhov tseeb hloov ib feem ntawm lub cav mus rau nruab nrab ntawm lub tshuab)
  4. ntxig rau Stepper Motor Washer mus rau Stepper Motor '

Lub ntsiab

  1. Kuaj Cov Phaj Hauv Qab Hauv Qab Rau Daim tawv nqaij tseem ceeb
  2. Kua nplaum Lub Xeev Lub Hauv Paus rau saum daim tawv nqaij tseem ceeb
  3. ntxig sab sawb rau sab sauv sab saum toj swb
  4. Kua nplaum Servo Motor Phaj perpendicular mus rau sab saum toj sawb

3_ Lub Rooj Sib Tham

  1. Ua tib zoo muab lub khob cij thiab ob UNO R3 nrog SD Shield sab hauv rau hauv qab
  2. Muab Cov Phaj Pem Hauv Paus Sab saum toj tso rau hauv lub thoob thiab xyuas kom tseeb tias txhua lub ntsuas pa thiab lub tshuab ua haujlwm dhau mus rau saum lub phaj qhib
  3. Kab xev Stepper lub cev mus rau hauv nruab nrab ntawm Cov Phaj Sab Saum Toj (Nco ntsoov coj mus rhaub ntawm tib sab ib sab li Sab Saum Toj Phaj & kho qhov tseeb hloov ib feem ntawm lub cav mus rau nruab nrab ntawm lub tshuab)
  4. Ntxig rau Stepper Motor Washer mus rau Stepper Motor
  5. Muab lub Cheebtsam tseem ceeb tso rau ntawm lub tshuab ntxhua khaub ncaws
  6. Txuas cov hlua khi sab hauv rau sab sawb puag puag
  7. Xev lub Servo Motor mus rau sab ntawm Servo Motor Plate nyob rau sab saum toj kawg (yuav tsum tau kais ib sab) thiab tom qab ntawd coj mus rhaub cov servo thaiv mus rau sab hauv ntawm sab sawb
  8. Txuas daim paib sab saum toj rau lub cav servo
  9. Coj mus rhaub sab kos npe rau ntawm Daim tawv nqaij tseem ceeb

4_Microphone Stand Assembly

  1. Kuaj plaub lub hauv paus ua ke
  2. Kua nplaum sab tiaj ntawm tus duav mus rau lub hauv paus
  3. Muab cov phaj microphone tso rau sab kaum ntawm lub duav
  4. kaw lub microphone mus rau lub phaj microphone

Kauj ruam 4: Programming

Vim tias qhov txwv me me ntawm Arduino Uno board, ob lub Arduino boards tau siv hauv txoj haujlwm no. Lub rooj tsavxwm tseem ceeb yog siv rau feem ntau ntawm kev ua haujlwm, suav nrog suav lub sijhawm nyob ntsiag to, ua cov ntaub ntawv suab, hais lus rau cov neeg siv, thiab sib tham nrog pawg thawj coj thib ob.

#ncig #ncig

#suav nrog

#suav nrog

// SD yuav tsum txuas rau tus pin 11, 12, 13. Anaditional pin 10 yog

// yuav tsum tau lossis hu nrog SD.begin ().

const int servoPin = 3;

const int micPin1 = 5; const int micPin2 = 6; const int AWKS = 4;

int ntim 1;

ntim 2; ntab silenceTime = 0;

Servo chij;

TMRpcm plr;

void teeb tsa () {

// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: pinMode (servoPin, OUTPUT); pinMode (micPin1, INPUT); pinMode (micPin2, INPUT); Serial.begin (9600); Serial.println ("Zoo siab txais tos rau SASSIE qhov chaw kuaj mob."); banner.attach (servoPin); banner.write (0); yog (! SD.begin (10)) {Serial.println ("SD tsis ua hauj lwm"); } plr.speakerPin = 9; plr.setVolume (5); }

void voj () {

ntim 1 = digitalRead (micPin1); ntim2 = digitalRead (micPin2); banner.write (0); yog (volume1 == 0 thiab volume2 == 0) {silenceTime += 0.05; Serial.print ("Lub sijhawm ntsiag to:"); Serial.println (silenceTime); } lwm {silenceTime = 0; banner.write (0); } ncua (50); if (silenceTime> = AWKS) {cawm (); silenceTime = 0; }}

void cawm () {

rau (int angle = 0; angle <90; angle += 1) {banner.write (angle); ncua (35); } Serial.println ("Banner rau"); ncua (100); Serial.write (1); Serial.println ("Nkauj rau"); plr.play ("4.wav"); ncua (10000); plr.stopPlayback (); rov (); ncua (10000); ncua (5000); plr.play ("2.wav"); ncua (5000); plr.play ("3.wav"); }

Txoj cai ntawm pawg thawj coj thib ob yog qhov yooj yim. Nws tsuas yog tsav lub kauj tsheb thaum lub rooj tsavxwm tseem ceeb xa lub teeb liab rau nws.

#suav nrog

const int stepPin1 = 8;

const int stepPin2 = 9; const int stepPin3 = 10; const int stepPin4 = 11; const int motorSteps = 200;

bool motorState = tsis tseeb;

Stepper stepMotor (motorSteps, stepPin1, stepPin2, stepPin3, stepPin4);

void teeb tsa () {

// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: stepMotor.setSpeed (75); }

void voj () {

// muab koj cov cai tseem ceeb ntawm no, kom rov ua dua: int nkag = Serial.read (); yog (khoom == 1) {Serial.println ("qhib")); yog (motorState == 0) {stepMotor.step (1000); ncua (5000); } lwm {stepMotor.step (-1000); } motorState =! motorState; } ncua (500); }

Pom zoo: