MakerWorld
Electronics
Go to Model
DIY raspberry pi camera
34
Downloads
42
Likes
5
Makes
GitHub - penk/ruha.camera: 3D Printable Retro-style Raspberry Pi HQ Cameragot the idea from this but that screen does not work on my raspberry so I designed a body myself, see that site for electronics.I used this screen:5.5inch HDMI AMOLED - Waveshare Wiki The code that I used was this (still in progress) from picamera2 import Picamera2, Previewimport timefrom datetime import datetimefrom gpiozero import Buttonfrom signal import pause# Initialize Picamera2 and GPIO buttonpicam2 = Picamera2()button = Button(17)# Configure the cameracamera_config = picam2.create_still_configuration( main={"size": (1920, 1080)}, lores={"size": (640, 480)}, display="lores")picam2.configure(camera_config)def capture(): print("Starting preview...") picam2.start_preview(Preview.QTGL) time.sleep(1) # Give the preview time to initialize picam2.start() print("Waiting 2 seconds before capture...") time.sleep(2) # Delay to allow framing timestamp = datetime.now().isoformat(
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!