Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsA camera on a stand is faster than a flatbed scanner for notebooks and books. The IMX378 is a 12 MP Sony sensor with a sharp fixed lens, supported by Raspberry Pi OS with the imx378 overlay. A Python script with Picamera2 waits for a button press, takes a full-resolution photo and saves it as page_001.jpg, page_002.jpg and so on.
Tick anything you already have and the total updates.
DFRobot IMX378 12MP camera for Raspberry Pi
Follow the colours: red is power, dark grey is ground, blue is a signal.
The Pi kit's USB-C supply.
doccam.pyfrom picamera2 import Picamera2
from gpiozero import Button
from signal import pause
import os
cam = Picamera2()
cam.configure(cam.create_still_configuration())
cam.start()
os.makedirs("pages", exist_ok=True)
n = len(os.listdir("pages"))
def snap():
global n
n += 1
name = f"pages/page_{n:03d}.jpg"
cam.capture_file(name)
print("saved", name)
Button(17).when_pressed = snap
print("Press the button for each page")
pause()
Check the overlay and the ribbon direction.
The camera is not square to the page; level the stand.
Move the lamps further to the sides.
Yes: img2pdf pages/*.jpg -o notes.pdf after installing img2pdf.
Install tesseract-ocr to turn the photos into searchable text.
It gives enough detail for small handwriting on an A4 page.
6 parts: DFRobot IMX378-79 12.3MP Camera Module for Raspberry Pi, Tactile Push Button Switch, Raspberry Pi 4 Model B 2GB RAM Single Board Computer, Official Raspberry Pi 32GB A2 Class Micro SD Card, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (doccam.py).
About ₹10,791 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Using Picamera2 from Python; Reading a GPIO button; Setting up a camera stand for flat pages.
Your first MicroPython project: temperature and humidity on an OLED.
A web page with ON and OFF buttons that switches a relay over Wi-Fi.
A warm ring light that fades up at dusk and down at dawn.
Turn a Pi and a touchscreen into a home command centre with a clock and to-do list.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.