Cov txheej txheem:

Yuav Siv Attiny85 Nrog Arduino: 4 Cov Kauj Ruam
Yuav Siv Attiny85 Nrog Arduino: 4 Cov Kauj Ruam

Video: Yuav Siv Attiny85 Nrog Arduino: 4 Cov Kauj Ruam

Video: Yuav Siv Attiny85 Nrog Arduino: 4 Cov Kauj Ruam
Video: 2.5.3 Неопределенные местоимения – Qhia ntawv Askiv Hais uas lus Hmoob 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Siv Attiny85 Nrog Arduino
Yuav Ua Li Cas Siv Attiny85 Nrog Arduino

Kuv yuav qhov Digispark's Attiny85 Board tshiab.

Tab sis tsis tuaj yeem siv nws tau ob hnub tsuas yog vim cov neeg tsav tsheb pob. Thiab thaum kawg tom qab tshawb nrhiav ntau kuv pom cov lus teb. Kuv hais txog ntau yam kev qhia rau qhov no thiab sim. Kuv tau txais qhov yuam kev rau COM chaw nres nkoj hauv Arduino. Ntawm no kuv daws rau nws.

Pinouts: Txhua tus pin tuaj yeem siv ua Digital I/O

Pin 0 → I2C SDA, PWM (LED ntawm Qauv B)

Pin 1 → PWM (LED on Model A)

Pin 2 → I2C SCK, Analog Hauv

Pin 3 → Analog Hauv (tseem siv rau USB+ thaum siv USB)

Pin 4 → PWM, Analog (tseem siv rau USB- thaum siv USB)

Pin 5 → Analog In

Txog qhov siv tus lej siv tus lej hla lub Digispark - tus lej muaj peev xwm tau teev nyob rau sab nraum qab

Kauj Ruam 1: Nruab Windows Driver rau Attiny85

Nruab Windows Tsav Tsheb rau Attiny85
Nruab Windows Tsav Tsheb rau Attiny85

Yog tias siv Arduino 1.6.6 lossis siab dua thiab windows - koj yuav tsum rub tawm thiab teeb tsa cov tsav tsheb ua ke. Rub tawm, unzip thiab khiav "Install Drivers" (ntawm 32bit systems) lossis "DPInst64" (ntawm 64bit systems).

Cov ntaub ntawv tsav tsheb nyob ntawm no:

Txuas

Tom qab rub tawm cov ntawv.zip> rho tawm nws.

thiab khiav lub

Nruab drivers.exe (Rau 64 ntsis OS)

DPinst64.exe (rau 32 ntsis OS)

Kauj Ruam 2: Txhim Kho Pawg Pob rau Arduino

Txhim Kho Pawg Pob rau Arduino
Txhim Kho Pawg Pob rau Arduino
Txhim Kho Pawg Pob rau Arduino
Txhim Kho Pawg Pob rau Arduino
Txhim Kho Pawg Pob rau Arduino
Txhim Kho Pawg Pob rau Arduino

Luam qhov url no thiab muab tshuaj txhuam rau hauv Cov Ntawv> nyiam> ntxiv tus thawj tswj hwm pawg url

digistump.com/package_digistump_index.json

  • Mus rau "Cov cuab yeej" ntawv qhia zaub mov thiab tom qab ntawv "Board" submenu - xaiv "Boards Manager" thiab tom qab ntawd los ntawm hom nco cia xaiv "Pab Txhawb":
  • Xaiv lub pob "Digistump AVR Boards" thiab nyem rau "Install" khawm.
  • Koj yuav pom qhov kev txhim kho rub tawm ntawm kab hauv qab ntawm "Tus Thawj Saib Xyuas" lub qhov rai thaum ua tiav nws yuav qhia "Txhim Kho" tom ntej ntawm cov khoom ntawd ntawm cov npe.
  • WINDOWS USERS: Thaum ua tiav kev teeb tsa nrog pop up a Driver Install Wizard window, thov nyem "Tom ntej" ntawm lub Qhov Rais no txhawm rau teeb tsa cov tsav tsheb rau Digistump Boards (Yog tias koj twb muaj lawv teeb tsa, tus installer no yuav hloov kho lawv thiab teeb tsa ib qho uas ploj lawm.)
  • Nrog rau kev teeb tsa ua tiav, kaw lub "Boards Manager" qhov rai thiab xaiv Digispark los ntawm Cov Cuab Yeej → Boards ntawv qhia zaub mov. "Digispark (Default - 16.5mhz)" yog pawg thawj coj uas yuav tsum tau xaiv los ntawm txhua tus neeg siv tshiab.
  • Tam sim no kev teeb tsa tiav! (Linux cov neeg siv pom daim ntawv hauv qab no)

Linux Txhim Kho Yog tias koj tsis tau ua ntej - Txhim kho txoj cai udev pom ntawm no: Tshooj lus daws teeb meem

NCO NTSOOV LINUX USERS: THOV NCO NTSOOV NTAWM LINUX TROUBLESHOOTING PAGE **

Kauj Ruam 3: Yuav Ua Li Cas Upload Txoj Haujlwm

Yuav Ua Li Cas Upload Txoj Haujlwm
Yuav Ua Li Cas Upload Txoj Haujlwm
Yuav Ua Li Cas Upload Txoj Haujlwm
Yuav Ua Li Cas Upload Txoj Haujlwm
Yuav Ua Li Cas Upload Txoj Haujlwm
Yuav Ua Li Cas Upload Txoj Haujlwm

Digispark ua haujlwm sib txawv me ntsis dua li qee yam khoom siv tau Arduino. Digispark cov haujlwm nrog rau txheej txheem sib txawv.

Los ntawm Cov Cuab Yeej ntawv qhia zaub mov xaiv Board → Digispark (Default - 16.5Mhz)

Sau qee cov cai, qhib koj cov cai.

Koj tsis tas yuav ntsaws rau hauv koj lub Digispark ua ntej thov rub tawm Rub tawm lub pob upload.

Lub thawv xwm txheej hauv qab tam sim no yuav nug koj kom ntsaws rau hauv koj lub Digispark - ntawm qhov no, koj yuav tsum ntsaws nws - lossis tshem tawm thiab rov txuas nws.

Koj yuav pom qhov kev txhim kho upload thiab tom qab ntawd nws yuav tam sim ntawd khiav koj cov cai ntawm Digispark. Yog tias koj tshem lub Digispark thiab ntsaws nws rov qab lossis txuas nws mus rau lwm lub zog siv yuav muaj qhov ncua sijhawm 5 vib nas this ua ntej tus lej koj programmed yuav khiav. Qhov ncua sij hawm 5-thib ob yog Digispark Pro tshuaj xyuas seb koj puas tab tom npaj rau nws.

Kauj ruam 4: Troublshootings

Qhov no kom nco ntsoov

Digisparks tsis tsim cov chaw nres nkoj. Cov digispark arduino software sib tham ncaj qha rau digispark hla kev sib xyaw ntawm cov txheej txheem qis USB ceev thiab cov txheej txheem HID txhawm rau txuag chaw thiab ua raws ntau yam nrog USB kev qhia tshwj xeeb.

Thaum siv Digispark Arduino software nws tsis muaj teeb meem dab tsi uas tau xaiv hauv cov npe chaw nres nkoj - tsis siv. Tsuas yog xyuas kom Digispark raug xaiv hauv Programmer cov ntawv qhia zaub mov thiab Digispark (cov tub ntxhais me) tau xaiv hauv Pawg Thawj Coj zaub mov thiab koj yuav tsum tau nce thiab khiav.

Thaum siv Digispark Arduino software nws tsis muaj teeb meem dab tsi uas tau xaiv hauv cov npe chaw nres nkoj - tsis siv. Tsuas yog xyuas kom Digispark raug xaiv hauv Programmer cov ntawv qhia zaub mov thiab Digispark (cov tub ntxhais me) tau xaiv hauv Pawg Thawj Coj zaub mov thiab koj yuav tsum tau nce thiab khiav.

  • Rau cov piv txwv cov phiaj xwm yog tias koj tau txais "Tsis pom lub cuab yeej" txawm tias tom qab txhim kho DigiUSB tus tsav tsheb hauv cov piv txwv nplaub tshev ces sim qhov no: https://digistump.com/board/index.php/topic, 257.0.html
  • Yog tias Windows tsis lees paub "DigiUSB" tab sis ib qho "HID-raws li lub cuab yeej"/"USB Cov Khoom Siv Hluav Taws Xob" khub, mus rau Tus Thawj Saib Xyuas Ntaus Ntawv, nrhiav hauv "Human Interface Devices" qeb USB Input Device nrog tus muag khoom ID ntawm 0x16C0 thiab xaiv "hloov kho tus tsav tsheb" / "xauj kuv lub khoos phis tawj" / "cia kuv xaiv los ntawm cov npe" thiab DigiUSB yuav tsum tshwm rau ntawd.

Pom zoo: