Tag Archives: diy

Raspberry Pi Camera Command List

Now that I got my Raspberry Pi’s Camera Module working, I’m sure I’ll need to keep a list of the software commands handy.  The following is the list of commands supported by v1.1 for the RaspiStill Camera App:

Use from a command line.  Usage: raspistill [options]

Image Parameter Commands

-?, –help : This help information
-w, –width : Set image width <size>
-h, –height : Set image height <size>
-q, –quality : Set jpeg quality <0 to 100>
-r, –raw : Add raw bayer data to jpeg metadata
-o, –output : Output filename <filename> (to write to stdout, use ‘-o -‘). If not specified, no file is saved
-v, –verbose : Output verbose information during run
-t, –timeout : Time (in ms) before takes picture and shuts down (if not specified, set to 5s)
-th, –thumb : Set thumbnail parameters (x:y:quality)
-d, –demo : Run a demo mode (cycle through range of camera options, no capture)
-e, –encoding : Encoding to use for output file (jpg, bmp, gif, png)
-x, –exif : EXIF tag to apply to captures (format as ‘key=value’)
-tl, –timelapse : Timelapse mode. Takes a picture every <t>ms

Preview Parameter Commands

-p, –preview : Preview window settings <‘x,y,w,h’>
-f, –fullscreen : Fullscreen preview mode
-op, –opacity : Preview window opacity (0-255)
-n, –nopreview : Do not display a preview window

Image Parameter Commands

-sh, –sharpness : Set image sharpness (-100 to 100)
-co, –contrast : Set image contrast (-100 to 100)
-br, –brightness : Set image brightness (0 to 100)
-sa, –saturation : Set image saturation (-100 to 100)
-ISO, –ISO : Set capture ISO
-vs, –vstab : Turn on video stablisation
-ev, –ev : Set EV compensation
-ex, –exposure : Set exposure mode (see Notes)
-awb, –awb : Set AWB mode (see Notes)
-ifx, –imxfx : Set image effect (see Notes)
-cfx, –colfx : Set colour effect (U:V)
-mm, –metering : Set metering mode (see Notes)
-rot, –rotation : Set image rotation (0-359)
-hf, –hflip : Set horizontal flip
-vf, –vflip : Set vertical flip

Exposure mode options :
off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks

AWB mode options :
off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon

Image Effect mode options :
none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,film,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoon

Metering Mode options :
average,spot,backlit,matrix

Tagged , , ,

What’s the best tool in our hackerspace workshop? A Dremel. Hands down.

Tales of Tools and a Panning Timelapse GoPro Timer.

So what is the best tool in TinkurLab’s workshop?  A Dremel!  Hands down!  Well, 1 minute quick drying epoxy is a close second, but let’s save that for another day.

It can cut.  I can grind.  It can drill.  It can route.  It can sand.  It can polish.  It’s pretty small.  You can get new bits cheap.

So how did we get to this epiphany?  I recently completed a small project to update my timelapse panning timer – affectionately named TinkurLapse.  TinkurLapse rotates my GoPro camera as it takes a photo every few seconds, creating a panning timelapse video.  My original timer was basically a $2 Ikea kitchen timer with a ¼”x20 screw glued to it to screw into the GoPro’s tripod mount.  BTW a standard camera tripod mount takes a – you guessed it – ¼”x20 screw.  Remember that for your next trivia night.  Anyway, in the spirit of most Tinkurlab projects, the goal was to get a minimally viable product out the door quickly to start really learning about it and to make improvements.  “Learning by doing” in other words.

TinkurLapse Panning Time-Lapse Camera Timer

And learn I did.  While the first version of TinkurLapse worked, it had a few issues.  First and foremost, having a tiny base, relatively high height, and very light weight resulted in an unbalanced base for the GoPro which easily fell over.  Many early experiments resulted in setting the camera up for a 60 minute timelapse only to return after an hour to find the camera lying sideways rotating the timer under its base.  Pretty uneventful video! The other issue was its size.  While it wasn’t huge, it wasn’t small either.  Given that most of my GoPro shooting occurs during travels and adventures like hiking, skiing, etc, it would be ideal to make the panning timer as small as possible.  While the first version of the panning timer worked, I didn’t use it very much.  It just wasn’t good enough for me.  I value it provided didn’t overcome the cost of using it.  My goal of creating awesome panning timelapse videos was blocked.

So one day while aimlessly wandering the Internet, I decided to search for a prebuilt device.  I know – it was a moment of weakness.  How un-DIY of me.  There are not very many panning timelapse devices on the market (at least not under less than a few $100s for professional use), but while browsing through the catalog of Photojojo, I came across the Camalapse.  However, aside from the $30 price tag, it has the same problem as the first version of TinkurLapse – not stable enough.  Camalapse is only 2 ounces, with a small base.  A featherweight.  However, it does support mounting to a tripod to provide a more stable base, so it has potential.

After knocking some sense into myself, I set out to research ways to improve the initial design.  I found a great video from a serious panning timelapser, who posted a great tutorial.  The tutorial suggested using the same Ikea kitchen timer I used in the first version of TinkurLapse – no problem, I bought 3x just for this reason.  The tutorial also had some other great ideas – remove the done bell as to not scare all people and wildlife in 1 mile radius, and mounting the timer to a Gorillapod tripod to provide a more stable base.  Perfect!

Enter the Dremel.  After some drilling, grinding, and gluing I had completed version two of TinkurLapse.  On to testing.  The initial test run resulted in rotation of about 90 degrees before stopping.  After some investigation, I determined that excess glue and some of the timer’s parts were obstructing the rotation of the GoPro mount.  What to do?  Dremel it!  After some precise grinding and sanding, I had trimmed down the responsible obstructions.  The next test passed without issue, even removing the annoying done bell at the end.

TinkurLapse v2 is ready for some more real world testing!  I’m looking forward to a few upcoming skiing trips to use the new TinkurLapse.  I’ll post some videos.  Until then, happy tinkering!

Example Timelapse Video 1

Example Timelapse Video 2

-Adam

 

Tagged , , , ,

BBQ Lab (v1.3) – Smoke Density

BBQ is about low, slow, and smoke. And while the temperature sensors in BBQ Lab have already take care of the low and slow part, none of the instrumentation really addresses the smoke part.  So the newest upgrade to BBQ Lab in v1.3 is the addition of a smoke sensor that measures the smoke in parts per million.  I’m not actually as concerned with the exact measurement of the smoke as I am within the ability to relatively measure it throughout the duration off a BBQ.

The sensor is relatively simple – a MQ-2 sensor that detects the presence of smoke in parts per million and outputs an analog voltage that corresponds to the measurement range of the sensor. A 0 voltage corresponds to the low range of the sensor and a 1023 voltage corresponds to the high range of the sensor. Everything else in between represents gradients between the ranges. I any case what matters to me is identifying a reading that corresponds what I consider “good smoke output” and displaying the measurements via the trending graphs and real time alerts so I can take action based on the information.
BBQ Lab Propane Sensor

MQ-2 Smoke Sensor

BBQ Lab Propane Sensor

Knob to Adjust Sensitivity

I also ordered a bunch of other gas sensors, including a MQ-6 sensor that detects the presence of propane gas, which I’m to use to detect when the smoker’s flame blows out – such as on windy days.  I’m also working on adding a automated propane control value that throttles the propane to achieve an ideal temperature – so the sensor can be used as part of a safety control system.
Hopefully I’ll be making a BBQed Brisket this week – so stay tuned for notes, pictures, and video.
-Adam
Tagged , , , ,