Tag Archives: ATtiny85

ATtiny85 Function Generator

David Johnson-Davies build a tiny function generator based on ATtiny85 microcontroller. He writes:

This article describes a simple function generator based on an ATtiny85. It can generate triangle, sawtooth, square, and rectangular waves, a pulse train, and noise. The frequency can be adjusted using a rotary encoder between 1Hz and 5kHz in steps of 1Hz, and the selected waveform and frequency is displayed on an OLED display.

This project really puts the ATtiny85 through its paces; it’s generating 8-bit samples at a 16kHz sampling rate, decoding the rotary encoder, switching between waveforms, and updating the OLED display via I2C.

ATtiny85 Function Generator – [Link]

ATtiny85 runs at 0.000011574Hz clock

What is the lowest possible clock frequency at which a microcontroller can still do useful work? Here’s a little project that attempts to explore this weird question. by @ idogendel.com:

ATtiny85 runs at 0.000011574Hz clock – [Link]

RELATED POSTS

Continuity Tester using ATtiny85

This article describes a simple continuity tester based on an ATtiny85. The tester features a buzzer that sounds to help you determinate the trace continuity. It is designed for checking circuit wiring, or tracing out the tracks on a PCB. According to it’s author David Johnson-Davies it has a low threshold resistance of 50Ω to avoid false positives, and passes less than 0.1mA through the circuit under test, to avoid affecting sensitive components. It’s powered from a small button cell, and automatically switches itself off when not in use, avoiding the need for an on/off switch.

BeanDuino Attiny85 – super small Digispark clone

The BeanDuino is an ATtiny85 based microcontroller development board similar to the Arduino line highly inspired by DigiSpark , BeanDuino is hardware compatible with Adafruit Trinket / Gemma.

Specifications:

  • Support for the Arduino IDE 1.0 and later (OS X, Windows, and Linux)
  • Built-in USB
  • 5 I/O pins (2 are used for USB only if your program actively communicates over USB, otherwise you can use all 5 even if you are programming via USB) or 6 I/O pins if you dissable reset fuse
  • 8 KB flash memory (about 6 KB after bootloader)
  • I2C and SPI (vis USI)
  • PWM on 3 pins (more possible with software PWM)
  • ADC on 4 pins
  • Internal temperature sensor
  • On-board PB1 led – no shield required !!!
  • Keyboard or other HID devices emulation (mouse, gamepad …)
  • reset is enabled you can program this board with USBASP or Arduino via ISP you can easy replace/repair/remove bootloader
  • slim design 11×20 mm
  • breadboard compatible

BeanDuino Attiny85 – super small Digispark clone – [Link]

Breadboard Friendly ATTiny85

Chris @ chris3d.com build his own Attiny85 board:

 The modularity of Arduinos is great, but after playing with them for a year or so, I wanted to start building things that needed a little more integration. I also wanted to design the components and programming around the actual controller I’d be using. So, I decided to start by building a small breadboard friendly ATTiny85.

Breadboard Friendly ATTiny85  – [Link]

ATtiny85 Tiny OLED Watch

An ATtiny85 and a 64×48 OLED display hand clock:

This is the third in my series of minimalist watches based on the ATtiny85. This version displays the time by drawing an analogue watch face on a miniature 64×48 OLED display. It uses a separate crystal-controlled low-power RTC chip to keep time to within a few seconds a month, and puts the processor and display to sleep when not showing the time to give a battery life of over a year.

ATtiny85 Tiny OLED Watch – [Link]

RELATED POSTS

Temperature Controlled Fan With LED Status

This is a simple fan controller with single LED temperature status light using an ATtiny85 microcontroller and DS18B20 temperature sensor. The fan is turned on/off based on temperature sensed and the controller goes in sleep mode when the temperature drop below a predefined threshold.

Simple ATtiny85 fan controller to turn a fan on/off based on temperature. Includes an LED as a temperature indicator. LED is dim at start of fan on temperature and blinks when above a max temperature. Fan is not PWM controlled since I am using a small 5V fan which is quiet running at 100%. The controller is in sleep state while the temperature is below the minimum threshold and wakes up every ~8 seconds to recheck the temperature. When temperature is above minimum threshold, the controller will stay awake checking every second till the temperature falls below the minimum threshold. The code uses ds18b20 library by Davide Gironi.

Temperature Controlled Fan With LED Status – [Link]

10 or 12-bit DAC from the ATtiny85

David Johnson-Davies @ technoblogy.com writes:

This article describes how to get up to two 10 or 12-bit digital-to-analogue outputs from an 8-bit Timer/Counter, such as in the ATtiny85. To test the routine I built a circuit which allows you to vary the brightness of two LEDs with two potentiometers:

10 or 12-bit DAC from the ATtiny85 – [Link]

Tinusaur, $3 ATtiny85 Microcontroller Board And Assembly Kit

Tinusaur is an Atmel ATtiny85 microcontroller board that comes in parts, as a kit, so you can solder it yourself and then program it. This small microcontroller board can run Arduino and its goal is to have a simple, cheap and quick-start platform for everyone interested in learning and creating things.

Tinusaur comes as an assembly kit, in parts, all in a small plastic bag, so you have to solder it yourself. In order to program this microcontroller board you will need a programmer like AVR ISP programmer, you can also use an Arduino to program the ATtiny microcontroller.

These are the components of Tinusaur standard kit:

  • PCB: Tinusaur PCB
  • MCU, Attiny85: Atmel AVR ATtiny85 microcontroller
  • Socket, DIP-8: DIP-8 socket for MCU
  • H1, Header: Header 2×4, Female
  • H2, Header: Header 2×5, Female
  • ISP, Header: Header 2×5, Male, for ISP
  • RESET, Button: Tactile push button, for RESET
  • Power, Header: Header 1×2, Male, for external power
  • Battery, Header: Header 1×2, Male, for battery power on/off
  • Battery, Jumper: Jumper, 2-pin, for battery power on/off
  • C1, Capacitor: Capacitor 100uF, Low profile 5×5 mm
  • C2, Capacitor: Capacitor 100nF, Small
  • R1, Resistor: Resistor 10K, Small, 1/8W
  • Battery holder: Battery holder for CR2032
  • Battery 3V: Battery 3V, CR2032

There is also the Tinusaur Starter – another kit that has everything included in the Tinusaur Board plus a USBasp programmer, plus few other useful things.

Tinusaur was launched 3 years ago and it is now used  in schools and universities to educate young people in both hardware and software. The team behind Tinusaur had launched an Indiegogo campaign to produce more of Tinusaur boards and bring the cost down to $3 per basic board and allow more people to be able to get them. A recent crowdfunding campaign was held by the team, it didn’t meet its goal plus it had the price multiplied by 3!

With just $3 you can get now the Lite edition of Tinusaur, the same components as the standard kit excluding the battery and its holder. You can get the Standard one for $4 and the Starter one for $6.

This Tinusaur is open source, both the hardware and the software, and you can check out the source files right here https://bitbucket.org/tinusaur. 3 days are left to end this crowdfunding campaign, so if you are interested in getting your own Tinusaur with that amazing price you should hurry up! More details can be found at the official product page, getting started page and tutorials.

Tiny LED Time Watch

tinytimewatch

David Johnson-Davies designed a minimalist ATtiny85-based watch using 12 LEDs, arranged like a clock face, to show the time in analogue-style. He writes:

To show the time you press the button on the watch face, and the time is then displayed for four seconds. It lights one LED to show the hour, and flashes another LED to show the minutes to the nearest five minutes, like the hour and minute hands on a clock. If only one LED lights up you know that both hands are pointing to the same hour mark.

Tiny LED Time Watch – [Link]

RELATED POSTS