Cov txheej txheem:

Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online: 12 Kauj Ruam (nrog Duab)
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online: 12 Kauj Ruam (nrog Duab)

Video: Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online: 12 Kauj Ruam (nrog Duab)

Video: Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online: 12 Kauj Ruam (nrog Duab)
Video: qhia yuav computer ua 3D 2024, Kaum ib hlis
Anonim
Image
Image
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online
Kawm Yuav Tsim Tus Qauv Li Cas PCB Nrog EasyEDA Cov Cuab Yeej Online

Kuv ib txwm xav tsim PCB kev cai, thiab nrog cov cuab yeej online thiab pheej yig PCB tus qauv nws yeej tsis yooj yim dua tam sim no! Nws tseem tuaj yeem tau txais cov txheej txheem saum npoo sib dhos ua ke pheej yig thiab yooj yim hauv ntim me me kom txuag tau txoj haujlwm nyuaj! Kuv tau xaj 10x PCBs nrog sib dhos rau tsawg dua US $ 50. Thaum PCBs ua haujlwm tseem ceeb, kev teeb tsa ntawm cov khoom yog ib feem tseem ceeb ntawm nws zoo li cas. Kuv tau hloov cov khoom sib dhos ntawm lub rooj tsavxwm kom ua raws cov ntsiab lus ntawm lub hnub qub.

Phau ntawv qhia no yuav qhia koj:

  • Yuav ua li cas kos tus qauv PCB zoo hauv InkScape (pub dawb, qhib qhov cuab yeej duab duab)
  • Yuav siv EasyEDA Circuit & PCB cov cuab yeej tsim (pub dawb thiab online, tsis tas yuav tsum tau teeb tsa!)
  • Yuav ua li cas ntshuam SVG rau hauv EasyEDA rau kev cai PCB cov duab thiab lo lo ntxhuav
  • Yuav tsim qhov yooj yim 'Arduino' programmable MCU tsim
  • Yuav siv JLCPCB nto mount los ua ke kom tau cov laug cam ua & sib dhos

Nta ntawm "Lub Hnub Qub"

  • Kev cai 5-point lub hnub qub zoo li PCB
  • Cov teeb pom kev zoo - 10x LEDs ib sab, ob tog
  • arduino programmable ATMEGA328P microctroller
  • 2x khawm rau kev sib cuam tshuam - koj tuaj yeem ua game yooj yim
  • micro USB powered (xaiv)
  • Network ntau lub hnub qub rau cov duab loj dua (xaiv) nrog cov lus sib txuas

Hloov kho 02APR2020 tom qab tau txais cov laug cam.

Khoom siv

Saib BOM (Bill of Materials) file thiab schematic PDF txuas.

Saib tag nrho schematic txuas nrog.

Nov yog qhov txuas rau EasyEDA txoj haujlwm los ntawm cov kauj ruam tom ntej -

Kauj Ruam 1: Tsim Tus Qauv Hauv InkScape

Tsim Tus Tsim Hauv InkScape
Tsim Tus Tsim Hauv InkScape
Tsim Tus Tsim Hauv InkScape
Tsim Tus Tsim Hauv InkScape
Tsim Tus Tsim Hauv InkScape
Tsim Tus Tsim Hauv InkScape

Ua ntej cia peb tsim cov duab ntawm PCB thiab ib daim duab silk-screen kom mus rau ntawm PCB.

  1. Rub tawm thiab teeb tsa inkscape
  2. Tsim ib daim ntawv tshiab
  3. Siv cov duab plaub los tsim 100x100mm duab plaub. JLCPCB muab cov PCBs pheej yig dua hauv qhov loj me no.
  4. Siv cov cuab yeej ntau yam los tsim lub hnub qub uas haum rau hauv lub duab plaub
  5. Ntxiv lwm cov ntsiab lus, xws li cov duab hnub qub me me nyob hauv tus qauv uas yog qhov uas kuv yuav tso cov LEDs

    1. Pib los ntawm kev ntxiv cov duab rau ib qho ntawm lub hnub qub, piv txwv. sab saum toj
    2. Ntxiv ib lub ces kaum sib npaug (kom muaj kev nyab xeeb!) Siv lub bezier nkhaus
    3. Xaiv txhua daim duab ntawm lub ntsiab lus no thiab pab lawv ua ke
    4. Tom qab ntawd peb tuaj yeem luam thiab tig cov pab pawg no mus rau lwm cov ntsiab lus ntawm lub hnub qub

      "Kho kom raug -> Clone -> Tsim cov nplais clones"

  6. Yog tias koj tau hla cov ces kaum, ces peb yuav tsum tshem cov ntsiab lus uas tsis xav tau ntxiv lawm

    1. Txhawm rau ua qhov no, kuv tau kos cov kab ncaj uas txuas cov kab nkhaus
    2. Tom qab ntawd, tshem lub hnub qub qub

Txuag 2 qhov qauv ntawm daim duab no

  • A: silkscreen - Ua kom tiav daim duab nrog txhua cov ntsiab lus uas yuav raug siv rau daim iav lo lo ntxhuav
  • B: pawg thawj coj saib xyuas - zoo li saum toj no, tab sis tshem tag nrho cov ntsiab lus hauv nruab nrab tawm tsuas yog cov qauv. Qhov no yuav piav qhia qhov zoo ntawm PCB.

Txuag. DXF versions ntawm ob cov ntaub ntawv

  • file -> Save -as ->.dxf
  • Siv cov detaults

Piv txwv inkscape.svg thiab.dxf cov ntaub ntawv txuas nrog.

Kauj Ruam 2: Ntshuam.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo

Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo
Ntshuam lub.dxf rau hauv EasyEDA los Tsim Tus Qauv Zoo

Cov kauj ruam no yuav tsim ib txoj haujlwm tshiab ntawm EasyEDA cov cuab yeej online thiab ntshuam lub.dxf los teeb tsa cov duab ntawm PCB thiab cov ntxaij vab tshaus. EasyEDA yog cov phiaj xwm online pub dawb thiab tus sau PCB. Kuv xaiv qhov no vim nws yooj yim dua rub tawm thiab teeb tsa ib qho ntawm ntau yam cuab yeej muaj. Nws zoo li yog qhov zoo rau kuv cov kev xav tau, thiab koom ua ke zoo nrog JLCPCB rau PCB tus qauv thiab LCSC qhov chaw.

Tsim qhov project thiab PCB

  1. Mus ntsib https://easyeda.com/ thiab tsim tus as khauj dawb.
  2. Tsim txoj haujlwm tshiab hauv koj qhov chaw ua haujlwm

    Cov ntaub ntawv khaws cov schematic

  3. Txoj cai nyem rau ntawm lub npe project, thiab "PCB tshiab"

    1. OK lub neej ntawd (100x100mm)
    2. Nco tseg - peb tuaj yeem rov qab los thiab kho cov txheej txheem tom qab thiab ntxiv cov khoom sib xyaw
  4. Ntshuam lub rooj tsavxwm

    1. Cov ntaub ntawv -> ntshuam DXF
    2. Xaiv lub.dxf pawg thawj coj saib cov ntaub ntawv los ntawm inkscape
    3. Txheeb xyuas tias Txheej tau teeb tsa rau 'BoardOutLine'
    4. Nyem 'Ntshuam'
    5. Muab nws tso rau hauv cov duab plaub 100x100 uas twb muaj lawm
    6. Rho tawm lub duab plaub, lub hnub qub zoo tshiab yog BoardOutLine
    7. Txheeb xyuas tias nws nyob ntawm txheej BoardOutLine liab, yog tias tsis yog, xaiv nws thiab hloov txheej hauv lub vaj huam sib luag ntawm sab xis
  5. Ntshuam cov duab lo lo ntxhuav

    1. Cov ntaub ntawv -> ntshuam DXF
    2. Xaiv cov ntaub ntawv.dxf silkscreen los ntawm inkscape
    3. Txheeb xyuas tias Txheej tau teeb tsa rau 'TopSilkLayer'
    4. Nyem 'Ntshuam'
    5. Muab nws tso rau sab saum toj ntawm lub rooj tsavxwm (nthuav nrog nas log kom raug)
  6. Txheeb cov txiaj ntsig los ntawm kev saib ua ntej ua ntej 3D

    Nyem rau 'lub koob yees duab' lub cim thiab 'saib 3D'

Cov kauj ruam tom ntej - ntxiv cov khoom:)

Kauj Ruam 3: Npaj Cov Cheeb Tsam Koj Yuav Siv, suav nrog SMD los ua ke

Npaj cov Cheeb Tsam Koj Yuav Siv, suav nrog SMD los ua ke
Npaj cov Cheeb Tsam Koj Yuav Siv, suav nrog SMD los ua ke

Tam sim no tias peb muaj tus qauv zoo, peb tuaj yeem pib ntxiv cov khoom.

Koj tuaj yeem yooj yim tso cov khoom ncaj qha rau hauv PCB tus khoos phis tawj, tab sis nws zoo dua los ntxiv lawv rau hauv cov phiaj xwm pom tom qab ntawd ntaus 'Hloov Kho PCB' ntxiv lawv rau PCB.

Nco tseg - kom tau txais txiaj ntsig ntawm PCB cov kev pabcuam sib dhos muab los ntawm JLCPCB (https://jlcpcb.com/smt-assembly), nws yog ib qho tseem ceeb uas yuav tsum siv cov khoom siv los ntawm cov npe tshwj xeeb uas lawv muaj.

  • Rub tawm cov npe XLS cov npe

    • Tam sim no -
    • Uas txuas los ntawm:

Xaiv qhov:

  • puag

    Qhov kev xaiv pheej yig tshaj yog siv cov khoom los ntawm lawv cov npe 'hauv paus' raws li cov no twb tau thauj mus rau lawv cov tshuab khaws thiab tso

  • ncua

    Muaj qhov txuas ntxiv 'ncua' tab sis muaj tus nqi nce ntxiv rau txhua tus. xws li cov LEDs thiab ATMEG328P Kuv siv hauv txoj haujlwm no yog ob qho txuas ntxiv, txawm li cas los xij txhua qhov kev txiav txim siab tsis sib xws, cov khoom siv hluav taws xob thiab cov nplaim hluav taws xob yog cov khoom siv txheem

  • lwm yam - ntxiv rau hauv pawg thawj coj tom qab

    Kuv tau xaiv ntxiv USB txuas, thawb cov nyees khawm thiab lub caj dab lub caj dab ntawm tus kheej

Cov duab txuas nrog yog lub vijtsam ntawm ntu ntu ntawm qhov kuv tau siv hauv qhov haujlwm. Kuv tau ntxiv ib kab lus "MyProject" los pab kuv lim rau cov khoom kuv tau saib xyuas. Kuv xaiv feem ntau 0805 hneev taw kom ua kom yooj yim dua. Crystal/ceramic resonator tej zaum yuav nyuaj rau siv los ntawm txhais tes.

LCSC tus lej naj npawb, piv txwv. C14877, tuaj yeem siv ncaj qha rau hauv schematic (thiab PCB) tus kws kho mob.

Cov ntsiab lus ntawm BOM

  • C84258. - txias dawb LED, ci heev (txawm tias muaj 2x LEDs sib koom 150R resistor ntawm 5v) thiab cov diffuser zoo tsim nws
  • C7171 - 10uF decoupling cap x2
  • C17444 - 12K resistor rau RESET tus pin rub tawm x 1
  • C17471 - 150R resistor hauv koob nrog LEDs x10
  • C21120 - 220nF decoupling cap x2
  • C13738 - 16MHz ceramic resonator nrog lub kaus mom sib xyaw
  • C14877 - ATMEGA328P MCU

Kauj Ruam 4: Tsim Schematic, Ua Rau Nws Arduino Programmable

Tsim Schematic, Ua Nws Arduino Programmable
Tsim Schematic, Ua Nws Arduino Programmable
Tsim Schematic, Ua Nws Arduino Programmable
Tsim Schematic, Ua Nws Arduino Programmable
Tsim Schematic, Ua Nws Arduino Programmable
Tsim Schematic, Ua Nws Arduino Programmable

Hauv plawv ntawm qhov kev tsim qauv no yog ATMEGA328P uas siv hauv ntau Arduinos suav nrog Uno, Nano thiab Pro Mini. Qhov no txhais tau tias nws muaj peev xwm siv Arduino IDE rau kev sau cov cai thiab teeb tsa lub rooj tsavxwm.

Kuv tau tsim lub rooj tsav xwm no kom siv qhov suav tsawg kawg txhawm rau txo tus nqi thiab ua kom pawg thawj coj yooj yim tab sis tseem tso cai rau nws los ua haujlwm los ntawm ISP 'Hauv System Programming' header zoo li nws yog Arduino Nano.

Nkag siab txog qhov pinout

Saib daim duab pinout txuas los ntawm https://github.com/MCUdude/MiniCore kom pom li cas lub cev pins ntawm MCU daim ntawv qhia rau arduino tus pin npe. xws li lub cev MCU tus pin 1, (sab laug sab laug) kuj tseem yog tus lej pin 3 (daim ntawv lo D3 ntawm tus nano), tswj los ntawm PD3 sab hauv MCU. Los ntawm arduino IDE qhov kev pom koj tsuas yog xav paub tus pin arduino '3'.

Yam tsawg kawg kom ua raws li nano:

  • ATMEGA328P Cov
  • Decoupling capacitors kom du lub zog siv
  • ISP 'Hauv System Programming' header hloov chaw ntawm USB programming

    • 6-tus pin header uas tuaj yeem tsim kho los ntawm lwm qhov arduino nrog ISP programmer duab
    • Nco tseg - USB/cov phiaj xwm tsis tuaj yeem tsis muaj USB rau hloov pauv
  • Saib
  • 16MHz ceramic resonator

    • Qhov no yuav tsum tau yog tias koj ua raws Nano raws li cov no ib txwm yog 5V thiab 16MHz sab nraud resonator
    • Nco tseg feem ntau 3 lossis 4 tus pin resonators tsis xav tau cov khoom sib cais uas siv lead ua xav tau

Lwm txoj hauv kev, txawm tias muaj qhov sib txawv tsawg tshaj plaws teeb tsa nrog MiniCore

Yog tias koj tsis xav tau, lossis tsis muaj cov siv lead ua lossis lub tshuab resonator ces koj tuaj yeem siv sab hauv 8MHz osciallator hauv ATMEGA328P. Koj yuav tsum thauj tus bootloader sib txawv los pab ua qhov no, piv txwv. MiniCore bootloader, saib GitHub kom paub ntau ntxiv.

https://github.com/MCUdude/MiniCore

Tam sim no pib ntxiv cov khoom siv:

  • Txoj cai nyem "chaw tivthaiv"
  • Hauv kab ntawv tshawb nrhiav nkag tus lej lej los ntawm daim ntawv nthuav qhia / LCSC xws li C14877 rau ATMEGA328P-AU
  • Muab nws tso rau ntawm schematic
  • Rov ua dua rau lwm yam khoom siv - lub kaus mom, tiv taus, LEDs

    ib qho ntawm txhua qhov tivthaiv thawj zaug, tom qab ntawv theej thiab muab tshuaj txhuam lawv ncig qhov tsim raws li xav tau

Kauj Ruam 5: Ntxiv Cov Cheeb Tsam no rau PCB Nrog "Hloov Kho PCB"

Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog
Ntxiv Cov Cheebtsam no rau PCB Nrog

Ib tus yam ntxwv zoo ntawm EasyEDA tus kws kho mob online yog lub peev xwm los hloov pauv rau cov txheej txheem tom qab ntawd hloov kho PCB.

  • Hauv schematic editor, ntaus cov ntaub ntawv tseg
  • Tom qab ntawd, "Hloov Kho PCB" khawm hauv lub cuab yeej

    • Ib lub qhov rais qhib tuaj qhia rau koj tias hloov dab tsi
    • 'Thov hloov'
  • Cov khoom tshiab tam sim no tau muab tso rau hauv qab txoj cai kaum
  • Tsiv lawv mus rau qhov chaw koj xav tau

    • ntaus qhov chaw kom tig 90 degrees
    • siv lub log nas kom nthuav dav
  • Daim ntawv ceeb toom 'nas kab' uas qhia qhov twg cov khoom xav tau los txuas

    siv cov khoom sib hloov ua kom cov hlua yooj yim

  • Txhawm rau tso cov khoom siv rau sab hauv qab, nyem ib qho kev tivthaiv thiab nyob rau sab saum toj txoj cai kaum hloov TopLayer rau hauv qab txheej

Kauj Ruam 6: Txhim Kho Cov Txheej Txheem ntawm PCB

Qhia cov Cheebtsam ntawm PCB
Qhia cov Cheebtsam ntawm PCB
Qhia cov Cheebtsam ntawm PCB
Qhia cov Cheebtsam ntawm PCB

Tam sim no xaim cov khoom raws li qhia los ntawm cov kab ntawv

  • Siv 'taug qab' khawm hauv lub cuab yeej
  • Nyem ib qho kev tivthaiv, tom qab ntawd ntxiv mus
  • Siv vias los txuas ntawm txheej
  • Ntxiv ib lub dav hlau hauv av hla tag nrho cov txheej saum toj kawg nkaus kom txuas txhua lub hauv paus pins

    • Siv 'thaj tsam tooj liab' los kos lub duab plaub uas npog tag nrho lub rooj tsavxwm. Lub cuab yeej yuav cia li sau qhov raug thiab txuas rau GND net los ntawm lub neej ntawd
    • Ntxiv lwm lub dav hlau rau hauv qab txheej rau VCC
  • Qhib qhov 3D saib txhawm rau txheeb xyuas koj qhov kev nce qib

Kuv xaiv ua kom txoj kev ncaj ncaj thiab zoo. Kuv saib ntawm PCB txheej txheem xaiv qhov tus pin ntawm MCU txuas rau txhua tus LED kom yooj yim txoj kev hla thiab ua nws ib feem ntawm cov txheej txheem tsim.

Nws yog qhov yooj yim hloov rov qab mus rau tus saib pom thiab ntxiv lub npe net rau tus pin, piv txwv. U1 tus pin 23 txuas rau net LED4. Muab tib daim ntawv lo rau ntawm LED, hloov kho PCB thiab hloov txoj hauv kev.

** Nov yog qhov txuas rau txoj haujlwm ntawm EasyEDA lub vev xaib:

easyeda.com/neil.parris/thestar-instructab…

Kauj Ruam 7: Ntxiv Cov Cheeb Tsam ntau ntxiv kom txog thaum tsim qauv tiav, tig raws li qhov xav tau

Ntxiv Cov Cheeb Tsam Ntxiv Kom txog thaum tsim qauv tiav, tig raws li qhov xav tau
Ntxiv Cov Cheeb Tsam Ntxiv Kom txog thaum tsim qauv tiav, tig raws li qhov xav tau
Ntxiv Cov Cheeb Tsam Ntxiv Kom txog thaum tsim qauv tiav, tig raws li qhov xav tau
Ntxiv Cov Cheeb Tsam Ntxiv Kom txog thaum tsim qauv tiav, tig raws li qhov xav tau
Ntxiv Cov Cheeb Tsam Ntxiv Kom txog thaum tsim qauv tiav, tig raws li qhov xav tau
Ntxiv Cov Cheeb Tsam Ntxiv Kom txog thaum tsim qauv tiav, tig raws li qhov xav tau

Khaws ntxiv LEDs, khawm, thiab lwm yam.

Koj tuaj yeem hloov kho txhua feem, xws li rau 5 lub hnub qub, txhua lub ntsiab lus yog 72 degrees sib nrug. Txhawm rau kom tau txais lub kaum ntse ntse rau LEDs thiab lwm yam khoom siv hom 72 rau hauv lub thawv sib hloov, thiab ntaus qhov chaw kom tig 90 degrees ntawm ib lub sijhawm kom txog thaum koj tau txais txiaj ntsig koj tab tom nrhiav. Qee zaum koj xav tau lwm lub ces kaum ntsig txog 72, piv txwv li 90 - 72 = 18. Los yog 2x 18 = 36. Nrog 18/36/72 thiab 90 degree kev sib hloov koj tuaj yeem sib dhos rau txhua txoj kab loj ntawm lub hnub qub.

Saib txuas PDF ntawm daim ntawv qhia tag nrho [nco ntsoov qhov no yog qhov sib txawv me ntsis rau qhov kev tshuaj ntsuam ua ntej tab sis tib lub hauv paus ntsiab lus]

Kauj Ruam 8: Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim

Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim
Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim
Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim
Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim
Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim
Txiav txim rau PCB & Xaiv tau Ntxiv SMD Tsim

Thaum koj tau ua tiav qhov tsim, tshuaj xyuas nws thiab tshuaj xyuas tsis muaj qhov yuam kev, mus tom ntej thiab tsim cov ntaub ntawv Gerber. Nws yuav hais kom koj ua Tus Qauv Tsim Txoj Cai Txheeb Xyuas (DRCs). Txheeb xyuas tsis muaj qhov yuam kev thiab txuag Gerber cov ntaub ntawv rau kev tsim khoom, lossis qhib JLCPCB ncaj qha los ntawm tus kws kho ntawv.

Yog tias koj xav siv SMD cov kev pabcuam tsim khoom ces tseem khaws BOM (daim nqi ntawm cov ntaub ntawv) thiab khaws thiab tso cov ntaub ntawv (qhov no qhia cov cav tov qhov twg tso koj cov khoom)

Mus los ntawm cov txheej txheem xaj khoom thiab txheeb xyuas ob qhov kev qhia ntawm txhua yam sib txawv xws li LEDs, lub tshuab hluav taws xob, lub tshuab nqus hluav taws xob thiab MCU nws tus kheej!

Rau 10 lub rooj sib txoos sib sau ua ke (tsis muaj USB & lub luag haujlwm lub npe) Kuv tau them tus nqi ib puag ncig GBP £ 35 xa tawm, (kwv yees li USD $ 45 nyob ntawm qhov sib pauv).

Saib kom hloov kho email thiab taug qab koj lub rooj tsavxwm thiab tsim los ntawm JLCPCB lub vev xaib.

Kauj Ruam 9: Tsab Ntawv Software (.ino Cov Ntaub Ntawv Txuas nrog)

Tsab ntawv Software (.ino Cov Ntaub Ntawv Txuas Nrog)
Tsab ntawv Software (.ino Cov Ntaub Ntawv Txuas Nrog)

Thaum tos kom cov laug cam tuaj txog, nws yog lub sijhawm pib sau software:)

Kuv tau tso Arduino Nano rau ntawm lub khob cij thiab txuas cov LEDs nyob rau tib qhov chaw, thiab tib qho kev sib txuas los ua raws PCB. Nws yuav tsum muaj peev xwm thauj cov software no tib yam ncaj qha rau ntawm PCB, txawm hais tias nrog ISP programmer Arduino.

Txoj cai siv arrays los ua kom lub cajmeem yooj yim dua. Kuv kuj tseem tau xa cov tsev qiv ntawv "FastLED.h" vim nws muaj qee qhov kev pabcuam muaj txiaj ntsig zoo li sin8 ()

Nov yog qee qhov tseem ceeb:

Cov kab ntawv no qhia txog Arduino pins rau LED1 txog 10. LED1 txuas nrog sib npaug ntawm Arduino A2, thiab LED10 txuas nrog D4

  • // tsim cov kab ntawm lub cev tus pin npe txuas nrog LED1, LED2 thiab lwm yam rau LED10
  • const byte ledpins = {A2, A3, A1, A0, 9, 10, 6, 5, 3, 4};

Lub voj tseem ceeb yog software yooj yim PWM niaj hnub uas txheeb xyuas 'pwm_now' tiv thaiv tam sim no 'coj_brightness' tus nqi.

Nov yog tam sim no ntsuas cov cai txhawm rau sim nrog qee qhov qauv teeb pom kev zoo.

Kauj ruam 10: Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Qhov Chaw Ntxiv

Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov
Un-box thiab qhuas koj cov PCBs tshiab! Yeem - Solder Ntxiv Qhov

Txaus siab rau qhov tsis-ntaus thiab qhuas koj tus kheej PCB kev cai:)

Nrog lub rooj sib txoos SMD Kuv muaj tag nrho cov khoom siv tseem ceeb ntawm ib sab muab rau kuv ua haujlwm.

Yeem - solder cov khoom ntxiv:

  • Micro-USB txuas rau lub zog (tsis ua haujlwm)
  • Laub khawm - kom nws sib tham sib
  • LEDs ntawm sab nraub qaum - ua rau nws ob sab!

Kauj Ruam 11: Program Pawg Thawj Coj nrog ArduinoISP Programmer

Image
Image
Program Pawg Thawj Coj nrog ArduinoISP Programmer
Program Pawg Thawj Coj nrog ArduinoISP Programmer
Program Pawg Thawj Coj nrog ArduinoISP Programmer
Program Pawg Thawj Coj nrog ArduinoISP Programmer
Program Pawg Thawj Coj nrog ArduinoISP Programmer
Program Pawg Thawj Coj nrog ArduinoISP Programmer

Nov yog qhov lom zem me ntsis. Thauj khoom Arduino bootloader thiab cov cai nkag mus rau PCB!

Ob peb hnub tom qab thawj zaug sau cov lus qhia no cov laug cam tuaj txog! 10x cov laug cam, txhua qhov ua tau zoo heev, thiab cov khoom siv tau ua kom zoo zoo, thiab txhua yam ua haujlwm tau zoo.

Hlau txuas cov khoom seem Arduino raws li ArduinoISP programmer

Kuv siv Arduino Nano ntawm lub khob cij me me txuas nrog ua ArduioISP programmer. Qhov no txhais tau tias nws txuas los ntawm IDE hla USB, mus rau nano, uas tom qab ntawd txuas mus rau lub cuab yeej phiaj xwm dhau los ntawm 6-pin programming programming connector.

Tus pinout yog tib yam li nano IP txuas, ib txwm tsuas yog MISO/MOSI/RST/SCK/5V/GND

Saib qhov txuas no kom paub meej ntxiv:

1 - MISO

2 - +5V

3 - KSG

4 - MOSI

5 - RST => tsav los ntawm Pin 10 ntawm Arduino nano

6 - NCO

Thauj khoom ArduinoISP kos duab rau tus programmer

  • Piv txwv -> 11. ArduinoISP -> ArduinoISP
  • Nco tseg - thaum rub cov duab no rau tus programmer, lub capacitor ntawm tus pin RST thiab GND yuav tsum tau muab tshem tawm. Muab qhov no rov qab ua ntej koj siv tus programmer.

Rub tawm lub bootloaded thiab code rau lub hom phiaj pawg thawj coj

  • Txuas tus programmer mus rau lub hom phiaj nrog 6-tus pin txuas

    Koj tsuas tuaj yeem tuav 6x tus pin header rau PCB yam tsis muaj kev sib txuas los ntawm kev tuav nws ntawm lub kaum ces nws ua rau muaj kev sib cuag tau zoo

  • Yog tias koj muaj 16MHz ceramic resonator ntawm lub rooj tsavxwm, thiab koj zoo siab rau daim duab qhia chaw pinout kom haum rau arduino nano, tom qab ntawd yooj yim teeb tsa lub rooj tsav xwm zoo li Arduino nano tab sis nrog cov teeb tsa hauv qab no:

    • Pawg: "Arduino Nano"
    • Tus Txheej Txheem: "ATmega328P"
    • Programmer: "Arduino as ISP"
  • Rub tawm lub bootloader

    Qhov no teeb tsa fuses hauv MCU txhawm rau pab kom 16MHz siv lead ua sab nrauv lossis ua kom nrov nrov. Yog tias koj tsis muaj qhov no siv lwm txoj hauv kev bootloader, piv txwv li. minicore

  • Upload koj cov cai

    Tseem ceeb - vim tias peb tab tom rub cov cai nrog tus programmer koj yuav tsum tau ntaus SHIFT thaum koj nias lub UPLOAD (=>) khawm. Qhov no hloov pauv qhov kev zov me nyuam los ntawm qhov ib txwm 'upload' hla qhov chaw nres nkoj, kom siv 'upload nrog programmer' rau hauv ISP pins

Yog tias qhov saum toj no ua tiav ces tam sim no koj yuav tsum muaj ntau lub teeb ci ci!:

Kauj Ruam 12: Txaus Siab Rau Koj Txoj Haujlwm

Txaus siab rau koj qhov Project!
Txaus siab rau koj qhov Project!
Txaus siab rau koj qhov Project!
Txaus siab rau koj qhov Project!

Kuv vam tias koj tau pom cov lus qhia no muaj txiaj ntsig. Kuv tau siv sijhawm ntau teev sim nrog cov cuab yeej no los ua PCBs nthuav thiab tau pom cov cuab yeej online yooj yim heev.

Qhov kev tsim tshwj xeeb no yog qhov yooj yim hais txog kev siv hluav taws xob, tab sis nthuav dav ntawm kev teeb tsa lub cev. Nws tseem yuav ua kom zoo nkauj zoo nkauj rau lub caij so!

PCB Tsim Kev Sib Tw
PCB Tsim Kev Sib Tw
PCB Tsim Kev Sib Tw
PCB Tsim Kev Sib Tw

Qhov khoom plig thib ob hauv PCB Tsim Kev Sib Tw

Pom zoo: