Cov txheej txheem:

Arduino Uno rau Txoj Haujlwm ATTINY84 (Arduino V. 1.8.5): 6 Cov Kauj Ruam
Arduino Uno rau Txoj Haujlwm ATTINY84 (Arduino V. 1.8.5): 6 Cov Kauj Ruam

Video: Arduino Uno rau Txoj Haujlwm ATTINY84 (Arduino V. 1.8.5): 6 Cov Kauj Ruam

Video: Arduino Uno rau Txoj Haujlwm ATTINY84 (Arduino V. 1.8.5): 6 Cov Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Arduino Uno rau Txoj Haujlwm ATTINY84 (Arduino V. 1.8.5)
Arduino Uno rau Txoj Haujlwm ATTINY84 (Arduino V. 1.8.5)

Siv Arduino Uno los ua haujlwm ATTINY84-20PU (Digikey yam # ATTINY84-20-PU-ND). Cov Lus Qhia no qhia yuav siv Arduino platform ua haujlwm nrog lub cev ua haujlwm me me, xws li ATtiny84 (84/44/24). Qhov piv txwv no tshwj xeeb rau ATtiny84-20PU tus txheej txheem tab sis tuaj yeem hloov kho rau lwm cov laug cam los ntawm kev xaiv lub rooj tsav xwm tsim nyog los ntawm Arduino software (piv txwv li, Arduino IDE) thiab hloov kho tus pinouts raws li xav tau.

(Hloov tshiab rau Arduino 1.8.5)

Kauj Ruam 1: Ntxiv ATtiny Core Supprt rau Arduino IDE Software

Ntxiv ATtiny Core Supprt rau Arduino IDE Software
Ntxiv ATtiny Core Supprt rau Arduino IDE Software

Rau Arduino 1.8.5:

  1. Qhib Arduino software (aka Arduino Integrated Development Environment [IDE]).
  2. Qhib kev nyiam: [NTAWV] [PREFERENCES]
  3. Muab tshuaj txhuam URL rau Tus Thawj Saib Xyuas Ntxiv URLs:

Kauj Ruam 2: Program Arduino rau Siv Ua Tus Txheej Txheem Hauv-System (ISP)

Program Arduino rau Siv Ua Tus Txheej Txheem Hauv-System (ISP)
Program Arduino rau Siv Ua Tus Txheej Txheem Hauv-System (ISP)
Program Arduino rau Siv Ua Tus Txheej Txheem Hauv-System (ISP)
Program Arduino rau Siv Ua Tus Txheej Txheem Hauv-System (ISP)
  1. Xaiv pawg Arduino: [TOOLS] [BOARD] [ARDUINO/GENUINO UNO]. Nco tseg: txawm hais tias kuv muaj Arduino UNO Kuv tau hloov lub khoos phis tawj nrog kev npaj ua ntej Atmega328P uas xav kom kuv xaiv "Arduino Duemilanove lossis Diecimila."
  2. Xaiv Programmer: [TOOLS] [PROGRAMMER] [AVR ISP].
  3. Qhib ArduinoISP kos duab: [FILE] [EXAMPLES] [11. ArduinoISP] [ArduinoISP]
  4. Upload daim duab.

Kauj Ruam 3: Txuas ATtiny84 rau Programming

Txuas ATtiny84 rau Programming
Txuas ATtiny84 rau Programming
Txuas ATtiny84 rau Programming
Txuas ATtiny84 rau Programming
Txuas ATtiny84 rau Programming
Txuas ATtiny84 rau Programming

Txuas Arduino Pins rau ATtiny84 pins:

  • Arduino 5V rau ATtiny84 Pin 1
  • Arduino Pin 10 rau ATtiny84 Pin 4
  • Arduino Pin 11 rau ATTiny84 Pin 7
  • Arduino Pin 12 rau ATtiny84 Pin 8
  • Arduino Pin 13 rau ATtiny84 Pin 9
  • Arduino GND rau ATtiny84 Pin 14
  • Arduino RESET rau 10uF capacitor (+ sab / ntev ceg)
  • GND rau 10uF capacitor (- sab / luv ceg)

Kauj Ruam 4: Teeb Arduino rau Program ATtiny84

Teeb Arduino rau Txoj Haujlwm ATtiny84
Teeb Arduino rau Txoj Haujlwm ATtiny84
  1. Xaiv Arduino board: [TOOLS] [BOARD] [ATtiny24/44/84]. Tam sim no cov kev xaiv pawg thawj coj saib xyuas ntxiv yuav tshwm nyob rau hauv Cov Ntawv qhia zaub mov lub sijhawm tom ntej Cov Cuab Yeej tau qhib.
  2. Xaiv B. O. D. xiam oob qhab: [TOOLS] [B. O. D.] [B. O. D. Xiam oob qhab]
  3. Xaiv LTO xiam oob qhab: [TOOLS] [LTO 1.6.11+ nkaus xwb] [Xiam Oob Qhab]
  4. Xaiv Pin Mapping counterclockwise: [TOOLS] [Pin Mapping] [Counterclockwise]
  5. Xaiv Chip Attiny84: [TOOLS] [Chip] [Attiny84]
  6. Xaiv Moos 8MHz: [TOOLS] [Moos] [8 MHz sab hauv]
  7. Hlawv bootloader: [TOOLS] [Hlawv Bootloader]

Kauj ruam 5: Program ATtiny84

Qhov Kev Pab ATtiny84
Qhov Kev Pab ATtiny84
  1. Qhib Blink sketch: [FILE] [EXAMPLES] [01. Basics] [Blink]
  2. Kho duab kos:

    1. Ua ntej yuav tsis muaj teeb tsa teeb tsa (), txhais lub npe tus pin (coj) thiab qhov chaw (tus pin 0): int coj = 0;
    2. tso "LED_BUILTIN" nrog "coj" hauv qhov tsis muaj stetup () thiab hauv lub voj void ()
  3. Upload daim duab.
  4. Fais fab tua thiab txiav tawm ntawm Arduino.

Kauj Ruam 6: Txuas ATtiny84 kom Ua Raws Li Ib Leeg

Txuas ATtiny84 los Ua Ib Leeg Ib Leeg
Txuas ATtiny84 los Ua Ib Leeg Ib Leeg
Txuas ATtiny84 los Ua Ib Leeg Ib Leeg
Txuas ATtiny84 los Ua Ib Leeg Ib Leeg
Txuas ATtiny84 los Ua Ib Leeg Ib Leeg
Txuas ATtiny84 los Ua Ib Leeg Ib Leeg
  • ATtiny Pin 1 txog 5V qhov chaw (tseem tsis tau qhib lub zog tseem)
  • ATtiny Pin 2 rau LED (ceg ntev)
  • ATtiny Pin 14 rau hauv av
  • LED (luv ceg) rau Resistor (kawg 1) ntawm 100 thiab 1k Ohm
  • Resistor (kawg 2) rau hauv av
  • Qhib lub zog rau ATtiny84

Pom zoo: