FT232RLでAVRライターを自作してATtiny85をDigispark互換にするまで 今回は二つの内容が含まれていると思ってください。一つはFT232RLを使ったAVRライターの記事で、これに関しては巷に古い情報があふれすぎているので今の情報を書いてみる事にしました。もう一つは、ATtiny85にmicronuclesとlittlewireを焼き込むことで、Digispark互換を仕立て上げるという二点になります。 FT232RL (AE-UM232R)を使ったAVRライター たとえばArduino Unoに乗っているCPU(ATmega328P)を買ってきてそのまま動かせば、Arduinoのスケッチが動くかというと残念ながら、ブートローダーというものが入っておらずそのままでは無理です。生のCPUにブートローダーを焼き込む為のハードウェアが必要になります。Arduino Unoを既に
皆さんは電子工作でどんなマイコンを使っていますか?Raspberry PI, Arduino, ESP-WROOM-02(ESP8266), ATmega328Pなど色々ありますが、今日はDigiSparkを紹介します。 Digisparkとは DigisparkはUSBに直接挿せるマイコンボードで、USB1.1デバイス(low-speed)になることができます。 このボードにはATTiny85と三端子レギュレータと抵抗などの細かい部品しか乗ってません。片面実装なので裏に何かUSBチップがのってるというわけでもありません。ATTiny85自体にはUSBを直接扱うハードウェア的な仕組みはありませんが、USBプロトコルスタックはソフトウェアスタック(V-USB - A Firmware-Only USB Driver for Atmel AVR Microcontrollers)が使われていま
とにかく小さくて安いのに、ほぼArduinoとして使える。 そしてズボンのコインポケットに入れて持ち歩けるので電車内hackに便利。 Digispark購入ページ DigiSpark wiki ソースコードはここに置いておいた。 デジタル出力・アナログ出力・アナログ入力・Mac上のRubyとのUSB通信を試した。 https://github.com/shokai/digispark-study 「webサービスと連動したちょっとしたハードウェア」にはArduinoはオーバースペックだと思うので、DigiSparkちょうどいいと思う。 普通のArduinoとの違い 詳しくは digispark:tutorials:basics [Digistump Wiki] 多少制限はある。 IOピン数が6本、PCとUSB通信する場合は4本しか無い プログラムを書き込めるメモリ領域が6Kbyteしかない
The bootloader is the code that is pre-programmed on your Digispark and allows it to act as a USB device so that it can be programmed by the Arduino IDE. The Digispark runs the “micronucleus tiny85” bootloader version 1.02, an open source project: https://github.com/micronucleus/micronucleus originally written by Bluebie: https://github.com/Bluebie. CAUTION We are not at this point supporting upgr
Micronucleus is a bootloader designed for AVR ATtiny microcontrollers with a minimal usb interface, cross platform libusb-based program upload tool, and a strong emphasis on bootloader compactness. To the authors knowledge this is, by far, the smallest USB bootloader for AVR ATtiny The V2.0 release is a complete rewrite of the firmware and offers significant improvements over V1.x: Support for the
GPIO output is 20 mA max per pin, same as a regular Arduino. USB communication uses pins #3 and #4. Using these pins for your circuit can interfere with the USB interface, e.g. reprogramming the Digispark. So it’s a good idea to provide some sort of disconnect ability if you use either of these two pins.
The Digispark is compatible with the Arduino IDE - that does not, however, mean it can do everything an Arduino can do. In order to achieve the low cost and small size of the Digispark some compromises had to be made. The Arduino programming reference is here: http://arduino.cc/en/Reference/HomePage Here is a list of some of the differences worth considering when designing or troubleshooting (pin
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く