home.social

#attiny — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #attiny, aggregated by home.social.

  1. I know I am 10 years late, but I find it wild that you can install a software on a 16,5 MHz Microcontroller, that absolutely does not have USB, and then you have an USB capable device.

    #avr #attiny #vusb #micronucleus

  2. Found another area where the #Microchip #Attiny #AVR uCs have an edge over most of their #ARM counterparts: in rough conditions where you get lots of ripple on yout VDD.

    While the ARMs have an internal voltage reference (most times 1.2V), they cannot use this vref as reference for their ADC. The ADC always uses VDDA, which is almost always internally tied to VDD.

    In comparison the ATtiny402 can select VDD, 4.3V, 2.5V, 1.5V, 1.1V and 0.55V as vref.

    Ofc the DMA mode on the ARMs is really nice

  3. I designed another PCB... Small preview without revealing what it will be. It'll arrive mid January, though.
    They will be manufactured by @aislerhq again, using the 20% December discount for using their #KiCad plugin.
    It'll have the option to use an AVR DA compatible #microcontroller or a #tinyAVR one - I added options for both that I have in stock (AVR32DA32 and ATtiny814). Since it won't use many pins, I could have used smaller variants, too.
    #AVR #AVRDA #ATtiny #pcbdesign #kicad #aisler #pcbdesign

  4. ATtiny-Powered Business Card Plays Cracktro Hits - PCB business cards are a creative way to show your tech skills while getting your ... - hackaday.com/2025/07/29/attiny #pcbbusinesscard #handheldshacks #attiny1616 #attiny

  5. Измерение собственного напряжения питания микроконтроллера

    Началось все с того, что при проектировании своего устройства на микроконтроллере ATtiny 85 , которое должно было работать от встроенного li‑ion аккумулятора, я изначально не задавался целью измерения заряда АКБ, поскольку в этом не было необходимости. Однако, собрав все устройство на печатной плате, я подумал над тем, почему бы не добавить такую возможность. Прочитав в Интернете, как это можно было реализовать, стало ясно, что сделать это вряд ли удастся, поскольку все порты PB[0:5] уже были заняты и, следовательно, не было возможности применения АЦП с аналогового пина (при чем порт PB0 я не мог настроить на вход опорного напряжения AREF - он должен был использоваться как управляющий выход). Долгое изучение состояния регистров АЦП в datasheet на ATTiny 85 привело меня к следующей идее: в качестве опорного напряжения может быть выбрано само напряжение питания VCC (биты REFS [0:2] регистра ADMUX установлены в 0), а в качестве измеряемого ‑ напряжение VBG с внутреннего стабилизатора в 1.1В (биты MUX [3:0] регистра ADMUX установлены соответственно в 1100). То есть, для измерения напряжения питания не нужно ничего, кроме, собственно, самого питания VCC!

    habr.com/ru/articles/907954/

    #программирование #микроконтроллеры #c++ #программирование_микроконтроллеров #avr #attiny85 #attiny #ацп

  6. I was browsing some of the newer ATtiny chips the other day and started to make a note of some of their properties and it made me realise I actually have quite a few different microcontrollers at my disposal and many more I could be having a look at.

    But having committed to not attempting to get hold of every variant of every device to put a MIDI interface on it, I thought it would still be worth a post summarising some of the features to make selecting them in the future a little easier.

    There are many comparison charts and tables online, but this is my own summary of the things that are important to me right now in terms of using them for musical purposes.

    Note: I think the data is correct at the time of writing. Feel free to let me know of any mistakes. Also feel free to let me know what microcontrollers you use for music, and why, in the comments.

    8-bit Microcontrollers

    MCUFreqPWRGPIOADCPWMDACCommsRAMFlashATmega328P16MHz2.7-5.5V236/860UART, I2C, SPI2K32KATmega32U416MHz2.7-5.5V261280UART, I2C, SPI, USB2.5K32KATtiny858/20MHz2.7-5.5V6460USI5128KATtiny8812MHz2.7-5.5V28620I2C, SPI5128KATtiny21(2|4)
    ATtiny41(2|4|6)20MHz1.8-5.5V6|12
    6|12|186|10
    6|10|1261UART, I2C, SPI128
    2562K
    4K

    32-bit Microcontrollers

    MCUFreqPWRFPUGPIOADCPWMDACCommsRAMFlashSAMD21 (M0+)48MHz1.6-3.6VN30/381430?1SERCOM, I2S, USB4-32K32-256KSAMD51 (M4)120MHz1.6-3.6VY513237?1SERCOM, I2S, USB128-256256-1024KRP2040 (2xM0+)133MHz3.3VN304110UART, I2C, SPI, USB, PIO264KexternalESP32 (LX6)160MHz3.0-3.6VY3418162UART, I2C, SPI, I2S, Wi-Fi, BT0-2M0-4MESP32-S2 (LX7)240MHz2.8-3.6VN?432080UART, I2C, SPI, I2S, Wi-Fi0-2M0-2-4MESP32-S3 (2xLX7)240MHz3.0-3.6VY452080UART, I2C, SPI, I2S, Wi-Fi, BT0-2-8-16M0-4-8MESP32-A1S (2xLX6)240MHx3.0-3.6VY?14??2UART, I2C, SPI, I2S520K+4M0?

    Points of Note

    • The ATmega and ATtiny devices are all 8-bit AVR architecture and might be either 3V3 or 5V operation depending on the device. Whereas the others are all 32-bit, 3V3 operation, and either ARM or Tensilica Xtensa architectures.
    • The SAMD51, ESP32 and ESP32-S3 are all interesting as they include a floating point unit, which might be useful if I get into requiring mathematical synthesis.
    • ATtiny2xx, ATtiny4xx, SAMD21, SAMD51, ESP32 all include a DAC which would be really useful for generating control voltages.
    • ATmega32U4, SAMD21, SAMD51, RP2040 all support USB directly.
    • The last one is an interesting device. The ESP32-A1S is a single module that includes an ESP32 and a CODEC module. More recent versions use the ES8388 and support two audio in/out channels. There is an Espressif Audio Development Framework for use with all ESP32-based devices.

    Other MCUs of possible interest might include some of the newer RISC-V devices (e.g. ESP32-C3), the STM32 device range (the higher performing devices include floating point support, for example), the Teensy boards (which have a strong following for audio applications), and even running with the broadcom devices used on the various Raspberry Pis in “bare metal” mode.

    A key tradeoff already would be choosing between a more powerful, probably 32-bit, 3V3 logic devices or a less capable 5V device.

    Development Boards

    I’m unlikely to be working with a microcontroller directly though, given my own level of knowledge, so I’m probably going to be looking at some kind of development board.

    The following could all be possibilities if I’m happy running at 3V3.

    Note, many of the form-factors, e.g. Adafruit’s QT Py or Feather, support most of the architectures – but not all are listed – just those I have or might consider. I’ve also added in some other boards that I know are often used (or shout about being used) for audio applications.

    Prices are approximate at time of writing (Feb 2024).

    BoardMCUArchSpeedRAM/FlashFPUGPIOADCPWMI2SDACCostRPi PicoRP20402xM0+133MHz264K/2MN27316PIO0£4XIAOSAMD21M0+48MHz32K/256KN14111111£6XIAORP20402xM0+133MHz264K/2MN11411PIO0£6XIAOESP32-S32xLX7240MHz8M/8MY1191110£8XIAOESP32-C3RISC-V160MHz4K/4M?114110£6QT PySAMD21M0+48MHz32K/256KN119911£9QT PyRP20402xM0+125MHz264K/8MN13413PIO0£10QT PyESP32-S32xLX7240MHz512K+2M/4MY13101310£15TrinketSAMD21M0+48MHz32K/256KN55211£9ItsyBitsySAMD21M0+48MHz32K/256KN23111311£12ItsyBitsySAMD51M4120MHz192K/512K+2MN2371812£15FeatherSAMD21M0+48MHz32K/256KN2062011£19FeatherSAMD51M4120MHz192K/512K+2MY2161612£23FeatherRP20402xM0+125MHz264K/8MN21416PIO0£12FeatherESP32-S32xLX7240MHz2M/4MY2162110£17BananaPicoWESP32-S32xLX7240MHz512K/2M+8MY2718810£4WROOM32ESP322xLX6<240MHz500K/448K+4MY34152512£3Teensy 3.6MK66FX1M4F180MHz256K/1MY64252212N/ATeensy 4.0IMXRT1062M7600MHz1M/2MY40143120£26Teensy 4.1IMXRT1062M7600MHz1M/8MY55183520£30Arduino MKR ZeroSAMD21M0+48MHz32K/256KN2271311£30Arduino Giga R1STM32H747XM7
    M4480MHz
    240MHz1M/2M?761413?2£70

    It is interesting to note which boards support a DAC and which support I2S, both very useful for audio applications and the number of ADCs is relevant too.

    Boards specifically designed for audio processing, which I’ve no direct experience of, include:

    • Pico ADK – A RP2040 based “audio development kit” with 8 ADCs and SPI DAC.
    • Daisy Seed – an ARM Cortex-M7 with audio IO designed for DSP and audio applications (£35)
    • Bela and Bela Mini – designed for use with Beaglebone for real-time, low-latency audio processing (~£130-£160).

    And it is worth noting that the Teensy has many features well suited to audio processing, including a dedicated software audio toolkit (see below).

    Software Audio Frameworks

    There are a number of software frameworks for use with some of the above for audio processing:

    There is a bit of discussion about these here: Arduino Audio and MIDI Frameworks.

    Closing Thoughts

    I expect this page will evolve with new information, but it will be good to have a single post to refer back to.

    Kevin

    https://diyelectromusic.wordpress.com/2024/05/07/selecting-microcontrollers-for-music/

    #adafruit #arduino #attiny #esp32 #raspberryPi #raspberryPiPico #samd21 #samd51 #teensy

  7. Выполняем сторонние программы на микроконтроллерах с Гарвардской архитектурой: как загружать программы без знания ABI?

    Зачастую в процессе разработки собственных устройств или моддинга уже существующих, встаёт задача выполнения стороннего кода: будь то ваши собственные программы с SD-флэшек, или программы, написанные другими пользователями с помощью SDK для вашего устройства. Тема компиляторов и кодогенерации достаточно сложная: чтобы просто загрузить ELF или EXE (PE) программу, вам нужно досконально разбираться в особенностях вашей архитектуры: что такое ABI, релокации, GOT, отличие -fPIE от -fPIC, как писать скрипты для ld и т. п. Недавно я копал SDK для первых версий Symbian и основываясь на решениях из этой ОС понял, каким образом можно сделать крайне «дешевую» загрузку любого нативного кода практически на любом микроконтроллере, совершенно не вникая в особенности кодогенерации под неё! Сегодня мы с вами: узнаем, что происходит в процессе загрузки программы ядром Linux, рассмотрим концепцию, предложенную Symbian Foundation и реализуем её на практике для относительно малоизвестной архитектуры — XTensa (хотя она используется в ESP32, детали её реализации «под капотом» для многих остаются загадкой). Интересно? Тогда добро пожаловать под кат!

    habr.com/ru/companies/timeweb/

    #timeweb_статьи #bodyawm_ништячки #микроконтроллеры #микропроцессоры #esp32 #elf #binary #бинарные_файлы #exe #dll #so #executable #исполняемый_файл #программа #программы #загрузчик #линкер #linker #ld #gnu_ld #gcc #cc #xtensa #esp8266 #avr #atmega #attiny #pic #компоновщик #C #C++ #системное_программирование

  8. Added some capacitors and resistors to make sure eveything is stable. The PCB is not as tidy any more, but it's satisfying to do things right.

    #electronics #pcb #pcbdesign #custompcb #attiny #hobby #hobbyproject #tinkering

  9. Drew up this little PCB for a potential ATtiny high voltage programmer. Pretty neat if I may say so myself 🙂

    #electronics #pcb #pcbdesign #custompcb #attiny #attiny85

  10. My #WaterPump is now working really well since i introduced a new #microcontroller (#attiny) to manage when to pump though will see how it performs in winter. It only turns on when there is sun but that’s okay as I’m in no hurry to move the water, just need it slowly shifted up to the top rain barrel.
    Next year I also plan to build a solar powered #irrigation system for my raised #vegetable beds again using #directSolarEnergy and the water that I’ve pumped up from the lower rain barrels.

  11. Sorry that I haven’t updated for a while, been on holiday/vacation with family!
    Plans for next week:
    1. Build a development board for #attiny #microcontroller so I can work on my simple low powered #solar powered switches.
    2. Finally wire up my small scale #Agrivoltaics experiment- since harvesting my potatoes a week ago I now have some open space in my garden.
    #projectUpdate
    #arduino

  12. Electronic Shoe Explores Alleged Chess Misbehavior - A few months ago, a scandal erupted in the chess world which led to some pretty wi... - hackaday.com/2023/02/01/electr #wearablehacks #bluetooth #cheating #attiny #insole #games #chess #shoe #sole

  13. Electronic Shoe Explores Alleged Chess Misbehavior - A few months ago, a scandal erupted in the chess world which led to some pretty wi... - hackaday.com/2023/02/01/electr #wearablehacks #bluetooth #cheating #attiny #insole #games #chess #shoe #sole

  14. Electronic Shoe Explores Alleged Chess Misbehavior - A few months ago, a scandal erupted in the chess world which led to some pretty wi... - hackaday.com/2023/02/01/electr #wearablehacks #bluetooth #cheating #attiny #insole #games #chess #shoe #sole

  15. Electronic Shoe Explores Alleged Chess Misbehavior - A few months ago, a scandal erupted in the chess world which led to some pretty wi... - hackaday.com/2023/02/01/electr #wearablehacks #bluetooth #cheating #attiny #insole #games #chess #shoe #sole

  16. TinyTacho: Rotational Speed Measurement Without The Bulk - An electronic tachometer is a straightforward enough device, in which the light reflections from a... - hackaday.com/2020/11/26/tinyta #attinyhacks #tachometer #attiny #tacho #oled