SunSensor
YogPanjarale·SunSensor
About the SunSensor PCB
SunSensor is an open source AVR/Arduino PCB design by YogPanjarale, published on GitHub. It is a 2-layer board measuring 30 × 74 mm, with 57 components from 8 distinct parts.
Its main chip is the ATtiny85-20P, from the AVR/Arduino family. Other key parts include the ADS1115IDGS. By type, the board carries 17 diodes, 17 resistors, 16 inductors, 5 ICs and 2 connectors.
It belongs with the displays & leds and sensors designs in this gallery.
From the project
Low cost Sun Sensor Prototype
This is a low cost prototype for sun sensor using ldrs, 4x 16bit adc and attiny85 microcontroller, with a led matrix display for visualization. The pcb has been designed in KiCad. and as a module with i2c breakout, so that it can be used with other microcontrollers as well.
- common generic LDRs (Light Dependent Resistors) - 4x 16-bit ADC ADS1115 (Analog to Digital Converter) - ATTINY85 Microcontroller - 8x8 LED Matrix of WS2812B LEDs

Main components on the SunSensor
SunSensor bill of materials (BOM)
57 components, 8 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 4 | ADS1115IDGS | TSSOP-10_3x3mm_P0.5mm | U1, U2, U3, U4 |
| 1 | ATtiny85-20P | DIP-8_W7.62mm_IC_Socket | U5 |
| 1 | Conn_01x05_Socket | PinSocket_1x05_P2.54mm_Vertical | J1 |
| 1 | Conn_01x04_Pin | PinHeader_1x04_P2.54mm_Vertical | J2 |
| 16 | WS2812B | LED_WS2812B-2020_PLCC4_2.0x2.0mm | D1, D2, D3, D4, D5, D6, D7, D8 +8 |
| 1 | LED | LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D17 |
| 16 | LDR07 | R_LDR_5.1x4.3mm_P3.4mm_Vertical | L1, L2, L3, L4, L5, L6, L7, L8 +8 |
| 17 | R | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R3, R4, R5, R6, R7, R8 +9 |
SunSensor design files
The KiCad project lives in the YogPanjarale/SunSensor repository on GitHub; these links point at the commit this page was built from.
- LayoutSunSensor.kicad_pcb
- SchematicSunSensor.kicad_sch
SunSensor: common questions
What microcontroller does the SunSensor use?
The SunSensor is built around the ATtiny85-20P, from the AVR/Arduino family.
How big is the SunSensor PCB?
The SunSensor measures 30 × 74 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the SunSensor?
57 components, from 8 distinct parts. The full bill of materials is listed on this page.
Where can I download the SunSensor design files?
From the YogPanjarale/SunSensor repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the SunSensor design in my own project?
The repository has no license, so all rights stay with YogPanjarale. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the SunSensor without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.
Similar boards
AVR/Arduino
Magspoof
samyk
35 × 29 mm11 parts2LNo license4.2kAVR/Arduino
Redox keyboard
mattdibi
162.2 × 126.5 mm77 parts2LMIT2.0kAVR/Arduino
Labrador
espotek-org
36.8 × 34.7 mm75 parts2LNo license1.2kAVR/Arduino
ModuleV450
stuartpittaway
30 × 61.4 mm39 parts2LCC-BY-NC-4.01.1kAVR/Arduino
V4
stuartpittaway
30 × 50 mm38 parts2LCC-BY-NC-4.01.1kAVR/Arduino
Discipline
coseyfannitutti
304.9 × 122.8 mm170 parts2LCC-BY-NC-4.01.0k