atmega328p-nano
Skill by alexex1993
Guides firmware development for the Arduino Nano (ATmega328P, 16 MHz, 5 V) and its clones. It covers PlatformIO setup, pin mapping, memory and timer conflicts, uploads and ICSP recovery.
Install atmega328p-nano
Built from the published package, never by AI.
git clone --depth 1 https://github.com/alexex1993/mcu-skills /tmp/mcu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/mcu-skills/skills/avr/atmega328p-nano ~/.claude/skills/atmega328p-nanoRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/alexex1993/mcu-skills /tmp/mcu-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mcu-skills/skills/avr/atmega328p-nano ~/.gemini/antigravity-cli/skills/atmega328p-nanoAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant board-specific knowledge for the Arduino Nano A000005 and ATmega328P Nano clones with FTDI or CH340 USB chips. It includes a board reference with a corrected pin map, power tree, memory map, and a symptom-to-fix table. It also provides copy-paste code recipes for platformio.ini, timing, EEPROM, ADC, interrupts, PWM, Servo vs tone, and sleep modes.
The skill ships a project template that builds clean in full and minimal variants, plus a scaffold script. It is aimed at developers working on this board who hit silent failures such as upload errors, SRAM exhaustion, timer conflicts, or power problems. The source says it should be read before guessing at board behavior.
Written from the project's SKILL.md and checked against it.
What it can do
- Project scaffoldingCreates a new PlatformIO project from the template in minimal or full variant.
- Pin mappingGives a corrected physical pin map for the Nano, with notes on A6/A7 and D0/D1.
- SRAM budgetingExplains the 2 KB SRAM limit and how to check free RAM and use PROGMEM.
- Timer conflict checksMaps Timer0, Timer1 and Timer2 to millis, Servo, tone and PWM pins.
- Upload troubleshootingCovers old vs new bootloader baud rates, COM port and CH340 driver issues.
- ICSP recoveryDescribes recovering the board with an ICSP programmer and restoring the bootloader and fuses.
- Power guidanceExplains VIN, the +5V pin, 3V3 current limit and USB plus VIN back-feeding.
- Symptom debuggingOffers a symptom to cause to fix table for common silent board failures.
What you need
- PlatformIO 6.1
- atmelavr platform 5.3.0
- Arduino Nano or ATmega328P clone board
- WCH CH340 driver for CH340 clones
- ICSP programmer for bootloader recovery
Try asking
- Scaffold a minimal Blink project for my Nano using this skill's template.
- My Nano sketch fails with stk500_recv errors. Which bootloader setting should I use?
- Check whether my Servo and tone usage conflicts with the Nano's PWM pins.
Good to know
- Features marked compile-checked only were compiled but not run on hardware by the author.
- Hardware verification covers the Blink on an Arduino Nano A000005 v3.x with Optiboot.
- The sources give inconsistent VIN ranges, so the skill recommends 7 to 12 V.
- Serial uses D0 and D1, which are shared with the USB-serial chip.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/avr/atmega328p-nano/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to atmega328p-nano
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
atmega328p-nano: common questions
Which bootloader and upload speed should I use for an older Nano clone?
Boards sold before January 2018 and most clones usually run the old ATmegaBOOT at 57600 baud. Using the wrong setting causes upload failures such as not in sync.
Why does my Nano sketch compile but behave strangely?
The source says the 2 KB SRAM is the real limit, and overflows can corrupt variables without an error. Timer0 use and PWM library conflicts can also cause silent failures.
Can I recover a Nano if a bad sketch bricks it?
The source says the 6-pin ICSP header allows recovery by bypassing the bootloader, so bad firmware does not permanently brick the board.
How do I install atmega328p-nano?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is atmega328p-nano free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is atmega328p-nano safe to use?
It scores 48 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to atmega328p-nano?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
