# At mega module for raspberry pi 4
## Description
This is the Atmega328p hat/daughter board for rasbpberry pi 4b
## Project Details
- **Owner:** rohulhartman
- **Created:** 2/9/2025
- **Last Updated:** 2/9/2025
- **Visibility:** Public
## Key Components
### SW1 โ [Push Button](https://www.flux.ai/jharwinbarrozo/push-button~eqk.md)
- Part Type: Switch
- Manufacturer Name: OMRON
- Manufacturer Part Number: B3FS-1050P
- Datasheet URL: https://datasheet.lcsc.com/lcsc/1809271215_Omron-Electronics-B3FS-1050P_C231326.pdf
**Pins:**
- P1 [pin 1]
- P2 [pin 3]
### U1 โ [ATMEGA328P-PU](https://www.flux.ai/adrian95/atmega328p-pu~6cd.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Microcontroller
- Manufacturer Part Number: ATMEGA328P-PU
- Datasheet URL: https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061B.pdf
- Manufacturer Name: Microchip
**Pins:**
- ~RESET~/PC6 [pin 1]
- AREF [pin 21]
- AVCC [pin 20]
- GND [pin 8]
- GND [pin 22]
- PB0 [pin 14]
- PB1 [pin 15]
- PB2 [pin 16]
- PB3 [pin 17]
- PB4 [pin 18]
- PB5 [pin 19]
- PC0 [pin 23]
- PC1 [pin 24]
- PC2 [pin 25]
- PC3 [pin 26]
- PC4 [pin 27]
- PC5 [pin 28]
- PD0 [pin 2]
- PD1 [pin 3]
- PD2 [pin 4]
- PD3 [pin 5]
- PD4 [pin 6]
- PD5 [pin 11]
- PD6 [pin 12]
- PD7 [pin 13]
- VCC [pin 7]
- XTAL1/PB6 [pin 9]
- XTAL2/PB7 [pin 10]
### X1 โ [Crystal Oscillator](https://www.flux.ai/jharwinbarrozo/crystal-oscillator~i9.md)
- Frequency: 16MHz
- Part Type: Oscillator
- Manufacturer Name: Adafruit
**Pins:**
- P1
- P2
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/rohulhartman/at-mega-module-for-raspberry-pi-4~iy](https://www.flux.ai/rohulhartman/at-mega-module-for-raspberry-pi-4~iy).*
---
*Generated from [https://www.flux.ai/rohulhartman/at-mega-module-for-raspberry-pi-4~iy](https://www.flux.ai/rohulhartman/at-mega-module-for-raspberry-pi-4~iy)*