Digispark attiny85 driver linux

DigiSpark ATtiny85 настройка Arduino IDE и установка драйвера.

DigiSpark – это Ардуино подобная отладочная плата на ATtiny85. Имеет небольшой размер и минимум pin для подключения периферийных устройств. Программирование также отличается от классической Arduino UNO. Давайте рассмотрим все по порядку.

Характеристики Digispark

  • Поддержка Arduino IDE 1.0 и более поздних (OS X, Windows и Linux)
  • Питание от USB или внешнего источника — 5 В или 7-35 V (автоматический выбор)
  • Регулятор на 5В 500мА
  • Встроенный USB
  • 6 портов ввода / вывода (2 используются для USB, только если ваша программа активно общается по USB, в противном случае вы можете использовать все 6, даже если вы программируете с помощью USB)
  • 8KB флэш-памяти (около 6КБ под программу, 2 КБ заняты загрузчиком)
  • ОЗУ (SRAM) — 512 байт
  • Энергонезависимая память (EEPROM) — 512 байт
  • I²C и SPI интерфейс
  • 4-х канальный 10-разрядный АЦП
  • Аналоговый компаратор
  • 2 8-битных таймера-счетчика
  • Сторожевой таймер
  • PWM на 3 вывода (больше ШИМ выходов можно обеспечить программным способом)
  • сделан на базе ATtiny85-20SU

Купить Digispark можно тут.

Обратите внимание! Digispark есть 2 модели А и В. Как они отличаются можно прочитать тут.

Все выводы могут быть использованы в качестве цифровых входов/выходов:

Pin 0 → I2C SDA, PWM (LED on Model B)

Pin 1 → PWM (LED on Model A)

Pin 2 → I2C SCK, Analog

Pin 3 → Аналоговый вход (Занят контактом USB+, в случае использования USD)

Pin 4 → PWM (Занят контактом USB-, в случае использования USD)

Pin 5 → Аналоговый вход

Добавляем DigiSpark в список отладочных плат Arduino IDE.

Для начала нам нужно установить Arduino IDE, как это сделать, можно посмотреть тут.

Затем переходим в пункт меню «Файл -> Настройки»

В открывшемся окне настроек нам нужно добавить ссылку для менеджера плат. Если у вас уже есть добавленные ссылки для других плат, то у вас будет как у меня несколько строк. Если вы устанавливаете первую дополнительную плату у вас будет всего 1 строчка, которая приведена ниже.

Затем можно зайти в «Менеджер плат».

Ищем плату «digispark». И устанавливаем плату.

Установка драйверов для DigiSpark.

Для работы платы DigiSpark нужно установить драйвер, который вы можете скачать внизу статьи в разделе «Файлы для скачивания».

Читайте также:  Wordpress как установить рекламу

Распакуйте скаченный архив и запустите файл «DPinst64.exe» для 64 битной ОС и «DPinst.exe» для 32 битной Windows.

Процесс установки не сложный и напоминает установку обычной программы.

В процессе потребуется подтверждение установки драйверов.

На этом установка драйверов для DigiSpark закончена.

Загрузка тестового скетча в DigiSpark.

Сейчас можно перейти к загрузке первого скетча в DigiSpark. Для этого открываем Arduino IDE. В разделе «Инструменты» выбираем плату «DigiSpark (Default — 16.5mhz)». Порт выбирать не нужно.

Загружать будем вот такой тестовый скетч, который позволяет мигать встроенным светодиодам. Так как у разных моделей DigiSpark (A, B) светодиод подключен к разным пинам, в скетче реализовано изменение положения с высокого уровня на низкий для пинов 0 и 1. Что позволят сделать данный код универсальным и применимым для обоих типов плат.

Важно! Загрузка проходит не как Arduino UNO. Подключать плату к ПК не нужно. Сперва нажимаем кнопку «Загрузить» и после того как мы увидим надпись

Можно подключать DigiSpark к компьютеру. После чего вы должны увидеть проценты загрузки кода. Как видим, текст выводится оранжевым цветом. Это нормально.

После загрузки кода увидим, как мигает светодиод на плате.

У меня на DigiSpark реализовано несколько интересных проектов:

Но на этом планирую не останавливаться в освоении отладочной платы DigiSpark ATtiny85.

Понравилась статья DigiSpark ATtiny85 настройка Arduino IDE и установка драйвера? Не забудь поделиться с друзьями в соц. сетях.

А также подписаться на наш канал на YouTube, вступить в группу Вконтакте, в группу на Facebook.

Спасибо за внимание!

Технологии начинаются с простого!

Источник

Digistump Wiki

User Tools

Site Tools

Table of Contents

Connecting and Programming Your Digispark

Bootloader:

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 upgrading the firmware, so if you decide to, you do so entirely at your own risk.

Software:

The Digispark uses the Arduino IDE 1.6.5+ (Arduino 1.6.5r2 — NOT 1.6.6 or 1.6.7 strongly recommended)

Installation Instructions:

and click OK

Note: If you already have additional URLs entered in that box, then click the button on the right of the box and enter this URL on a new line.

Linux Install

Sources

Using the Digispark with the Arduino IDE:

The Digispark works a bit differently than some Arduino compatible products. The Digispark programs with a different procedure.

From the Tools menu select Board→Digispark (Default — 16.5Mhz)

(The Tools→Programmer selection does not matter)

Write some code, open your code, or open a Digispark example.

Читайте также:  Joomla php current page

You do not need to plug in your Digispark before invoking upload

Hit the upload button. The bottom status box will now ask you to plug in your Digispark — at this point you need to plug it in — or unplug and replug it.

You’ll see the upload progress and then it will immediately run your code on the Digispark.

If you unplug the Digispark and plug it back in or attach it to another power source there will be a delay of 5 seconds before the code you programmed will run. This 5 second delay is the Digispark Pro checking to see if you are trying to program it.

Your first upload:

If you’re just getting started try the above procedure with the example you can find by going to File→Examples→Digispark→Start

Here is the code it will load:

This code will blink the BUILTIN LED (on either pin 0 or pin 1 depending on the Digispark model see:Model Identification).

As soon as it has uploaded you should see the LED start to blink!

For some sample code for the basic I/O function see here: Digispark Basics

Digispark Differences and Using Arduino/Processing with the Digispark:

The Arduino Environment introduction is a great start if you are new to the Arduino IDE: http://arduino.cc/en/Guide/Environment

The Digispark supports all features found in the IDE with the exception of the serial monitor and the burn bootloader functionality.

Many existing libraries will not work with the Digispark: For I2C devices check out the TinyWireM library, which makes it super simple to port an I2C based device library over to use with the Digispark.

For a handy pin reference flip over the Digispark — pin capabilities are listed on the back

For some sample code for the basic i/o function see here: Digispark Basics

Precautions:

The Digispark, due to its small size and low cost is not as robust as a full blown Arduino.

When testing a new circuit we recommend that you test it with an external power supply first. Connecting a shorted circuit to the Digispark and connecting it to your computer could damage your computer and/or its USB ports. We take no responsibility for damage to your machine as a result of the use of a Digispark.

We strongly recommend connecting your Digispark through a USB hub which will often limit the damage caused by a short circuit to the usb hub. For the record, we’ve found many computers have usb fuses built in, and when we blew them on our 27“ Mac monitor, thankfully they reset and everything worked after a power down.

The Digispark does not have short circuit or reverse polarity protection. Connecting power to the Digispark power pins backwards will almost certainly destroy it.

Читайте также:  Картридж для принтера samsung m4020

The Digispark is small enough to present a choking hazard and small enough to be inserted into some sockets. We take no responsibility for misuse of the product. Please treat electricity and electronics with respect and common sense.

Troubleshooting:

The Digispark pushes affordable, small components to their limits by using software to emulate USB functions generally served by a dedicated chip. For this reason much of the Digispark’s USB operation is considered borderline out of spec . Certain laptops, older machines, and just some cheaply made USB hubs/controllers do not like this. We tested and designed the Digispark for maximum compatibility but we can not guarantee it will work with everything.

In addition remember the Digispark only shows up as a programmable device for 5 seconds, after that it will start running its code (when it is new and un-programmed this means it will blink) and disappear or act like the USB device you programmed it to act like.

Always remember to unplug the Digispark before hitting upload and plug it in when the Arduino IDE requests you to. If you get an error that assertion failed or micronucleus crashed during upload then you probably did not unplug your Digispark before uploading.

If the computer will not recognize the Digispark try the following:

If it won’t upload:

Did you set your board AND programmer to Digispark in the Arduino IDE?

WINDOWS:

MAC

If your upload fails in the middle of it, you may also be using a bad USB cord and or a bad hub.

Источник

Digispark attiny85 driver linux

После замены Ubuntu с 14.04 на 18.04 Arduini IDE не видит Digispark
Хотя сама ОС видит подключение Digispark ATtiny85 к USB

Порядок моих действий

Устанавливаю Пакет libusb
# sudo apt-get update
# sudo apt-get install libusb-1.0-0

Источник

LilyGO/DigiSpark-ATtiny85-driver-install

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

board settin up

About

Resources

Stars

Watchers

Forks

Releases

Packages 0

© 2022 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Поделиться с друзьями
КомпСовет
Adblock
detector