2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ATtiny84にArduinoを使って書込してみた

Posted at

今回は、ATtiny84に書込をしてみたのでそれの記録。
意外とATtiny84に書込をした記述は少ない!
なんで?!

配線

スクリーンショット 2022-04-04 22.30.10.png

スクリーンショット 2022-04-04 22.29.43.png

書込設定

1、まずはArduino unoに「ArduinoISP」を書き込む。

ファイル>スケッチ例>11.ArduinoISP>ArduinoISPを選択し、マイコンボードに書き込むボタンをクリック。
スクリーンショット 2022-04-11 22.32.56.png

2、ボード環境の構築

Arduino>Prefrencesをクリックして、追加のボードマネージャのURLに以下を追加。
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

スクリーンショット 2022-04-11 22.36.38.png

3、ブートローダの書込

以下の画像の設定で、「ブートローダを書き込む」をクリック。
スクリーンショット 2022-04-11 22.40.04.png

4、Lチカのサンプルプログラム書込

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(7, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(7, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(7, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

5、サンプル用の配線

電池で動作する配線接続を行いました。
スクリーンショット 2022-04-11 22.47.00.png

注意点

ATtiny84のピン番号は少し変わっていますのでその点だけ要注意です。
ピン番号は以下のサイトを参考にして下さい。
https://create.arduino.cc/projecthub/Arnov_Sharma_makes/programming-attiny84-088482

ATtinyを使った開発依頼お待ちしております〜^^

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?