Cov txheej txheem:

Npaj Koj Cov Raspberry Pi rau Txhua Yam!: 7 Kauj Ruam (nrog Duab)
Npaj Koj Cov Raspberry Pi rau Txhua Yam!: 7 Kauj Ruam (nrog Duab)

Video: Npaj Koj Cov Raspberry Pi rau Txhua Yam!: 7 Kauj Ruam (nrog Duab)

Video: Npaj Koj Cov Raspberry Pi rau Txhua Yam!: 7 Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Npaj Koj Raspberry Pi rau Txhua Yam!
Npaj Koj Raspberry Pi rau Txhua Yam!

Nov ntawm MakerSpace, peb nyiam Raspberry Pi! Thiab txawm hais tias peb yuav siv nws rau lub cajmeem, tuav lub vev xaib lossis sim qhov kev faib tawm Raspbian tshiab, peb ib txwm npaj nws tib yam nkaus. Nws yog qhov pib zoo los ua si nrog Raspberry Pi, tsim lub hauv paus Raspberry Pi cov cuab yeej, thiab peb xav tias nws yog txoj hauv kev zoo los pab koj pib!

Hauv qhov kev qhia no, peb yuav qhia koj:

  • yuav ua li cas npaj daim npav microSD
  • nruab Raspbian rau Raspberry Pi khoos phis tawj
  • txuas rau koj li Raspberry Pi nrog cov lej txuas thiab Putty

Nres tom ntej: yam peb yuav xav tau!

Kauj Ruam 1: Yam Peb Yuav Tsum Tau

Yam Peb Yuav Tsum Tau
Yam Peb Yuav Tsum Tau

Txhawm rau npaj koj li Raspberry Pi, peb yuav xav tau:

  • Ib lub computer Raspberry Pi
  • Ib daim npav microSD thiab daim npav microSD daim npav
  • Ib lub micro-USB cable
  • Ib lub roj teeb 5V
  • USB rau TTL cov xov txuas (peb siv los ntawm Adafruit)

Thaum koj muaj txhua yam, cia peb pib los ntawm kev npaj koj daim npav microSD!

Kauj Ruam 2: Npaj Koj Daim Npav Raspberry Pi

Npaj Koj Daim Npav Raspberry Pi
Npaj Koj Daim Npav Raspberry Pi

Ua ntej tshaj plaws, peb yuav muab koj daim npav microSD siv SD daim npav nco daim ntawv. Koj tuaj yeem rub tawm qhov cuab yeej raug cai los ntawm SD koom haum ntawm https://www.sdcard.org/downloads/formatter_4/ - rub tawm cov ntawv txuas yuav txuas ntxiv rau nplooj ntawv.

Thaum koj tau rub tawm thiab teeb tsa SD Memory Card Formatter:

  1. ntxig koj daim npav microSD hauv koj daim npav nyeem ntawv
  2. pib SD Memory Card Formatter
  3. format koj daim npav microSD

Ceev faj thaum koj xaiv lub tsav twg los ua hom ntawv! yog tias koj muaj qhov tseem ceeb flash drive ntsaws rau hauv koj lub khoos phis tawj ua ntej format koj daim npav microSD, xyuas kom koj paub tias qhov twg yog qhov twg. Coob leej neeg (suav nrog peb) tau teeb tsa flash drive nrog cov ntaub ntawv tseem ceeb rau qhov tsis muaj neeg saib xyuas!

Tom qab kev teeb tsa, nws yog lub sijhawm rau nyem lub Raspbian ua haujlwm rau koj daim npav microSD!

Kauj Ruam 3: Ua kom pom kev ua haujlwm ntawm koj daim npav MicroSD

Ua kom pom kev ua haujlwm ntawm koj daim npav MicroSD
Ua kom pom kev ua haujlwm ntawm koj daim npav MicroSD

Raspbian operating system tau lees paub los ntawm Raspberry Pi Foundthwation. Koj tuaj yeem rub tawm qhov hloov tshiab kawg ntawm cov kab ke no ntawm

Raspbian los raws li cov ntaub ntawv khaws cia: tom qab rub tawm thiab rho tawm nws, koj yuav tsum nyem lub kaw lus rau hauv daim npav microSD uas peb tau ua yav dhau los. Kuv mus-rau software rau ntawd yog Win32 Disk Imager: koj tuaj yeem rub nws ntawm

Ib zaug ntxiv, ceev faj tias koj tab tom ua haujlwm rau lub khoos phis tawj raug, thiab:

  1. xaiv ib daim duab los sau rau daim npav (uas yog Raspbian koj tsuas yog rho tawm los ntawm nws cov ntawv khaws tseg);
  2. xaiv ib lub cuab yeej uas yuav nyem lub operating system;
  3. nyem Sau thiab tos ob peb feeb rau txoj haujlwm los sau kab ke rau daim npav.

Tom qab nws ua tiav, tsis txhob tshem koj daim npav microSD - peb yuav tweak ob peb yam kom nkag tau rau hauv kab ke hla kev txuas txuas thiab SSH.

Kauj Ruam 4: Ua kom muaj Kev Sib Txuas Txuas

Tom qab daim npav SD daim duab tau sau rau koj daim npav microSD, tsis txhob rub nws tawm!

Siv cov ntawv tshawb fawb, xauj mus rau / boot / directory ntawm koj daim npav thiab

qhib cov ntaub ntawv config.txt nyob ntawd - nyiam dua nrog software zoo li Notepad ++ kom tsis txhob hloov kho cov ntawv ntawm cov ntawv.

Ntxiv cov hauv qab no thaum kawg ntawm cov ntawv:

#qhib kev txuas xov tooj txuas

enable_uart = 1

Txuag thiab tawm, thiab koj ua tiav! Tam sim no kom muaj kev sib txuas SSH…

Kauj Ruam 5: Ua kom muaj kev sib txuas SSH

SSH kev sib txuas lossis Ruaj Ntseg Plhaub yog ib txoj hauv kev los tsim kev sib txuas ruaj ntseg rau lub khoos phis tawj hla koj lub network. Tam sim no nws tau xiam los ntawm lub neej ntawd hauv Raspbian - yog li peb tab tom yuav pab nws!

Ib zaug ntxiv, qhib koj cov software kho kom raug thiab tsim cov ntaub ntawv khoob hu ua ssh (tsis xav tau daim ntawv txuas ntxiv). Txav cov ntawv mus rau / boot / directory ntawm daim npav microSD.

Qhov ntawd yog nws! Ncua daim npav, txuas cov keyboard, nas thiab them nyiaj thiab hla dhau koj Pi thawj zaug khau raj. Tam sim no yog lub sijhawm zoo los siv cov cuab yeej raspi-teeb tsa rau:

  • hloov tus password qub
  • teeb hnub thiab sijhawm
  • nthuav cov ntaub ntawv kaw lus mus rau tag nrho daim npav microSD

Koj tuaj yeem pom cov lus piav qhia ntxaws txog dab tsi raspi-teeb tsa ua thiab yuav siv nws li cas hauv Rasberry Pi lub vev xaib.

Thaum koj ua tiav txhua yam, ntsib peb ntawm cov kauj ruam tom ntej txhawm rau rub tawm kab hais kom ua lub vev xaib!

Kauj Ruam 6: Txuas rau Koj Tus Pi Nrog Serial Cable

Txuas rau Koj Pi Nrog Serial Cable
Txuas rau Koj Pi Nrog Serial Cable
Txuas rau Koj Pi Nrog Serial Cable
Txuas rau Koj Pi Nrog Serial Cable
Txuas rau Koj Pi Nrog Serial Cable
Txuas rau Koj Pi Nrog Serial Cable

Nco qab thaum peb teeb tsa Serial Cable txuas ua ntej? Nov yog qhov uas nws los ua ke. Lug lub computer screen, nas thiab keyboard ib puag ncig tsis yog kev lom zem ib txwm: yog vim li cas koj thiaj tuaj yeem siv xov tooj txuas thiab lub khoos phis tawj thaum koj nyob hauv lub tsev qiv ntawv xwb!

  • Ua ntej, rub cov tsav tsheb rau koj lub xov tooj txuas (yog tias zoo li kuv koj siv Adafruit USB rau TTL Serial cable, koj tuaj yeem pom txhua cov ntaub ntawv koj xav tau ntawm nplooj ntawv khoom);
  • txuas ntxiv, txuas koj lub xov tooj txuas mus rau koj lub Raspberry Pi's GPIO pins zoo li tau piav qhia hauv daim duab saum toj no;
  • tom qab ntawd, txuas koj lub xov tooj txuas mus rau koj lub khoos phis tawj (thiab rub cov tsav tsheb sib xws, yog tias koj tsis tau ua tiav lawm).
  • Thaum kawg, rub tawm thiab qhib Putty, thiab nyem rau ntawm Serial ntawm lub vijtsam tseem ceeb - koj yuav pom COM tus lej ntawm koj cov kab hauv Devices menu yog tias koj siv Windows.

Nrog koj zoo siab, koj npaj txhij los ntaus Txuas thiab nias Enter ntawm koj cov keyboard kom pib sib tham nrog koj tus Pi. Nkag mus siv cov ntaub ntawv pov thawj uas koj tau hais tseg thaum teeb tsa thiab koj yuav tsum zoo mus: yog tias koj xav tau cov lus qhia ntxaws ntxiv, koj tuaj yeem pom cov lus qhia yuav ua li cas txuas mus rau ntau dua ntawm Adafruit.

Kauj Ruam 7: Dab Tsi Ntxiv?

Tam sim no koj lub khoos phis tawj Raspberry Pi tau npaj tiav, peb tuaj yeem txhim kho ntawm qhov kev qhia no!

  • Txuas mus rau WiFi network (Raspberry Pi lub vev xaib)
  • Txuas rau koj Raspberry Pi ntawm SSH (Raspberry Pi lub vev xaib)
  • Qhia koj lub khoos phis tawj WiFi txuas nrog Pi hla ntawm Ethernet cable (Hackster.io)
  • Txuas mus rau lub tsev qiv ntawv WiFi network (JoCoMakerSpace qhia)

Pom zoo: