| Electronics > Projects, Designs, and Technical Stuff |
| Quick and simple oscilloscope camera |
| (1/3) > >> |
| c4757p:
Just thought I'd share this. I'm going to need to produce lots of decent-looking oscilloscope captures soon, and I want to use my analog scope for that. I quickly threw together this oscilloscope camera adapter, compatible with the mounting slot on the top of the Tek 2445A display and with my phone (only camera I have). Yes, I really did make it from Popsicle sticks, hot glue and thick paper. ;D Once I have a photograph, I manually rotate it if necessary, then run this script to produce the final output (requires ImageMagick): --- Code: ---#!/bin/bash # Produce the first color-adjusted copy convert ${1} -brightness-contrast 0x40 ${1%.jpg}-color.jpg # Get image size for cropping width=$(convert ${1} -format "%w" info:) height=$(convert ${1} -format "%h" info:) # Crop to 70% crop_w=$((7 * $width / 10)) crop_h=$((7 * $height / 10)) crop_x=$(( ($width - $crop_w) / 2 )) crop_y=$(( ($height - $crop_h) / 2 )) mogrify -crop ${crop_w}x${crop_h}+${crop_x}+${crop_y} ${1%.jpg}-color.jpg # Autocrop more mogrify -fuzz 30% -trim ${1%.jpg}-color.jpg # Fit to standard size mogrify -background black -resize 640x512\! ${1%.jpg}-color.jpg # Greyscale output for print convert ${1%.jpg}-color.jpg -colorspace Gray -negate ${1%.jpg}-grey.jpg mogrify -level 25%,100% ${1%.jpg}-grey.jpg --- End code --- |
| elgonzo:
Interesting... how do you trigger the camera in the phone? Or do you just let the camera shoot an image series for an amount of time? And i hope you enjoyed the Popsicles... :) |
| Fraser:
Love your ingenuity :) Well done :-+ |
| c4757p:
I just push the button. This isn't for single shot captures - I have a DSO for that, it's just a massive pain in the ass to get a screenshot out of. It's just for producing documentation-quality images. Sadly, the Popsicle sticks never had any Popsicles attached. :( They're from a craft store. If only there were a way to get an extended-length photo capture from an Android phone - is this possible? Because if I seal it up a bit more so it's very, very dark, this scope does have a single-shot mode specifically designed for cameras. Maybe I'll see if I can find a cheapo digital camera somewhere. |
| SeanB:
That is a very nice idea. If I want to photograph a scope screen I will use this and a fixed focus old camera ( or a cheap 3Mp webcam) to do it. |
| Navigation |
| Message Index |
| Next page |