Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mryndzionek/attiny85_samples
attiny85 sample apps and libraries
https://github.com/mryndzionek/attiny85_samples
annoying attiny attiny85 avr avr-gcc blink charlieplexing geiger-counter geiger-muller-device mq6-sensor
Last synced: about 1 month ago
JSON representation
attiny85 sample apps and libraries
- Host: GitHub
- URL: https://github.com/mryndzionek/attiny85_samples
- Owner: mryndzionek
- License: gpl-3.0
- Created: 2014-06-04T19:26:55.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T11:27:28.000Z (7 months ago)
- Last Synced: 2024-05-31T16:06:53.876Z (7 months ago)
- Topics: annoying, attiny, attiny85, avr, avr-gcc, blink, charlieplexing, geiger-counter, geiger-muller-device, mq6-sensor
- Language: C
- Homepage:
- Size: 11 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 whispersConnections 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](design/geiger.gif)
![geiger_photo](design/geiger_photo.png)
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](https://sourceforge.net/projects/veroroute/)).![geiger_block](design/geiger_block.png)
![geiger_pcb](design/geiger_pcb.png)
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](design/geiger.png)
### U8g2 SSD1306 i2c OLED display test
### U8g2 SSD1306 i2c OLED + DS3231 clock app
![oled_1](images/oled_1.png)
![oled_2](images/oled_2.png)
![oled_3](images/oled_3.png)
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: