Cov txheej txheem:

ScratchPaper: 10 Kauj Ruam (nrog Duab)
ScratchPaper: 10 Kauj Ruam (nrog Duab)

Video: ScratchPaper: 10 Kauj Ruam (nrog Duab)

Video: ScratchPaper: 10 Kauj Ruam (nrog Duab)
Video: 10 самых АТМОСФЕРНЫХ мест Дагестана. БОЛЬШОЙ ВЫПУСК #Дагестан #ПутешествиеПоДагестану 2024, Kaum ib hlis
Anonim
ScratchPaper
ScratchPaper
ScratchPaper
ScratchPaper
ScratchPaper
ScratchPaper

Hauv Tinkering Studio peb tau tsim txoj hauv kev los qhia tib neeg txog cov khoom siv hluav taws xob thiab cov phiaj xwm. Txij li cov ncauj lus no tuaj yeem ua rau muaj kev hem thawj rau cov pib tshiab nws yog cov txheej txheem lom zem rau peb los sim xav txog txoj hauv kev kom txo qhov teeb meem nkag mus.

Qee qhov peb nyiam txoj hauv kev los qhia cov neeg kawm paub txog kev yooj yim suav nrog teeb tsa cov khoom siv hluav taws xob ntawm cov thaiv ntoo thiab tso cai rau cov neeg kawm paub sim txuas lawv nrog cov yeeb yaj kiab. Peb kuj tseem tau txais kev tshoov siab los ntawm kev ua haujlwm ntawm AIR Jie Qi uas tau tsim cov ntawv cob qhia hauv xov tooj cua nrog daim kab xev tooj liab, cov roj teeb ntawm tes, thiab LEDs los tsim cov teeb pom kev zoo.

Hais txog cov phiaj xwm, peb tau sim rau ntau xyoo nrog cov haujlwm uas siv Scratch lossis lwm yam kev thaiv raws cov lus programming. Txoj hauv kev uas cov cuam tshuam no tso cai rau tib neeg rub, poob, thiab txuas ib feem ntawm txoj haujlwm ua ke txhawb kev sim thiab rov ua dua.

Txhua yam ntawm cov kev cuam tshuam no tau coj peb los tsim kev sib tsoo ua haujlwm uas peb hu ua 'ScratchPaper' txhawm rau tshawb cov tswv yim nyob ib ncig ntawm cov kab hluav taws xob, arduino, thiab cov phiaj xwm pom kev.

Feem ntau peb tau pom cov phiaj xwm thiab kev cob qhia arduino uas zoo li nyuaj thiab tsis yog li caw rau cov neeg koom tshiab. Txog rau qhov kev cob qhia no, peb tau tsim kev lom zem thiab muaj xim piv txwv daim npav nrog ib qho gumdrop LEDs, hloov ua ntej thiab hloov lub ntsuas, thiab RGB teeb los tham txog tus cwj pwm zoo no. Peb tau pom tias qhov ntxiv ntawm cov ntsiab lus tsis txaus ntseeg nrog rau kev sib xyaw ua ke ntawm cov khoom siv qib siab thiab qib qis tuaj yeem ua rau muaj kev caw ntau dua los koom nrog hauv kev tshawb fawb ntawm cov ncauj lus no. Peb siv scratchx, ib qho kev sim txuas ntxiv rau Scratch programming cov lus uas ntxiv cov block tso cai rau koj los tswj cov arduino.

Hauv phau ntawv qhia no koj tuaj yeem kawm paub tsim cov khoom rau yam haujlwm twg, tau txais qee qhov piv txwv piv txwv los ua haujlwm nrog, thiab nyeem txog qee txoj hauv kev uas cov khoom siv, ib puag ncig, thiab kev yooj yim tuaj yeem txhawb nqa kev tshawb fawb.

Kauj Ruam 1: Sau Cov Khoom Siv no

Sau Cov Khoom Siv no
Sau Cov Khoom Siv no
Sau Cov Khoom Siv no
Sau Cov Khoom Siv no

Rau Arduino Thaiv

Arduino UNO -

USB cable -

Cov xov hlau tseem ceeb -

Cov ntsia hlau tooj liab

#4 khawm lub taub hau tapping screws

Daim ntawm 1x6 ntoo board

Rau Cov Ntawv Luam Circuit Court

Daim Kab Xev Tooj -

Cov ntawv xim dawb

10k resistor -

Lub teeb pom kev zoo -

FSR sensor -

10mm LEDs -

10mm Common Cathode RGB LEDs -

Pager lub cev muaj zog -

Cov nab kuab clips

Mem hluav

Pab Cuam

Tes Laum nrog me ntsis laum me ntsis

Ntsia Hlau

Rauj

Sanding Thaiv

Txiab

Kua nplaum

Soldering Hlau

Cov tsom iav kev nyab xeeb

Kauj Ruam 2: Tsim Arduino Block

Tsim Arduino Thaiv
Tsim Arduino Thaiv
Tsim Arduino Thaiv
Tsim Arduino Thaiv
Tsim Arduino Thaiv
Tsim Arduino Thaiv

Ua ntej tshaj, teeb tsa Arduino UNO lub rooj tsavxwm ntawm cov ntoo thaiv nrog cov pins ntawm cov laug cam txuas nrog cov ntsia hlau tooj liab, zoo ib yam rau peb cov phiaj xwm phiaj xwm teeb tsa kev tshawb fawb hluav taws xob. Qhov no tso cai rau koj los txuas cov khoom siv rau hauv pawg thawj coj saib nrog cov yeeb yaj kiab uas tso cai rau rov ua dua thiab ntsuas.

Cov ntsia hlau tooj liab txuas nrog ob peb tus pin txwv qhov teeb meem qhov chaw tab sis rau peb tseem xav tias zoo li yog txoj hauv kev los nthuav qhia cov laug cam uas tsis muaj kev cia siab rau daim thaiv ntxiv lossis qhov txawv txawv.

1. Txiav 1x6 thaiv rau hauv 4in thooj thiab xuab zeb ntug

2. Muab Arduino UNO board tso rau hauv nruab nrab ntawm qhov thaiv, khij lub qhov rau cov ntsia hlau nrog xaum, thiab laum qhov hauv qhov chaw ntawd.

3. Ntsia cov arduino nyob rau hauv qhov chaw

4. Kos tsib qhov chaw ntawm sab xis (tus lej tus lej digital) thiab peb qhov chaw nyob ntawm sab laug. Laum cov qhov tsav thiab phaus hauv cov ntsia hlau tooj liab

5. Siv cov hlau hlau tseem ceeb los txuas cov arduino digital pin qhov (socket) rau cov ntsia hlau tooj liab. Peb siv tus lej tus lej 11, 9, 6, 5, thiab 3 vim tias cov ntawd yog PWM tus pin uas tso cai rau peb hloov qhov ci ci los ntawm kev tig tus pin rau thiab tawm ntawm tus nqi siab heev.

6. Ntawm sab laug txuas 5V tus pin rau tus ntsia hlau rau qhov zoo, GND tus pin rau tus ntsia hlau rau qhov tsis zoo, thiab A0 analog hauv tus pin rau cov ntsuas. Koj tuaj yeem siv xaim liab rau qhov zoo, dub rau qhov tsis zoo yog tias koj xav tau, tab sis nws tsis tsim nyog.

7. Peb siv lub thwj cim thiab rab riam los lo rau cov ntsia hlau rau cov koob uas sib thooj. Yog tias koj tsis muaj cov cuab yeej no, koj yuav xav xav txog lwm txoj hauv kev kom taug qab cov koob.

Kauj Ruam 3: Tsim Cov Khoom Siv - LEDs

Tsim Cov Khoom Siv - LEDs
Tsim Cov Khoom Siv - LEDs
Tsim Cov Khoom Siv - LEDs
Tsim Cov Khoom Siv - LEDs
Tsim Cov Khoom Siv - LEDs
Tsim Cov Khoom Siv - LEDs

Tam sim no nws yog lub sijhawm los tsim cov khoom siv hluav taws xob uas yuav tswj hwm los ntawm arduino thiab scratchx programming.

Rau Ib Leeg LED

1. Txiav 2in x 2in xwmfab ntawm daim npav xim

2. Txiav ob daim me me ntawm daim kab xev tooj liab thiab lo rau ntawm lub xwmfab, tawm hauv chav rau LED.

3. Muab ob txoj kab ntawm LED tso rau ntawm daim kab xev tooj liab thiab muab lawv tso rau. Yog tias koj tsis muaj cov hlau txuas koj tsuas tuaj yeem siv daim kab xev xev txhawm rau txhawm rau ua cov kab xev txawm hais tias nws yuav tsis muaj kev nyab xeeb. Kos rau (+) thiab (-) sab nrog xaum rau ntawm daim ntawv xim.

Rau RGB LEDs

1. Txiav ib daim duab 3in x 3in ntawm daim npav dawb

2. Siv cov cathode RGB LED ib txwm muaj thiab kuaj seb cov hlau lead sib haum rau xim twg. Koj tuaj yeem kos nws nrog cov xim ntse kom taug qab.

3. Txuas peb daim me me ntawm daim kab xev tooj liab rau ib sab ntawm daim ntawv thiab ib daim nyob hauv nruab nrab mus rau lwm qhov. Txuas peb qhov ua tau zoo ntawm LED (rau cov xim sib txawv) mus rau daim kab xev tooj liab ntawm ib sab thiab ua tsis zoo rau lwm sab. Cov laug los yog kab xev lawv rau hauv qhov chaw thiab cim rau (-) sab thiab peb xim sib txawv.

Rau R, G, thiab B LEDs

1. Txiav ib daim duab plaub fab 2in x 3in

2. Muab ib daim kab xev hla ib sab ntawm daim ntawv rau sab tsis zoo ntawm LEDs. Muab peb daim kab xev tooj liab rau lwm sab.

3. Muab tus liab, ntsuab, thiab xiav LED tso rau ntawm daim ntawv nrog rau qhov ua tsis zoo ntawm ob sab sib koom thiab qhov ua tau zoo ntawm tus kheej. Siv tus xaum xaum los cim rau (+) thiab (-) sab.

Kauj Ruam 4: Tsim Cov Khoom Siv - Hloov

Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov
Tsim cov Cheebtsam - Hloov

Cov kauj ruam tom ntej yog txhawm rau tsim/tawm cov hloov pauv kom ua cov haujlwm sib txawv hauv koj qhov project. Cov no tuaj yeem siv ntau daim ntawv sib txawv siv cov quav lossis pop-up yog li sim nrog sim ua cov qauv sib txawv.

1. Txhua tus hloov pauv xav tau peb lub ntsiab lus txuas rau lub rooj tsav xwm arduino. Ib qho rau qhov zoo, ib qho rau qhov tsis zoo, thiab ib qho rau tus lej nkag digital. Muab peb daim kab xev tooj liab tso rau hauv, ib qho rau txhua qhov ntawm no.

2. Muab 10k resistor nruab nrab ntawm daim kab xev tooj liab uas yuav txuas rau qhov tsis zoo thiab tus lej digital. Solder tus resistor nyob rau hauv qhov chaw.

3. Nrhiav ib txoj hauv kev los txuas lwm daim kab xev tooj liab uas tuaj yeem txav mus los kom muaj kev sib txuas ntawm qhov zoo thiab tus lej pin coj. Qhov no tuaj yeem yog qhov txiav tawm cov ntawv pop-up, ib lub xwmfab nrog cov ntawv qhwv los yog hloov pauv yooj yim.

Kauj Ruam 5: Tsim Cov Cheeb Tsam - Sensors

Tsim cov Cheebtsam - Sensors
Tsim cov Cheebtsam - Sensors
Tsim cov Cheebtsam - Sensors
Tsim cov Cheebtsam - Sensors

Lub sensor tuaj yeem txheeb xyuas cov xwm txheej lossis hloov pauv hauv nws ib puag ncig. Thaum txuas nrog nws A0 tus pin ntawm arduino tuaj yeem nyeem tus nqi sensor thiab cia koj siv nws hauv koj qhov haujlwm. Peb tau sim tawm lub teeb pom kev zoo thiab lub siab ntsuas nrog daim ntawv khawb kom deb li deb tab sis koj tuaj yeem sim ntau hom kev ntsuas uas ntsuas lub suab, xim, lossis kev coj ua.

1. Txhua tus ntsuas yuav xav tau peb lub ntsiab lus txuas rau ntawm pawg thawj coj ntawm arduino ntawm qhov zoo, tsis zoo, thiab tus lej analog nkag. Muab peb daim kab xev tooj liab tso rau txhua qhov ntawm cov no.

2. Muab 10k resistor nruab nrab ntawm qhov tsis zoo thiab tus lej pin tooj liab kab xev. Solder tus resistor nyob rau hauv qhov chaw.

3. Txuas lub teeb pom kev zoo lossis lub ntsuas qhov ntsuas ntawm qhov zoo thiab qhov sib piv hauv cov kab xev tooj liab ua.

Kauj Ruam 6: Ntawv Dab

Ntawv Dab
Ntawv Dab
Ntawv Dab
Ntawv Dab
Ntawv Dab
Ntawv Dab

Ib txoj hauv kev lom zem los koom nrog qee qhov kev ua si thiab ntxim nyiam rau hauv cov khoom siv yog los ntawm kev ua qee cov ntawv dab nrog lub qhov muag googly uas tuaj yeem tsim kho kom co nrog lub zog vibrating.

1 Txiav tawm ob daim duab plaub fab 2x2. Txiav qhov ntxim nyiam ntxim nyiam dab thiab txuas qhov muag googly hauv qhov chaw tsim nyog.

2 Ua daim kab xev tooj liab rau lub hauv paus puag thiab dab nyob hauv tib lub dav hlau.

3. Muab cov xov hlau txuas rau lub pager lub cev rau ob daim kab xev ntawm lub ntsej muag dab thiab muab cov hlau lead tso rau hauv qhov chaw. Teem lub cav rau daim ntawv.

4. Txiav ib daim duab plaub ntawm tib daim npav uas muaj xim thiab muab nws tso rau hauv ib nrab. Siv daim L-puab ua ib qho kev txhawb nqa thiab siv cov kua nplaum los txuas ob daim ua ke.

5. Muab ob daim kab xev tooj liab tso ua ke.

Kauj Ruam 7: Teeb Scratchx thiab Arduino

Peb tau siv scratchx, ib qho kev sim txuas ntxiv rau kos cov lus programming los tswj cov ntawv xov xwm nrog arduino. Muaj ntau ntau lwm yam kev thaiv raws cov lus uas koj tuaj yeem sim tawm xws li Ardublocks, Mblock, S4A, thiab lwm yam. Cov lus qhia no yuav tsom mus rau scratchx, tab sis koj tuaj yeem sim tawm lwm hom ntawv.

Cov ntaub ntawv no tau qiv los ntawm Kreg Hanning qhov pib qhia rau scratchx, koj yuav xav tsuas yog nyem rau nws lub xaib kom tau txais cov lus qhia ntxaws ntxaws thiab tshuaj ntsuam (https://khanning.github.io/scratch-arduino-extension/index.html)

Tshaj tawm StandardFirmata firmware rau Arduino

  1. Yog tias koj tsis tau ua dua, rub tawm thiab teeb tsa Arduino software los ntawm
  2. Txuas Arduino board rau koj lub computer USB chaw nres nkoj
  3. Tua tawm Arduino software
  4. Mus rau Cov Ntaub Ntawv> Piv txwv> Firmata> Txuj Ci Firmata
  5. Xaiv koj pawg Arduino los ntawm Cov Cuab Yeej> Pawg ntawv qhia zaub mov
  6. Xaiv koj lub chaw nres nkoj txuas los ntawm Cov Cuab Yeej> Chaw nres nkoj ntawv. Ntawm Mac, nws zoo li /dev/tty.usbmodem-1511. Ntawm Windows, nws yog zaum ntau tshaj plaws-suav tus lej chaw nres nkoj. (Los yog tshem lub Arduino, txheeb xyuas cov ntawv qhia zaub mov, thiab tom qab ntawd rov ua dua koj li Arduino thiab pom qhov chaw nres nkoj tshiab tshwm sim.)
  7. Nyem rau khawm upload

Nruab qhov Scratch Extensions Browser Plugin

  1. Koj yuav tsum tau siv Firefox web browser rau qhov txuas ntxiv no los ua haujlwm
  2. Rub tawm thiab teeb tsa Scratch Extensions Browser Plugin rau "lwm lub web browser"

Thauj cov Arduino txuas ntxiv ntawm ScratchX

Tua tawm qhov txuas ntxiv los ntawm kev mus rau URL hauv qab no:

scratchx.org/?url=https://khanning.github.i…

Koj yuav pom lwm cov lus, "Tso cai scratchx.org los ua haujlwm plugins?". Teem ob lub Adobe Flash thiab Kos Ntaus rau "Tso Cai thiab Nco" thiab nyem ua li cas.

Thaum koj pom lub teeb qhia nyob rau hauv "Ntxiv Blocks" tab tig ntsuab koj npaj txhij pib siv qhov txuas ntxiv!

Kauj Ruam 8: Qee Qhov Piv Txwv Sketches

Qee Qhov Piv Txwv Sketches
Qee Qhov Piv Txwv Sketches

Koj tuaj yeem xav pib koj qhov kev sim nrog scratchx, ntawv, circuits thiab arduino nrog qee qhov piv txwv piv txwv uas peb tau ua nrog cov qauv piv txwv uas tsim lub teeb ntsais ntsais, hloov uas tig LED qhib thiab tawm, thiab lub teeb pom kev uas tuaj yeem tswj qhov ci ci ntawm lub teeb.

Mus rau cov ntawv qhia zaub mov thiab qhib ib qho piv txwv program. Thaum koj muaj lub teeb ntsuab ntawm lub vijtsam rau arduino txuas nrog koj tuaj yeem txuas cov khoom siv hluav taws xob hauv daim ntawv mus rau arduino siv cov kab lus sib dhos raws li qhia hauv duab tom qab.

Thaum koj pib tsim koj tus kheej cov haujlwm, koj tuaj yeem pib nrog cov phiaj xwm dawb. Thaum ua haujlwm ntawm qhov program khawb rau arduino, koj yuav tsum tau teeb tsa qhov program hauv qab 'lub kaus mom thaiv' uas hais tias "thaum ntaus ntawv txuas nrog" los ntawm kev teeb tsa LEDs, khawm, thiab servos rau tus pin sib txawv.

Txhawm rau kom muaj lub teeb, hloov pauv, thiab lub ntsuas cua ua qee yam, koj tuaj yeem tsim ib txoj haujlwm uas nyob hauv qab "thaum chij nyem" lub kaus mom thaiv. Koj tuaj yeem xav sim nrog rov ua dua, ib txwm nyob ib puag ncig, kev nkag mus tsis raug thiab tos sijhawm. Koj tseem tuaj yeem suav nrog cov cim, suab thiab hloov keeb kwm yav dhau los siv lwm hom kev kos thaiv.

Nov yog daim vis dis aus ntawm daim ntawv khawb hauv qhov ua ntawm ASTC lub rooj sib tham hauv Tampa xyoo no kom tau txais lub tswv yim ntawm qhov no zoo li cas hauv kev coj ua:

flic.kr/p/MKHtcf

Kauj Ruam 9: Tsim kom muaj ScratchPaper Rhiav

Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav
Tsim kom muaj ScratchPaper Rhiav

Tom qab tus kheej sim nrog tsim ScratchPaper cov haujlwm, koj tuaj yeem xav txog kev faib cov haujlwm nrog lwm tus neeg. Peb sim ua kom hloov kho cov haujlwm tsim, cov ntaub ntawv, ib puag ncig, thiab kev yooj yim los txhawb cov neeg kawm hauv lawv tus kheej cov txheej txheem thiab txhim kho cov tswv yim. Nov yog qee yam uas peb xav txog thaum peb tau teeb tsa lub rooj cob qhia hauv Tinkering Studio lossis nrog lwm tus kws qhia ntawv ntawm ntau lub rooj sib tham. Koj tuaj yeem hloov kho thiab hloov kho cov ntsiab lus no kom haum rau koj qhov chaw thiab cov neeg mloog.

Kev Koom Tes Ib puag ncig

Raws li peb teeb tsa ib puag ncig rau kev cob qhia peb xav kom tsis tsom mus rau feem ntau ntawm cov khoos phis tawj, tab sis muaj lawv li tsuas yog lwm lub cuab yeej nrog cov ntaub ntawv sib qhia thiab txhawb kev piv txwv. Peb cov dogbone zoo li lub rooj feem ntau qiv nws tus kheej rau kev koom tes ntau dua thiab sib qhia tswv yim, uas yog qhov nyuaj dua ntawm kev tshuaj ntsuam raws li cov haujlwm uas nws tsis yooj yim pom lwm tus ua haujlwm.

Piv txwv thiab kev tshoov siab

Nyob ze ntawm chav nkag peb tsim 'kaum ntawm kev xav paub' los qhia tawm qee qhov txuas ntxiv mus rau qhov haujlwm. Peb suav nrog cov piv txwv ntawm cov ntawv xov xwm uas siv cov ntawv me me, qee qhov kev kos duab zoo nkauj piv txwv piv txwv thiab nicole's analog tooj liab crown uas siv lub teeb pom kev zoo thiab RGB LEDs hauv kev nthuav dav lub cev.

Ua haujlwm hauv khub

Txog qhov kev cob qhia nrog pab pawg ntawm no peb thov kom lawv ua haujlwm ua khub uas kuv xav tias yeej tau pab txhawb qhov kev tshawb fawb rau yav tom ntej. Muaj cov tib neeg koom nrog rau kev tshawb fawb sib koom tso cai rau lawv sib tham txog yam lawv xav tias xis nyob nrog thiab kawm ib leeg. Kev sib xyaw ua ke ntawm cov khoom hauv ntiaj teb lub cev nrog cov kos kos ua haujlwm muab ntau qhov chaw rau kev xav nrog ib tus neeg txhais tes thiab tso cai rau cov koom tes sib koom qhov teeb meem.

Khoom siv

Rau kev cob qhia peb npaj tsawg kawg peb daim npav LED ib zaug thiab ib lossis ob ntawm txhua qhov kev tiv thaiv ntxiv (RGB leds, ntawv dab, hloov pauv, thiab ntsuas) rau txhua pab pawg.

Kev Sib Koom thiab Kev Xav

Peb ib txwm qhia cov txiaj ntsig thiab cov tswv yim thaum kawg ntawm kev sib tham, thiab nws tau txias heev pom li cas txhua pawg tau ua haujlwm ntawm kev tshawb fawb tshwj xeeb uas cuam tshuam nrog cov nyees khawm, suab, thiab cov cim. Txawm hais tias peb tsuas muaj cov piv txwv yooj yim los cuam tshuam nrog, cov lus piav qhia thiab zaj dab neeg pib tshwm sim. Ib yam li txhua yam kev ua haujlwm tinkering, peb tab tom nrhiav cov txiaj ntsig sib txawv uas cuam tshuam txog txheej txheem ntawm txhua pab pawg.

Kauj ruam 10: Ua Koj Tus Kheej

Ua Koj Tus Kheej!
Ua Koj Tus Kheej!
Ua Koj Tus Kheej!
Ua Koj Tus Kheej!
Ua Koj Tus Kheej!
Ua Koj Tus Kheej!

Nov yog qhov kev sim uas peb tau ua haujlwm rau ob peb lub hlis thiab peb txuas ntxiv sim cov ntaub ntawv sib txawv, cov lus qhia, thiab cov phiaj xwm. Peb cia siab tias koj yuav sim nrog cov khoom siv hluav taws xob sib txawv, nthuav txoj hauv kev los ua cov hloov pauv, yam tshiab ntawm kev tso tawm, thiab kev teeb tsa sib txawv ntawm LEDs. Qhia rau peb paub koj li cas remix thiab hloov kho cov haujlwm no yog li peb tuaj yeem kawm txuas ntxiv txog qhov ua tau li cas rau cov ntawv xov tooj cua, arduino thiab cov phiaj xwm nrog scratchx.

Pom zoo: