Safe Sunspot Imaging with the Raspberry Pi HQ Camera
Photograph sunspots day after day through a proper full-aperture solar filter and watch the Sun rotate.
Sunspots change daily and drift across the disk as the Sun rotates about once a month. With a certified white-light solar filter covering the entire front of the lens or telescope, the HQ Camera can record them safely.
Never look at the Sun through any optics, and never point an unfiltered camera, lens or telescope at it — it can blind you instantly and destroy the sensor. Use only a full-aperture solar filter made for this purpose, mounted on the front, never an eyepiece filter, sunglasses, smoked glass or stacked film. Supervise children at all times.
Mission steps
Fit the filter first
Attach a full-aperture solar filter securely to the FRONT of the lens or telescope before pointing anywhere near the Sun. Check it for scratches or pinholes every time.
Cover finders
Cap or remove any finder scope and aim using the shadow of the telescope or lens, never by looking through it.
Connect the camera
Attach the HQ Camera at prime focus or to a long lens and connect it to the Pi 5.
Capture
Use short exposures and low gain, take a burst of frames and keep the sharpest.
Build a series
Shoot at the same time each day and assemble the images into an animation of the rotating Sun.
Code
# burst of 20 short exposures (adjust --shutter in microseconds for your filter)
mkdir -p ~/sun/$(date +%F)
for i in $(seq -w 1 20); do
rpicam-still -n --immediate --shutter 2000 --gain 1 \
-o ~/sun/$(date +%F)/sun_$i.jpg
doneTip: test every script on the bench before installing it in a moving machine.
Questions
Can I see solar flares this way?
White-light filters show sunspots and faculae. Prominences and flares need a specialised hydrogen-alpha telescope.