{"id":23536657,"url":"https://github.com/rddevitte/simplest-avr-projects","last_synced_at":"2026-05-01T04:38:54.729Z","repository":{"id":172530155,"uuid":"586673331","full_name":"rddevitte/simplest-avr-projects","owner":"rddevitte","description":"ATmega and ATtiny starter projects, as simple as they can be","archived":false,"fork":false,"pushed_at":"2023-01-28T20:50:32.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T23:08:31.577Z","etag":null,"topics":["arduino","atmega328p","atmel","attiny85","avr","avr-libc","microcontroller"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rddevitte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-08T23:38:48.000Z","updated_at":"2023-01-28T20:50:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a5a42fc-0466-4abf-afa2-1b69e5524a2b","html_url":"https://github.com/rddevitte/simplest-avr-projects","commit_stats":null,"previous_names":["rddevitte/simplest-avr-projects"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rddevitte/simplest-avr-projects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rddevitte%2Fsimplest-avr-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rddevitte%2Fsimplest-avr-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rddevitte%2Fsimplest-avr-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rddevitte%2Fsimplest-avr-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rddevitte","download_url":"https://codeload.github.com/rddevitte/simplest-avr-projects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rddevitte%2Fsimplest-avr-projects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32485297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","atmega328p","atmel","attiny85","avr","avr-libc","microcontroller"],"created_at":"2024-12-26T02:29:52.877Z","updated_at":"2026-05-01T04:38:54.723Z","avatar_url":"https://github.com/rddevitte.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simplest AVR projects\n\nThose projects aim to (at least they try to) be the smallest and simplest ones possible for the\nMicrochip's (formerly Atmel) [ATmega328P](https://www.microchip.com/en-us/product/ATmega328P)\nand [ATtiny85](https://www.microchip.com/en-us/product/ATtiny85) microcontrollers, both pretty\npopular among the hobbyist community. They can be freely used as a basis for bigger, more\nelaborated, projects.\n\nThe projects are intended to be built on a GNU/Linux environment; [see below](#environment). To\nbuild on Windows, a tool such as [MinGW-w64](https://www.mingw-w64.org/), [MSYS2](https://www.msys2.org/)\nor [Cygwin](http://cygwin.com/) is required.\n\n## Content\n\nThis repo is comprised of two projects, one for ATmega328P and the other for ATtiny85, each one in\nseparated directories. Each project dir. contains:\n\n - A single C source file (`main.c`). What it does is just disable ADC and other units for power\n   saving, blink a LED connected to a pin for 3 times and then power the uC down.\n\n - A GNU makefile. Running `make` or `make all` will only compile the source and generate a `.hex`\n   file; to burn down the `.hex` onto the microcontroller, `make install` must be issued.\n\n## Environment\n\nThe softwares used to compile the codes, \"extract\" from the binary ELF the HEX file and write them\nonto the ICs were, respectively:\n\n - `avr-gcc` (GCC) 5.4.0\n - GNU `avr-objcopy` (GNU Binutils) 2.26.20160125\n - `avrdude` version 6.3-20171130\n - OS: Ubuntu 22.04.1 LTS x86-64 GNU/Linux\n\n## Targets\n\n### ATmega328P\n\nThe first target is a custom, homebrew board with an ATmega328P running by its internal clock source\nat 8MHz. The following is a picture of the board used to test this project, connected to a LED.\n\n![The homemade ATmega328P board](https://raw.githubusercontent.com/rddevitte/simplest-atmega-project/master/img/img1.jpg)\n\nIts bootloader is the [MiniCore one by MCUdude](https://github.com/MCUdude/MiniCore).\n\nTo program the chip it was used a FTDI serial-to-USB breakout module. Below is a picture of the\nboard being programmed.\n\n![The chip being programmed by a FTDI module](https://raw.githubusercontent.com/rddevitte/simplest-atmega-project/master/img/img2.jpg)\n\n### ATtiny85\n\nThe second target is an ATtiny85 running at 8MHz in a breadboard. It has no bootloader.\n\nTo program the chip it was made a custom shield board to connect to an Arduino, which in its turn\nacts as an AVRISP programmer. Below is a picture of the ATtiny chip being programmed.\n\n![The chip connectd to a homemade shield being programmed by an Arduino](https://raw.githubusercontent.com/rddevitte/simplest-atmega-project/master/img/img3.jpg)\n\nThe following shows the microcontroller already programmed and running in a breadboard sketch.\n\n![The chip running in a breadboard](https://raw.githubusercontent.com/rddevitte/simplest-atmega-project/master/img/img4.jpg)\n\n## References / Credits\n\nThose projects were mostly inspired by [Mitch Davis' YT playlist on Fundamentals of Microcontrollers](https://www.youtube.com/playlist?list=PLNyfXcjhOAwOF-7S-ZoW2wuQ6Y-4hfjMR).\n\nThe low power stuff was based off of [Nick Gammon's material on Power saving techniques for microprocessors](https://www.gammon.com.au/power).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frddevitte%2Fsimplest-avr-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frddevitte%2Fsimplest-avr-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frddevitte%2Fsimplest-avr-projects/lists"}