Cov txheej txheem:

Ntau tus ATtiny85/13A Programmer: 6 Kauj Ruam
Ntau tus ATtiny85/13A Programmer: 6 Kauj Ruam

Video: Ntau tus ATtiny85/13A Programmer: 6 Kauj Ruam

Video: Ntau tus ATtiny85/13A Programmer: 6 Kauj Ruam
Video: Xav Tau Ntau Tus Txiv By Niam Vam Khwb (Official MV) Nkauj Tawm Tshiab 2024#hmongsong #music #song 2024, Kaum ib hlis
Anonim

Los ntawm Arnov Sharma Ua raws ntau los ntawm tus sau:

PALPi Retro Game Console
PALPi Retro Game Console
PALPi Retro Game Console
PALPi Retro Game Console
DIY Studio Teeb/ Lub Teeb Box
DIY Studio Teeb/ Lub Teeb Box
DIY Studio Lub Teeb/ Lub Teeb Box
DIY Studio Lub Teeb/ Lub Teeb Box
TTGO T Zaub Internet Saib/Clock
TTGO T Zaub Internet Saib/Clock
TTGO T Zaub Internet Saib/Clock
TTGO T Zaub Internet Saib/Clock

Txog: Tsuas yog lwm tus tsim los ntawm Is Nrias teb: ') nyob zoo Txog Txog Arnov Sharma »

Koj puas tau Ua Qhov Project zoo li "LDR x Arduino UNO Automatic Light" lossis zoo ib yam uas tsuas yog siv 2-3 Digital I/O cov chaw nres nkoj ntawm koj 32 Tus Pin Microcontroller? xav kom ua tiav lossis tsim cov ntawv pov thawj raws li cov khoom lag luam, tsis yog ua haujlwm. Ib txoj hauv kev yog siv me me thiab pheej yig dua Microcontroller uas raug nqi tsawg dua thiab tuaj yeem siv tau yooj yim hauv txhua qhov haujlwm xav tau tsawg. Microchip muaj kab ntawm microcontrollers hu ua "ATTINY AVR" uas yog microcontrollers me uas tuaj yeem ua ntau txoj haujlwm uas Arduino ua nyob rau hauv ntau daim ntawv me me.

Attiny85 thiab Attiny13 yog ib qho ntawm Attiny microcontrollers feem ntau vim lawv pheej yig thiab yooj yim muaj.

Txhawm rau ua haujlwm rau lawv, peb feem ntau siv Arduino li teeb tsa ISP lossis USBasp, Kuv xav siv Arduino nano los ua qhov txheej txheem attiny85 kev tiv thaiv tab sis tsis yog rau kev ua haujlwm 1 attiny tab sis 6. yog 6, peb tuaj yeem ua haujlwm ntau dua 1 qhov kev xav tib yam sijhawm los ntawm kev txuas lawv txhua qhov ua ke.

Hauv Cov Ntawv Tshaj Tawm no, Kuv yuav qhia koj cov txiv neej tias kuv tau ua tus programmer no zoo li cas thiab cov lus qhia rau qhov program attiny mcu.

Khoom siv

Cov Ntaub Ntawv Yuav Tsum Tau-

  1. Arduino nano x1
  2. DIP8 Qhov x6
  3. 1uf 10V CAP x1
  4. txiv neej headers 28 kom muaj tseeb
  5. LEDs 0603 pob x4
  6. 1K Resistor 0805 pob x2
  7. PCB
  8. 3D luam ntawv enclosure
  9. ua 85x6

Kauj Ruam 1: QHOV TSEEB rau Attiny85/13A

QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A
QHOV TSEEB rau Attiny85/13A

ATtiny85 yog qhov ua tau zoo, lub zog qis 8-ntsis microcontroller raws li Advanced RISC Architecture. Nws muaj 8 Kbytes ntawm In-System Programmable Flash thiab nrov vim tias nws qhov kev cog lus me me thiab nws cov yam ntxwv

nws qhov kev ua haujlwm voltage yog +1.8 V txog +5.5V

(nyeem nws cov ntawv rau cov ntaub ntawv ntxiv)

Attiny13 yog qhov ua tau zoo, lub zog qis Microchip 8-ntsis AVR RISC-based microcontroller uas sib xyaw 1KB ISP flash nco, 64B SRAM, 64B EEPROM, 32B sau npe cov ntaub ntawv, thiab 4-channel 10-ntsis A/D converter. Cov cuab yeej txhawb nqa kev xa tawm ntawm 20 MIPS ntawm 20 MHz thiab ua haujlwm nruab nrab ntawm 2.7-5.5 volts.

Los ntawm kev ua tiav cov lus qhia muaj zog hauv ib teev ib teev, lub cuab yeej ua tiav cov txiaj ntsig nce mus txog 1 MIPS ib MHz, ntsuas lub zog siv thiab ua kom nrawm.

(nyeem nws cov ntawv rau cov ntaub ntawv ntxiv)

ob daim npav no zoo ib yam thiab muaj qhov pinout tib yam.

Attiny85 yog qhov zoo tshaj rau Attiny13 raws li nws nyiam dua thiab muaj cov tsev qiv ntawv muaj ntau dua li attiny13 uas ua rau cov nti no yooj yim rau pib.

Kauj Ruam 2: Tsim Tus Txheej Txheem Shield

Tsim Cov Txheej Txheem Shield
Tsim Cov Txheej Txheem Shield
Tsim Cov Txheej Txheem Shield
Tsim Cov Txheej Txheem Shield

Kuv tsim lub nano breakout board hauv OrCad Cadance, nws muaj plaub lub LEDs (3 ntawm lawv txuas nrog D7 D8 thiab D9 rau ICSP cov xwm txheej txheej txheem, thiab plaub yog txuas nrog D11 lossis D0 ntawm qhov xav tau yog tias peb xav tau kev sim attiny onboard)

Kuv xa nws mus rau PCBWAY thiab tau txais PCBs hauv 22 hnub (vim tias muaj xwm txheej sib kis)

(Kuv tau ntxiv Gerber cov ntaub ntawv nrog rau cov txheej txheem yog li koj tuaj yeem xa qhov no mus rau PCB chaw tsim khoom lossis ua koj tus kheej version)

Kauj ruam 3: Sib dhos

Image
Image
Programming!
Programming!

Saib cov vis dis aus rau kev qhia ua ke yooj yim-

Kauj Ruam 4: Kuaj thiab Flashing Nano Nrog Arduino Raws Li ISP

Image
Image

Ua ntej, Kuv tau txuas Arduino nano nrog kuv lub khoos phis tawj thiab ua rau nws yooj yim Chaser coj cov duab uas yuav toggle coj txuas nrog tus pin D7, 8, 9, thiab D11 hauv chaser xaj. sab laug mus rau sab xis

(saib cov yees duab)

Tom qab qhov no, kuv tau tshaj tawm "Arduino li ISP" kos duab los ntawm qhov piv txwv piv txwv rau lub rooj tsavxwm no thiab luv luv lub jumper tom qab kos duab tau muab tso rau. Kuv ntsaws tawm USB cable thiab nqa tawm 6 attiny85, rau kev ua haujlwm.

Kauj ruam 5: Programming

Programming!
Programming!
Programming!
Programming!

Zoo li ntau tus neeg, Kuv tau nkag mus rau microcontrollers los ntawm Arduino platform, Arduino IDE tuaj yeem siv los ua haujlwm yuav luag txhua qhov Attiny Microcontroller los ntawm kev ntxiv Attiny Core cov ntaub ntawv los ntawm Spence Konde -

github.com/SpenceKonde/ATTinyCore

Txhim kho cov txheej txheem tau sau tseg zoo hauv GitHub nplooj ntawv

Flashing Process yog qhov yooj yim zoo nkauj thiab ncaj nraim rau tom ntej

  • Muab cov attiny85 lossis 13 hauv DIP SOCKET raws li Kev Ncaj Ncees raug
  • Mus rau Cov Cuab Yeej> Rooj Tswjhwm Saib thiab xaiv koj pawg attiny85.
  • Xaiv lub moos nrawm rau 1MHz, 4MHz lossis 8MHz (rau Blink Sketch 1MHz zoo)
  • Xaiv txoj cai com chaw nres nkoj
  • Hauv Tool> Programmer xaiv "Arduino as ISP"
  • Ntaus BURN BOOTLOADER
  • Tam sim no mus rau Sketch> thiab xaiv "Upload siv Programmer" lossis tsuas yog Ctrl+Ua haujlwm+U

Kauj ruam 6: Tshawb nrhiav

Muab cov phiaj xwm Attiny85 lossis 13 tso rau ntawm lub khob cij thiab txuas nrog D4* thiab GND thiab muab lawv cais.

ALL GONNA BLINK (saib cov vis dis aus)

Nrog rau kev teeb tsa no, koj tuaj yeem ua haujlwm ntau dua 1 qhov kev xav tau nyob rau tib lub sijhawm uas yog qhov txiaj ntsig zoo, raws li tam sim no koj tuaj yeem rov ua dua koj txoj haujlwm yooj yim lossis koj tseem tuaj yeem tsim lawv rau muag cov ntawv thov. Kuv vam tias cov ntawv no tau pab qee yam. txhua yam ntawm no yog OPENSOURCE yog li yog koj xav tau qee yam, tsuas yog tawm lus.

Pom zoo: