Cov txheej txheem:

Program Arduino Nrog Raspberry Pi: 5 Kauj Ruam (nrog Duab)
Program Arduino Nrog Raspberry Pi: 5 Kauj Ruam (nrog Duab)

Video: Program Arduino Nrog Raspberry Pi: 5 Kauj Ruam (nrog Duab)

Video: Program Arduino Nrog Raspberry Pi: 5 Kauj Ruam (nrog Duab)
Video: Cómo fabricar tu propia Game Boy con la Retroflag GPi Case y una Raspberry Pi Zero. 2024, Hlis ntuj nqeg
Anonim
Program Arduino Nrog Raspberry Pi
Program Arduino Nrog Raspberry Pi

Hauv Cov Lus Qhia no, Kuv yuav qhia pom yuav ua li cas rau nruab Arduino nrog Raspberry Pi.

Kuv tus Twitter: twitter.com/steveschuler20

Qhov uas kuv siv rau txoj haujlwm no suav nrog Kano Khoos Phis Tawj Ua tiav (Raspberry Pi nrog lub vijtsam thiab keyboard) thiab Snapino cov khoom siv los ntawm Elenco (Snap Circuits Arduino thaiv, ntau yam Snap Cov Khoom Siv Hluav Taws Xob, cov roj teeb pob thiab cov phiaj xwm kab). Cov no yog nyob ntawm yeem. Txhua yam koj xav tau rau txoj haujlwm no yog cov hauv qab no:

Qhov Yuav Tsum Tau:

Arduino Ib

Raspberry Pi 3

Lub hwj chim rau Raspberry Pi 3 (AC Adapter, lossis lub xov tooj ntawm tes rov qab)

Keyboard rau Raspberry Pi

Screen (computer screen lossis TV nrog HDMI txuas)

HDMI kab

USB programming cable rau Arduino

Kev ua haujlwm rau Raspberry Pi uas tuaj yeem pom ntawm no lossis koj tuaj yeem sim Kano OS los ntawm rub nws los ntawm no.

Kauj Ruam 1: Kano Khoos Phis Tawj Khoos Phis Tawj Nrog Vijtsam thiab Keyboard

Kano Khoos Phis Tawj Khoos Phis Tawj Nrog Vijtsam thiab Keyboard
Kano Khoos Phis Tawj Khoos Phis Tawj Nrog Vijtsam thiab Keyboard
Kano Khoos Phis Tawj Khoos Phis Tawj Nrog Vijtsam thiab Keyboard
Kano Khoos Phis Tawj Khoos Phis Tawj Nrog Vijtsam thiab Keyboard

Daim duab saum toj no yog Kano lub computer (nrog lub vijtsam thiab keyboard) uas kuv siv rau txoj haujlwm no. Hauv thawj daim duab koj tuaj yeem pom Raspberry Pi 3 hauv nws rooj plaub ntawm sab xis, thiab nws txuas nrog lub vijtsam tsav tsheb ntawm sab laug. Cov kab daj yog HDMI cable, thiab cov kab liab liab khiav mus rau lub zog hloov pauv. Daim duab thib ob Puas yog Kano khoos phis tawj pib ua Kano Desktop.

Kauj Ruam 2: Elenco Snap Circuits Snapino Kit

Elenco Snap Circuits Snapino Cov Khoom
Elenco Snap Circuits Snapino Cov Khoom
Elenco Snap Circuits Snapino Cov Khoom
Elenco Snap Circuits Snapino Cov Khoom

Daim duab saum toj no yog cov khoom siv Snapino. Txawm hais tias cov khoom siv los nrog ntau yam Snap Cov Khoom Siv Hluav Taws Xob, rau qhov haujlwm no kuv tsuas yog siv cov txiv kab ntxwv Arduino thaiv thiab cov xaim hluav taws xob txuas.

Kauj ruam 3:

Duab
Duab
Duab
Duab

Txhawm rau program Arduino nrog Raspberry Pi Kuv xav tau los nruab Arduino IDE ntawm Kano Computer (xyuas kom tseeb tias koj tau txuas nrog Internet dhau WiFi). Ntawm Kano desktop, Kuv tau qhib cov apps, tom qab ntawd nyem rau ntawm kab ntawv thiab qhib qhov program program.

Ntawm lub davhlau ya nyob twg, kuv siv cov lus txib hauv qab no:

sudo apt-tau hloov tshiab

sudo apt-tau nruab arduino

Thaum qhov kev teeb tsa tiav kuv rov pib dua Kano lub computer

Kauj Ruam 4: Qhib "Blink" Arduino Sketch

Qhib qhov
Qhib qhov
Qhib qhov
Qhib qhov
Qhib qhov
Qhib qhov

Thaum Kano tau rov pib dua, ntawm Kano desktop, Kuv qhib cov apps, tom qab ntawd nyem rau ntawm "Lwm tus" tab, thiab qhib Arduino IDE. Hauv Arduino IDE Kuv tau mus rau Cov Ntaub Ntawv> Piv txwv> Hauv paus> Blink thiab thauj Blink Sketch piv txwv.

Kauj Ruam 5: Tshaj Tawm Cov Duab kos rau Arduino thiab Saib Arduino LED Flash

Rub lub Sketch mus rau Arduino thiab Saib Arduino LED Flash
Rub lub Sketch mus rau Arduino thiab Saib Arduino LED Flash
Rub lub Sketch mus rau Arduino thiab Saib Arduino LED Flash
Rub lub Sketch mus rau Arduino thiab Saib Arduino LED Flash

Tom ntej no kuv txuas nrog Snap Circuits Arduino thaiv mus rau USB chaw nres nkoj ntawm Raspberry Pi 3 board ntawm Kano computer.

Thaum Uno txuas nrog, nyem lub pob upload hauv Arduino IDE. Tom qab ob peb (lossis qee zaum ob peb) lub sijhawm cov duab kos tau muab tso rau Uno thiab LED ntawm Uno pib ntsais.

Txhawm rau xaus, qhov no yog qhov ua piv txwv yooj yim ntawm yuav ua li cas rau program Arduino nrog Raspberry Pi.

Pom zoo: