No Comments

Fixing HifiBerry and Raspberry Pi sound after update

June 19th, 2020

I updated my Raspberry Pi 4 which I use for playing music with the great, free and open source MPD server.

After reboot it stopped playing music. ;(

The cause was this update in May/June 2020, due to a change in audio configuration. MPD was still working but the sound was now not routed through the HifiBerry soundcard, but through the audio/headphones, simply because a new HW card was defined: headphones/analog audio out.

The solution was easy.

aplay -l shows the Hifiberry the third card instead of the second, the new headphones was now the second.

 $ aplay -l
**** List of PLAYBACK Hardware Devices **** 
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1] 
Subdevices: 4/4 
Subdevice #0: subdevice #0 
Subdevice #1: subdevice #1 
Subdevice #2: subdevice #2 
Subdevice #3: subdevice #3 
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones] 
Subdevices: 4/4 
Subdevice #0: subdevice #0 
Subdevice #1: subdevice #1 
Subdevice #2: subdevice #2 
Subdevice #3: subdevice #3 
card 2: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
Subdevices: 0/1 
Subdevice #0: subdevice #0

All I had to do is to edit /etc/asound.conf and increase 1 to 2:

pcm.!default {
type hw card 2
}
ctl.!default {
type hw card 2
}

Restart MPD and everything was working like before. 😉

sudo systemctl restart mpd

 

No Comments

Filter thread sizes Raspberry Pi 6mm and 16mm lenses

June 7th, 2020

The filter thread size for the Raspberry Pi 6mm CS mount lens is 27mm.

Raspberry Pi 6mm lens with step-up-ring

The filter thread size for the Raspberry Pi 16mm C mount lens is 37mm.

Raspberry Pi 16mm lens with step-up-ring

You can use  these lenses as macro lens by to reverse mounting them on the Raspberry Pi HQ camera.  That works surprisingly good. See my earlier posts.

In short: you need a reverse macro ring adapter and some step up rings. I use a Pentax K-mount adapter and ring, because I have some classic Pentax glass, that can be also used with the Raspberry Pi HQ camera.

 

No Comments

Macro Photography with the Raspberry Pi HQ camera and reverse mounted lens III

{}
June 6th, 2020

Another try with some extra lighting, and post-processing with Darktable. See my earlier posts about photographing with the Raspberry Pi HQ Camera: part I and part II.

This time I used a special build of raspistill that offers a Field of Merit function to assist focusing. The Raspberry Pi Forum is full of helpful people and is very informative.

Fruit-fly taken with a Raspberry Pi HQ Camera and a reverse mounted Pentax 35mm lens

Fruitflies are the really minuscule flies that hang around you garbage bin, or home plants in the windowsill.

Not sure what the yellow blob is, maybe I caught the fly eating a piece of banana.

 

No Comments

Install Firefox Android on Android AOSP

{}
June 6th, 2020

A small update on an older post Install Android browsers without Google Play because the download link on Mozilla’s pages has changed.

https://download.mozilla.org/?product=fennec-latest&os=android&lang=multi (direct download)

Also F-droid is highly recommended for free and open-source software.

F-Droid is a community-maintained software repository for Android, similar to the Google Play store. The main repository, hosted by the project, contains only free/libre apps. Applications can be browsed, downloaded and installed from the F-Droid website or client app without the need to register for an account. “Anti-Features” such as advertising, user tracking, or dependence on nonfree software are flagged in app descriptions.

https://en.wikipedia.org/wiki/F-Droid

And of course there are releases on the development site:
https://github.com/mozilla-mobile/fenix/releases

 

2 Comments

Macro Photography with the Raspberry Pi HQ camera and reversing the lens II

June 4th, 2020

In a first post about Macro photography with the Raspberry Pi HQ camera I showed some pictures made with the reverse mounted lens technique and the new Raspberry Pi HQ camera.

But you might wonder what the exact setup was. So I show and describe it here. Yes, the 16mm lens is used upside down, or the wrong way. 😉

As I explained earlier. Normally you catch a big world in a small photo, and by reversing the lens you’ll get the opposite. You can make a small world big.

Exactly what you want for macro-photography.

 

Macro photography setup with the Raspberry Pi HQ camera and a reversed 16mm lens

Read the rest of this entry »

No Comments

Firefox Bug with clip-path

{}
June 4th, 2020

Firefox has a rather silly bug with overlapping clip-path. Instead of hiding content it start showing content with overlapping clip-path.

In short:

.clip {
clip-path: inset(400px);
}

on a 600px image should not show any content. In Firefox it does.

You can see the problem here.