tag:blogger.com,1999:blog-19258590533790286922024-02-07T20:18:07.586-08:00Pi n chipsA record of my Raspberry Pi exploration. Mainly to remind myself what I did. Here's my list of Raspberry Pi things from <a href="http://astore.amazon.co.uk/pinchips-21"><u>Amazon</u></a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-1925859053379028692.post-53432495078635609952013-05-28T14:20:00.003-07:002013-05-28T14:20:49.871-07:00Raspberry-Pi For Dummies PDF Sampler<br />
<a href="http://www.scribd.com/doc/139261194/Raspberry-Pi-For-Dummies-PDF-Sampler" target="_blank">Raspberry-Pi-For-Dummies-PDF-Sampler</a> available as an online or downloadable PDF.<br />
<div>
<br /></div>
<div>
Full version available from amazon.</div>
<a href="http://www.amazon.co.uk/gp/product/1118554213/ref=as_li_ss_tl?ie=UTF8&camp=1634&creative=19450&creativeASIN=1118554213&linkCode=as2&tag=swingmeuk-21">Raspberry Pi For Dummies (For Dummies (Computers))</a><img alt="" border="0" height="1" src="http://www.assoc-amazon.co.uk/e/ir?t=swingmeuk-21&l=as2&o=2&a=1118554213" style="border: none !important; margin: 0px !important;" width="1" />
<br />
<div>
<br />
<br /></div>
BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-79772628330394154392013-05-28T14:13:00.001-07:002013-05-28T14:21:47.847-07:00Accelerated Desktop - Weston/WaylandInteresting post about an accelerated desktop. Confused about why it has two names. However a step in the right direction. Sounds like its still at the early adopter stage. Its not a fully accelerated desktop but looks like it farms out a lot of layout related stuff the the GPU. The video shows fancy fading in and out, I hope it will deliver better performance to a standard desktop scheme too.<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="http://www.youtube.com/embed/0UkUal_hHx8" width="560"></iframe>
See: <a href="http://fooishbar.org/tell-me-about/wayland-on-raspberry-pi/" target="_blank">wayland-on-raspberry-pi</a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-90218289370098020252013-05-28T14:04:00.000-07:002013-05-28T14:04:00.017-07:00PiCloner and PIWriter for Mac<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://sourceforge.net/p/piwriter//icon?2013-02-04%2018:49:17+00:00" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://sourceforge.net/p/piwriter//icon?2013-02-04%2018:49:17+00:00" /></a></div>
Using <a href="http://sourceforge.net/projects/picloner/" target="_blank">PICloner</a> and <a href="http://sourceforge.net/projects/piwriter/" target="_blank">PiWriter</a> on my Mac book air. Easier and less stressful than "dd". Now having some issues but I suspect the Mac Book is sleeping as it is taking too long. I have disabled the sleep when power connected. Lets see if this does the job.BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-47704594835784986072013-03-28T07:56:00.003-07:002013-03-28T07:56:26.001-07:00PiUi - Add a mobile phone UI to your Raspberry Pi project<center>
<iframe allowfullscreen="" frameborder="0" height="360" src="http://www.youtube.com/embed/2ay0vuW6aNY" width="640"></iframe></center>
Something else to add to my todo list. More info on <a href="http://www.raspberrypi.org/archives/3583" target="_blank">www.raspberrypi.org</a>.
Source code at <a href="https://github.com/dps/piui" target="_blank">https://github.com/dps/piui</a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-90590848502884151162013-03-15T16:02:00.000-07:002013-03-15T16:02:56.367-07:00Minor health check and disk repairsSo, you have removed power before shutting down. The disk could be a little confused. Use "fsck" to fix problems. However this should not be done when the disk is mounted. DO NOT TRY IT. However there is a way to check the FS on boot. There is no need to create a second system disk. Run the check by create a file "/forcefsck" and then reboot. This will cause a disk check to run on startup and minor problems will be repaired. To create the file you may need to use the command "sudo touch /forcefsck". Reboot using "sudo shutdown -r now". (this may have an alias but I only know the long hand version of reboot.) You should see an ASCII progress bar during boot and the file will be removed. If the progress bar is missing and the file still survives you have probably typed it wrong.BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-60191781765159058662013-01-07T15:27:00.000-08:002013-01-07T15:27:24.813-08:00Bigtrack one day it will be finished.<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8udqY7otFXOcxk9JwjTzTVZVDI-hAkH6i6bPF-A_4wcxAQf0UIQ4jl9SZU9uM5vLIxzJ83lMIQam14w-dWEMBqRA2_arbGaHhHQM5366WBXbCJdrGB8jaQ-hn33eXmLYuRkXJZt3BZwU/s1600/bt.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="383" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8udqY7otFXOcxk9JwjTzTVZVDI-hAkH6i6bPF-A_4wcxAQf0UIQ4jl9SZU9uM5vLIxzJ83lMIQam14w-dWEMBqRA2_arbGaHhHQM5366WBXbCJdrGB8jaQ-hn33eXmLYuRkXJZt3BZwU/s400/bt.jpg" width="400" /></a></div>
One day I will finnish this bigtrack project. The ultrasonic sensor is triggered from a 555 through a transistor to get the correct mark space ratio. The ultrasonic output is RC filtered and a then goes through a PCF8591 ADC to I2C. This means some loss of accuracy but I can read the distance asynchronously. I have also connected the battery supply via a 10v Zena to the ADC so that I get an accurate battery monitor. This is important as I do not want to discharge the 11.7v LiPo battery. (Will also add a LiPo battery alarm.) The GPS is a Garmin Geko 301 that connect to the serial port using very cheap max 232 level shifter powered of the Raspberry Pi's 3v3. The Geko has a compass (and barometer?). There are a couple of DC DC converters and voltage regulators. The PCF8591 is running of a supply that could also be used for the GPS. I have not yet connected the GPS supply so I am using the standard batteries. Hope to use some sort of web based interface for remote control. I have also used a PS3 webcam but the streaming is very delayed. I need to find a better streamer with less lag. BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-57073757840202515832012-10-16T03:22:00.000-07:002012-10-16T03:22:50.160-07:00More RAM, Raspberry Pis are shiped with 512MBsThere is a <a href="http://www.raspberrypi.org/archives/2180">report</a> that the latest rev 2.0 model B boards are now being shipped with 512MBs of RAM. It seams it was a surprise for some who orders have arived recently. It’s interesting there is an implication that the A board may not have the upgrade. It is possible that the economics of numbers has allowed the upgrade. Another possibility is obsolescence of the smaller devices. Would be interesting to see what the A has to offer. BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-40983229383071100222012-09-28T05:31:00.001-07:002012-09-28T05:31:44.292-07:003310 LCD and the Raspberry PiWHY?<br>
The LCD display is very crude. However it consumes very little power, is cheap to find. It is also well supported in the Hack/Maker comunity. A small display may be usefull for initial setup or status monitoring of mobile, battery driven projects. For example it could show IP address to allow WiFi connection or could display nuber of pictures taken on an automatic camera.
<p>
There are plenty of projects relating to the LCD display found on 3310s and other phones. I purchaced some PCB sockets to connect to the IO pins of the raspberry pi from <a href="http://www.ebay.co.uk/itm/26-Way-13-13-Double-Row-PCB-Socket-2-54mm-Pack-of-4-for-Raspberry-PI-Breakout-/120950719214?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item1c293982ee">EBay</a>.
<p>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjED0vd9wEplu6Qo2_81NVsPxUMr7Q5INEccj0hzlhGHfNOIBf80mWpGcIdS-M5FZCNke6LcMjb3lpLoBFbkUJ8tV0yOydWkZAZC_No-Fz97Xq8syBDRFoUUvftpvxUzACXwwDJqT_zx2o/s1600/%2524%2528KGrHqN%252C%2521jkE%252B6y-BrIrBQ%2521sdR%2529QEg%257E%257E60_12.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="240" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjED0vd9wEplu6Qo2_81NVsPxUMr7Q5INEccj0hzlhGHfNOIBf80mWpGcIdS-M5FZCNke6LcMjb3lpLoBFbkUJ8tV0yOydWkZAZC_No-Fz97Xq8syBDRFoUUvftpvxUzACXwwDJqT_zx2o/s320/%2524%2528KGrHqN%252C%2521jkE%252B6y-BrIrBQ%2521sdR%2529QEg%257E%257E60_12.jpg" /></a></div>
<p>
These can be placed on the IO pins. Wires can be easying soldered to the connector before they are connected. This is ugly, but ideal and cost effective for Raspberry Pi "projects".
<p>
To talk to the LCD display you need two GPIOs and some SPI. The LCD required an addition capacitor that I fitted and the connector end of the cable. The display will just about run from the 3.3 volt supply on the IO pins but I suspect this will be the only thing you can power from this supply.
<p>
I soldered directly onto the display, this was VERY fiddly. I used standard ribbon cable, others suggest using the FFC style (Flat Flexable Cable) that can be found oinside discarded electronics such as CD dirves.
<p>
I used the "<a href="https://projects.drogon.net/raspberry-pi/wiringpi/functions/">wiringPi</a>" project for my GPIO, SPI and timing. I used one of the many AVR based LCD drivers, (I will try and post more info).
<p>
To get the SPI driver to appear I needed to edit a system file to remove the SPI from a "blacklist". Google this for now, I will try and find the link and add it here.
<p>
GPIO and SPI appear to only work if you run as su. I created a su login using the <i>sudo passwd</i> command to make this easier.
<p>
CONCLUSION: So far I have demonstrated that with the LCD display can be driven from raspberry Pi with only the addition of the 4.7uF capasitor. The Rapberry Pi will power and control the display. The displayed results were not as expected. This is due to known issues in the way I have ported the code from AVR to Raspberry Pi. The project is still WIP. I will try and post updates and perhaps some code when I have it working better. BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com4tag:blogger.com,1999:blog-1925859053379028692.post-29517322557314879652012-09-18T05:03:00.001-07:002012-09-18T05:09:02.932-07:00What is ssh?<div>An intro for beginners from <a href=" http://www.youtube.com/user/RaspberryPiBeginners"> Raspberry Pi for beginners </a>
<centre>
<iframe width="560" height="315" src="http://www.youtube.com/embed/k-ao1ZktuzI" frameborder="0" allowfullscreen></iframe>
</centre></div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-32667470893678247882012-09-14T17:12:00.001-07:002012-09-15T06:27:30.416-07:00Raspberry Pi Web Server Apache2<div>With the latest Raspian updates, Apache2 installed seamlessly using <i>sudo apt-get install apache2</i> I had googled its installation but most of the advice in the walk throughs is not needed now. I hope to get some of the more advanced features, such as scripting and databases, working. This may require more installation. Out of the box apache dishes up the default HTML page without any configuration.</div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-7482071083068717022012-09-14T17:11:00.003-07:002012-09-15T06:26:30.851-07:00Raspberry Pi and the Chromium web browser<div>On an updated Raspian you can install Chromium web browser. This beautiful eye candy shows off web pages, such as the BBC web site, in their full glory. However the performance out of the box is very poor. I'm on the hunt for some information to improve the performance. Perhaps a later release or better settings. </div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-71415185935002329132012-09-13T02:36:00.001-07:002012-09-13T02:44:29.487-07:00Raspberry Pi and Lego super computer.<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpQSa7PVn2kgswiAbOc1KMX9q1h4RO4zWD_AnSI3_MjTb1sfekkoffyxI-cRYK1-CNwUlQQbDRz-_VeKtF64lug_Nq-lhanX3LDvB96nNCqpa-EO8Z6qlziMbzHBVgeGijVuZ5QDN8zt0/s1600/image002.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="183" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpQSa7PVn2kgswiAbOc1KMX9q1h4RO4zWD_AnSI3_MjTb1sfekkoffyxI-cRYK1-CNwUlQQbDRz-_VeKtF64lug_Nq-lhanX3LDvB96nNCqpa-EO8Z6qlziMbzHBVgeGijVuZ5QDN8zt0/s320/image002.jpg" /></a></div>
<div><p dir=ltr>Raspberry pi super computer... <a href="http://www.southampton.ac.uk/~sjc/raspberrypi/">http://www.southampton.ac.uk/~sjc/raspberrypi/</a></p>
</div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-2413821305111836562012-09-08T15:41:00.001-07:002012-09-29T03:14:14.887-07:00Raspberry Pi laptop.<div>Watch "Raspberry Pi Laptop with Atrix 4G Dock" on YouTube
<centre>
<iframe width="560" height="315" src="http://www.youtube.com/embed/yZkz_a52I6s" frameborder="0" allowfullscreen></iframe></centre><p>
<b>Update: 29th September 2012.</b><br>
I have acquired a lapdock from eBay. I'll hopefully create a new post about it. The cables I ordered have arrived today. </div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-76306936723587374112012-09-08T01:23:00.001-07:002012-09-17T10:01:39.773-07:00Play flash videos in Midori<div><p dir=ltr>This post describes a simple way to get flash video, such as YouTube, working in the midori browser. I must check this out. I think <u>raspbmc</u> has a YouTube plugin, but this is YouTube in a raspian browser.</p>
<p dir=ltr><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/">Raspberry PI ‘</a><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/">Raspian</a><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/">’ </a><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/">HOWTO</a><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/"> Play Flash in </a><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/">Midori</a><a href="http://compulsivetech.biz/lance/2012/09/raspberry-pi-raspian-howto-play-flash-in-midori/"> | Lance's Blog</a><br>
</p>
UPDATE: 17th September 2012
I tried this over the weekend. It is easy to do and seams to work. However the performance is poor. If your keen to see YouTube on your Pi I suggest tring <a href="http://xbian.org/">XBian </a>or <a href="http://www.raspbmc.com/">Raspbmc</a>.
</div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-78264715975226628862012-08-31T16:46:00.000-07:002012-08-31T16:46:31.773-07:00Eben talks about Raspberry Pi at PopTech
This video appeared on the <a href="http://www.raspberrypi.org">www.raspberrypi.org</a> blog. It explains a lot about the inspiration and history of the Raspberry Pi
<p>
<center>
<iframe src="http://player.vimeo.com/video/45447698?title=0&byline=0&portrait=0&color=3d96d2" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <p><a href="http://vimeo.com/45447698">Eben Upton: Raspberry Pi</a> from <a href="http://vimeo.com/poptech">PopTech</a> on <a href="http://vimeo.com">Vimeo</a>.
</center>
</p>
This is the original <a href="http://www.raspberrypi.org/archives/1898">Blog entry</a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-9856546783794436402012-08-31T02:47:00.001-07:002012-08-31T16:52:10.624-07:00Break out cable from AdafruitThis looks like an ideal breakout kit if you already have a bread board. Not tried it myself yet. Also available from Amazon in the UK.<p>
<center>
<a href="http://www.amazon.co.uk/gp/product/B0093K6QQ0/ref=as_li_ss_il?ie=UTF8&camp=1634&creative=19450&creativeASIN=B0093K6QQ0&linkCode=as2&tag=swingmeuk-21"><img border="0" src="http://ws.assoc-amazon.co.uk/widgets/q?_encoding=UTF8&ASIN=B0093K6QQ0&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=swingmeuk-21" ></a><img src="http://www.assoc-amazon.co.uk/e/ir?t=swingmeuk-21&l=as2&o=2&a=B0093K6QQ0" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<br>
<a href="http://www.amazon.co.uk/gp/product/B0093K6QQ0/ref=as_li_ss_tl?ie=UTF8&camp=1634&creative=19450&creativeASIN=B0093K6QQ0&linkCode=as2&tag=sdheaven-21">Adafruit Pi Cobbler Breakout Kit for Raspberry Pi</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=sdheaven-21&l=as2&o=2&a=B0093K6QQ0" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</center>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-64073939811273056202012-08-28T02:34:00.000-07:002012-08-29T08:35:53.161-07:00"CEC" support, control the RPi through your TV's remote.This article on <a href="http://www.raspberrypi.org/archives/1839">www.raspberrypi.org</a> has a good intro to CEC. This allows the TV to talk to the RPi via the HDMI cable. There is a video on <a href="http://www.youtube.com/watch?v=XPyOyJsnB1o&feature=player_embedded">youtube</a>.
<p>
<center><iframe width="420" height="315" src="http://www.youtube.com/embed/XPyOyJsnB1o" frameborder="0" allowfullscreen></iframe></center>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-68013714126406471142012-08-28T02:26:00.002-07:002012-08-28T02:35:13.620-07:00MPG2 and H264 encode.It looks like MPG2 decode is available for a fee on a per CPU basis. This should allow the RPi to deal with more movie file formats including those used on DVD. It looks like the H264 encode will be enabled in later firmware releases. There is an article on <a href="http://www.raspberrypi.org/archives/1839">www.raspberrypi.org</a> and the store is at <a href="http://www.raspberrypi.com/mpeg-2-license-key/">www.raspberrypi.com/mpeg-2-license-key/</a>
BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-50922874734923817602012-08-23T06:20:00.000-07:002012-08-24T06:25:16.331-07:00Canon 400D control, downloading, HDR and timelapseLooked at controling the Canon 400D with the RPi over USB. <i>gphoto2</i> seamed a good start, this was available through <i>apt-get</i> on the raspian distro I am using, information from <a href="http://www.gphoto.org/">www.gphoto.org</a>. Also looked a HDR and tone mapping, also managed to download <i>pfstools</i> through <i>apt-get</i> , information from <a href="http://pfstools.sourceforge.net/">pfstools.sourceforge.net</a>. Also looked at <i>enfuse</i> available through <i>apt-get</i> and information from <a href="http://enblend.sourceforge.net/">enblend.sourceforge.net</a> <p>
<i>gphoto2</i> was basically working. However I wanted to take continuous time lapse photographs. It appeard to struggle after 7 frames for some reason. I'm unsure if the camera's resources were running out or the RPi's. I will need to investigate. I was taking dual JPED and RAW images. I manages to "fuse" three JPEG images of different exposures into a single TIFF image. I'm not sure if it was a HDR (16 bit float?) image but the exposure was excelent across the hole image. I need to solve the 7 frame timelapse issue and find a RAW file reader. The workflow I am looking for is somthing like.
<p>
<i>gphoto2</i> => Canon RAW x3 (exposure bracketed)<br>
Canon RAW => ?pfsindcraw? => HDR x3 (exposure bracketed)<BR>
HDR x3 (exposure bracketed) => enfuse => HDR x1 (Many 8 stops + dinamic range)<BR>
HDR => pfstm => JPEG (Tone mapped)<p>
The idea is to use the RPi to do all this on the fly, hopfully as fast as the time lapse, so that the disk space requirments are very greatly reduced as the three RAW files are converted and deleted as more pictures are taken.
<hr>
<B>Part 2</B>
So I had some success with bits of the system. I looked at the <a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41&t=2276&hilit=usbreset">Photography Projects</a> thread on the raspberry.org site. I found I had to get the<a href="http://marc.info/?l=linux-usb&m=121459435621262&w=2"> small C file </a>as discussed on <a href="http://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line">a linux forum</a> and compile usbreset executable. This built using <i>cc usbreset.c -o usbreset</i> followed by a <i>chmod +x usbreset</i>. I then wrote a bash script that called <i>usbreset /dev/bus/usb/001/00x</i> between calls to <i>gphoto2</i>. I stole the bash script from the <a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41&t=2276&hilit=usbreset">Photography Projects</a> thread that automatically worked out where the camera was attached. I found the camera kept moving around when the camerea was swiched on and off but the script could find it reliably. <p>
The key to the discovery of the USB device is...<br>
<i>dev=`gphoto2 --auto-detect | grep usb | cut -b 36-42 | sed 's/,/\//'`<br>
resetusb /dev/bus/usb/${dev}</i><p>
I chose to call gphoto2 three times in the script to capture three images. I tried the single command line aproach shown in <a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41&t=2276&hilit=usbreset">Photography Projects</a> but I could not get it to work. <br>
I used <i>gphoto2</i> in <i>--shell</i> mode to discover the settings. Found for the canon 400D i needed to use<br>
<i>--set-config-index /main/capturesettings/exposurecompensation=0</i><br>
<i>--set-config-index /main/capturesettings/exposurecompensation=6</i><br>
<i>--set-config-index /main/capturesettings/exposurecompensation=12</i><br>
Other combinations of command line options did not seam to give reliable results. The thread discusses a Nikon and the use of <i>--set-config-value</i>, I could not get this to work as expected for me.<p>
I used the <i>--filename xyz.jpg</i> and <i>--force-overwrite</i> although I could not get it to work as I expected if the <i>--filename</i> appeared more than one. Therefore used seperate command lines for each photo aquired.
<p>
<i>enfuse</i> worked very well. With three small JPG images at three exposures they were combined into a single JPG with superior exposure. However I ran out of memory or TMP scratch space when I tried to produce a HDR image, eg floating point or 32 bit. Having reread the <a href="http://enblend.sourceforge.net/enfuse.doc/enfuse_4.0.0.pdf">manual</a> it looks like I may be able to set the scratch directory using TMPDIR enviroment variable and also set the cache size and buffer size. There is a table in the <a href="http://enblend.sourceforge.net/enfuse.doc/enfuse_4.0.0.pdf">manual</a> that is for systems with a lot more memory. I will try a setting in the same perportions scaled to RPi available memory. Note the available memeory will depend on how you have ivided up available memory between CPU and graphics. Raeding the manual it looks like enfuse does a weighted blens so it will reduce noise if given many pictures. <i>enfuse</i> did not do any tone mapping so the output was a suprior exposure but still natural. I played with the <i>pfstools</i> but I think because enfuse generated a LDR JPEG image the results were not very spectacular. The picture were quite ordinary. I need to retry this process and I think I can make improvments. <p>
Raw images were too large to handle and I cause errors. I will stick with small JPG files for now. I may need to revisit RAW images. I think the lack of SD card space may be adding to the problems.<p>
I will try the following workflow.<br>
<i>(gphoto => small jpg ) x 3</i><br>
<i>(x.jpg x 3) => enfuse => HDR_file.??? x 1 (Format not yet known)</i><br>
<i>HDR_file.??? => pfsin => pfstmo => frame.jpg.</i><br>
BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com2tag:blogger.com,1999:blog-1925859053379028692.post-91403862732583047982012-08-22T09:20:00.000-07:002012-08-22T09:20:57.807-07:00Dave Hunt’s DSLR hackThis looks an interesting project...<br>
<a href="http://davidhunt.ie/?p=2641">Dave Hunt’s DSLR hack</a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-21943330354518477182012-08-05T15:51:00.000-07:002012-08-05T16:12:42.257-07:00poundWorld - bluetooth, USB power and HDMI<i>If I had a pound every time I bought something from a pound shop I would have, well, nothing?</i>
<br />
<br />
At <a href="http://poundworld.net/">poundworld</a> I bought bluetooth adapters. Not tried these yet, the one I used on RPi was on old one.
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheStqcTHvJlyNxqljZMiRqJ1Pam4-QV7fpQip99QodxICbvdGyNYXhhc4UsdwyogHBuGzZLQHcBDvvygax-VzqiIqfynuV2cXHjAh6ZoRiumyPvZZ8MIijqpK4WWYqbYzIqiDBYHfwIVU/s1600/Poundworld-1M-Blackberry-Cable.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="225" width="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheStqcTHvJlyNxqljZMiRqJ1Pam4-QV7fpQip99QodxICbvdGyNYXhhc4UsdwyogHBuGzZLQHcBDvvygax-VzqiIqfynuV2cXHjAh6ZoRiumyPvZZ8MIijqpK4WWYqbYzIqiDBYHfwIVU/s320/Poundworld-1M-Blackberry-Cable.jpg" /></a></div>
Also bought some "Blackberry" usb charger cables that, in theory, would power a RPi, ok, I've not needed them so far ether, so I don't know how good they are, but you can never have too many USB cables, right?
<br />
<h2>
HDMI</h2>
PoundWorld also had some HDMI cables, perhaps a little short. I did not get them as I have a few I bought from <a href="http://www.poundland.co.uk/">poundLand</a>. The ones from poundland work fine.
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ7BfkPjIwfVFzUk8P2LedsSZ5KDX0dkKlqgbShjJWOj4xbHzclLOOeRYFUfYkuM_UykaLB_FYNqHUk2RRLDpkvX6NczfjkeP7ElqVsMHzG6JmeAJlDjTzZz4gTSTcrzAKiR793qSWdnM/s1600/hdmi-cable.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="320" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ7BfkPjIwfVFzUk8P2LedsSZ5KDX0dkKlqgbShjJWOj4xbHzclLOOeRYFUfYkuM_UykaLB_FYNqHUk2RRLDpkvX6NczfjkeP7ElqVsMHzG6JmeAJlDjTzZz4gTSTcrzAKiR793qSWdnM/s320/hdmi-cable.jpg" /></a></div>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-47090953653720168302012-08-05T15:37:00.002-07:002012-08-05T17:12:42.277-07:00xbian.org - xbmc for Raspberry Pi<a href="http://xbian.org">xbian.org</a> looks interesting. Its a xbmc targeted image based on the faster raspian distro of debian. Not given it a spin yet. Looks like an alternative to <a href="http://www.raspbmc.com">raspbmc</a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com1tag:blogger.com,1999:blog-1925859053379028692.post-66761087360786049412012-08-05T15:34:00.001-07:002012-08-05T16:59:38.623-07:00Bluedevil, bluetooth and PS3 mini keyboardSo, I gave in in the end and installed bluedevil. (sumut like <i>sudo apt-get install bluedevil</i>) It was 200MBs of valuable SD card space but it did the job.
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg6uaEaqPgsrc2cKELAp7E6mQ0iwrt3Uuy5_i1p7FYGmELSqrRZf57nM10-JWLnGVG_VMOpsyOBhSzT3a99QUdHlpp-14DB0lCi6RsLusTj6L9AVGRUZ4y3VYXW_jnVRbJGQ2we8GffQQ/s1600/ps3-keyboard.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="320" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg6uaEaqPgsrc2cKELAp7E6mQ0iwrt3Uuy5_i1p7FYGmELSqrRZf57nM10-JWLnGVG_VMOpsyOBhSzT3a99QUdHlpp-14DB0lCi6RsLusTj6L9AVGRUZ4y3VYXW_jnVRbJGQ2we8GffQQ/s320/ps3-keyboard.jpg" /></a></div>
I downloaded the instruction manual for my Sony PS3 mini keyboard. The device did allows for pairing with devices other than a PS3. I paired it with an iPad for practice. So I then tried with the RPi using bluedevil and it worked!. The keypad has a built in mouse too, its a little strange to use but kind of works. Was a little too fast. To make the keyboard go into pairing mode you have to hold the blue button and turn it on. Keep holding the button until two lights on the keyboard flash alternately. (as in the instructions)Then in bluedevil I set up a manual key 1234 and tried to pair with the keyboard. When it tries to pair type the key into the PS3 keyboard and press return. On the keyboard press the finder button to enter mouse mode and then move you fingers over the keys like a track pad. The left and right cursor buttons act as mouse buttons in this mode. I would not recommend it as a major keyboard but it may be useful for administering a system where its not convenient to have a full size keyboard. Also if you use bluetooth for some other peripherals you can attach a simple keyboard without using up an additional USB port.BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-83269269244894957152012-08-01T05:22:00.003-07:002012-08-01T05:22:55.704-07:00The BluezTo start looking at bluetooth I installed <i>sudo apt-get install bluez</i> This work with a cheap butooth dongle I had. I did not work out which chip set it was. I could see my iPone on the Raspberry Pi and the Raspberry Pi on my iPhone. Did not do much more than this. I did everything using the command line. There is some good reference on <a href="http://wiki.debian.org/BluetoothUser">http://wiki.debian.org/BluetoothUser</a>. However most GUI installs seamed very large so ended up NOT installing <i>blootooth</i> or <i>bluedevil</i> I just installed <i>bluez</i>. To check what will install, apt-get has a simulation mode using <i>-s</i>. It does not tell you the size of files but it lets you know if stuff exists and you get some idea of how much it depends on. eq <i>sudo apt-get install bluez -s</i>. Note that I have not actually paired anything yet. I will keep you posted.BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0tag:blogger.com,1999:blog-1925859053379028692.post-88379377389616547092012-07-24T07:29:00.001-07:002012-08-05T16:18:09.588-07:00Blue toothNot tried blue tooth yet. I have several bluetooth thingies to try. This blog looks useful reference. <a href="http://raspberrypipod.blogspot.co.uk/2012/07/bluetooth-on-pi.html">http://raspberrypipod.blogspot.co.uk/2012/07/bluetooth-on-pi.html</a>BillyBag2http://www.blogger.com/profile/12545181745545695435noreply@blogger.com0