1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ArduinoIDE 2からはATtinyがサポートされていない

Posted at

久しぶりにATtiny85へ書き込みをしようとしたらできなかった。
調べてみたらArduinoIDE2.3.2では、ボードマネージャURLの
http://drazzy.com/package_drazzy.com_index.json」を対応していなかった。

代わりに「https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json」を追加して、
ATtiny85に書き込みを行った。

設定

1、ArduinoIDEを起動して「基本設定」を選択
image.png

2、追加のボードマネージャのURLに
https://mesom.de/atflash/package_atflash_index.jso」を追加
image.png

3、ボードマネージャで「ATtiny」と入力して「attiny」をインストール
image.png

4、ArduinoUNOにArduinoISPを書き込み
image.png

配線

配線方法はこの方のサイトを参考にしました。
https://burariweb.info/electronic-work/attiny85-optiboot-serial-write.html

ブートローダ書き込み

はじめは、ATtinyは空っぽの状態なのでブートローダを書き込む。
設定は以下で「ブートローダを書き込む」をクリック
image.png

サンプルスケッチ

以下のサンプルスケッチを書き込む

void setup() {
  pinMode(4, OUTPUT);
}
 
void loop() {
  digitalWrite(4, HIGH);
  delay(1000);
  digitalWrite(4, LOW);
  delay(1000);
}

以下の方法で書き込み
image.png

これで1秒間隔でLEDが点滅します。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?