Giter VIP home page Giter VIP logo

attiny85_samples's Introduction

attiny85 sample apps and libraries

Introduction

ATtiny85 MCU - some tests and example apps + I2C and LCD libraries

Low power LED blink (lp_blink.c)

LED blink firmware putting the MCU into power-down state between the LED changes.

Charlie (charlie.c)

A simple demonstration of PWM LED charlieplexing.

I2C LCD display demonstration (main.c)

MQ6 readout and a progress bar on a LCD.

MQ6 gas sensor demonstration (mq_6.c)

MQ6 readout and a progress bar on a LCD.

Annoyatron

A simple circuit making different noises at random intervals when left in the dark. The sounds/noises are:

  • snd/snd_cricket.c - cricket chirp
  • snd/snd_droplet.c - leaking faucet
  • snd/snd_insect.c - buzzing insect
  • snd/snd_scifi.c - sci-fi/robot sounds
  • snd/snd_water.cย - running water
  • snd/snd_whisper.c - scary whispers

Connections are simple:

  • PB1/PB4 - piezo buzzer
  • PB2 - LDR (light-dependent resistor) to VCC and a 10k resistor to GND

Simple Geiger Counter firmware (geiger.c)

geiger_gif

geiger_photo

Simple Geiger Counter based on ATtinyx5 MCU. This is more of a Geiger alarm. Tracks the radiation dose internally, but only signals two alarm levels on a two-color LED and produces sound clicks if the alarm level is breached. It's also designed to be very low-power (battery life test ongoing). No schematic yet, but here is a block diagram and a veroboard-style PCB (made with VeroRoute).

geiger_block

geiger_pcb

The BJT transistor can also be MPSA42. The buzzer MOSFET should preferably logic level.

The firmware is designed as a simple and lightweight cooperative scheduler maintaining in every state the lowest power level possible:

geiger

U8g2 SSD1306 i2c OLED display test

U8g2 SSD1306 i2c OLED + DS3231 clock app

oled_1

oled_2

oled_3

Configuring

cmake -DCMAKE_BUILD_TYPE=Release -DAVR_MCU=attiny85 \
      -DAVR_PROGRAMMER=avrisp -DAVR_PROGRAMMER_PORT=/dev/ttyACM0 \
      -DMCU_FREQ=8000000 -DCMAKE_TOOLCHAIN_FILE=../toolchain-avr-gcc.make ..

make -j

Contact

If you have questions, contact Mariusz Ryndzionek at:

[email protected]

attiny85_samples's People

Contributors

mryndzionek avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.