Category Archives: attiny

Tiny Two-Digit Thermometer Has Long Battery Life

Like most of his work, this tiny two-digit thermometer shows that [David Johnson-Davies] has a knack for projects that make efficient use of hardware. No pin is left unused between the DS18B20 temperature sensor, the surface mount seven-segment LED displays, and the ATtiny84 driving it all. With the temperature flashing …read more

Continue reading

Posted in 7-segment display, attiny, ATtiny Hacks, attiny84, coin cell, cr2032, ds1820, DS18B20, Microcontrollers, seven segment, temperature | Leave a comment

DIY Button Matrix Lights Up And Speaks I2C

[David Johnson-Davies] always wanted an illuminated button matrix for projects, but cost was never very friendly. That all changed when he discovered a cheap source of illuminated pushbuttons on Aliexpress, leading to this DIY 4×4 illuminated button matrix design which communicates over I2C. The button states can be …read more

Continue reading

Posted in attiny, ATtiny Hacks, attiny88, button matrix, i2c, illuminated buttons, led hacks, led matrix, Microcontrollers | Leave a comment

Ultra Tiny PC plays Snake

[Steve Martin] used to do a comedy act about “Let’s get small!” You have to wonder if [Paul Klinger] is a fan of that routine, as he recently completed a very small 3D printed PC that plays snake. Ok, it isn’t really a PC and it isn’t terribly practical, but …read more

Continue reading

Posted in 3d Printer hacks, 3d printing, attiny, ATtiny Hacks, miniature, snake, tiny | Leave a comment

Being an SPI Slave Can Be Trickier than it Appears

Interfacing with the outside world is a fairly common microcontroller task. Outside of certain use cases microcontrollers are arguably primarily useful because of how easily they can interface with other devices. If we just wanted to read and write some data we wouldn’t have gotten that Arduino! But some tasks are more common than others; for instance we’re used to being on the master side of the interface equation, not the slave side. (That’s the job for the TI engineer who designed the temperature sensor, right?) As [Pat] discovered when mocking out a missing SPI GPIO extender, sometimes playing the …read more

Continue reading

Posted in attiny, ATtiny Hacks, gpio expander, gpio extender, hardware, spi, spi peripheral, spi slave | Leave a comment

Drawing On an OLED with an ATtiny85, No RAM Buffers Allowed

Small I2C OLED displays are common nowadays, and thanks to the work of helpful developers, there are also a variety of graphics libraries for using them. Most of them work by using a RAM buffer, which means that anything one wants to draw gets written to a buffer representing the screen, and the contents of that buffer are copied out to the display whenever it is updated. The drawback is that for some microcontrollers, there simply isn’t enough RAM for this approach to work. For example, a 128×64 monochrome OLED requires a 1024 byte buffer, but that’s bad news if …read more

Continue reading

Posted in attiny, ATtiny Hacks, attiny85, i2c, Microcontrollers, oled, ram buffer, sh1106, software library, ssd1306 | Leave a comment