mailto: blog -at- heyrick -dot- eu

No audio

So it seems like running the script to install drivers for the E200H was the wrong thing to do, as not only was it referring to an ancient kernel (5.2) but also Linux Mint has moved from Pulse Audio to PipeWire.
Yes, of course, I knew that...

It wasn't wrong as in catastrohpic - obviously the system was smart enough to ignore the old kernel. Pulse Audio appears to have been installed but it is dormant and cannot start as PipeWire has already laid claim to the relevant hardware. Whatever, still no sound from the speakers.
The annoying thing is that, using the LiveCD, it did briefly work. So there's likely just a mismatch between the here and the there but I'm not clued enough to figure out what.

That being said, it does seem as if getting sound working correctly is something of an issue with Linux in general. Who'd have thought that accelerated H.265 to a custom screen, no problem. Playing a 'bong' when something goes wrong, huge problem. <shrug>

 

ESP32-Cam enhancements

With a newer IDE, there are more things to play with. For instance, the default CameraWebServer has thrown away that daft "face recognition" that did not work on most ESP32 chips (due to the processing overhead, it needed at least the better S2 variant, and most ESP32-Cam boards aren't this), and instead now has a control for fiddling with the flash LED.

So, once again, time to fiddle with the source code to improve the firmware.

  • The very first thing to do was to convert the web page sent to the client from a byte array representing the web page in gzip form into plain HTML. Sure, this takes more space in Flash and is slower to send, but on the other hand it does allow for easy modification of the HTML.
  • The next thing, something that definitely rankled, was having to scroll down to activate the "Get still" button, then back up to see the picture, then down, then up, then...
    So now the two buttons (still and stream) are at the top just under the settings toggle, and more precisely they are outside the settings so that, once set up, can be toggled away completely.
    Revised ESP32-Cam web page.
    How it can be made now.
  • When the image is shown in the window, it is resized to fit. Unfortunately clicking the friendly Save button only saves a partial image, that being what would have fit into the resized area. It has now been fixed to save the entire image; though it does this by drawing into a canvas so the image being saved is not the image the camera sent - probably better to just right-click and save?
  • Now uses the on-board notification LED - only on the AI-Thinker and clones, it would need to be added to the pin definitions for the other boards. This is on while booting, flashing during WiFi connect, then off unless data is being transferred, in which case it'll blink (on during acquisition and send).
  • Fixed HTML/script bug where using the image Save button would save only a piece of the image that's the same size as the on-screen image. One needs to use naturalWidth and not width (ditto height).
  • Fixed HTML/script bug where it was trying to turn off the face detection/enrollment buttons, that no longer exist.
  • Dropped the XCLK down to 16MHz. Seems to work a little better for my OV5640. You might find the OV2640's can be quite noisy in video stream unless the XCLK is quite low, like 4MHz or so (but then it won't be anything like as fluid).
  • Sometimes the WiFi fails to connect, reporting "E (2520) wifi:Association refused too many times, max allowed 1" or maybe even nothing at all, so there's now a timeout that will cause the device to restart itself. This often clears whatever the blockage was.
  • Defaults to maximum image size at start, so will allocate the most memory possible for the frame buffer. Given the limitations of the hardware, you can't go beyond about 960KB per image, but it's much better than the 350ish you'd have had before.
  • Flash now works. And not only that, it's an enhanced flash that will blink and then flash for a longer period. The reason for this is both to give the camera time to adjust, and also to help combaqt red-eye if taking pictures of people in low light.
  • For the AI-Thinker board, the flash is limited to half power. This is because it's wired directly to the 3.3V supply with no current limiting resistor in place. Running for too long at full power, not good.

Now the generic camera server is that much more useful. ☺

Download rickcam20250510.zip (39.77K)
Rick's modified ESP32-Cam firmware.

An ESP32-Cam clipped to a tripod.
For those outdoor photos.

 

Eurovision

Next week is Eurovision week. Semis on Tuesday and Thursday. And, guess what, I'm now going to be working eight hour days (so getting up at six) to make up for the days off around the public holidays (there are several in May). So... yeah... I think I'll be kind of dead afterwards.

I think I'll do what I normally do and just write down my ideas in a fairly unformatted way, and then just dump it on my site without any read-through afterwards, because by the time that's done, it'll be way past my bedtime.

And, as always, I have no idea about what's going to happen or who is going to appear. I prefer everything to be fresh on the night, so no social media things prior.

 

 

Your comments:

Please note that while I check this page every so often, I am not able to control what users write; therefore I disclaim all liability for unpleasant and/or infringing and/or defamatory material. Undesired content will be removed as soon as it is noticed. By leaving a comment, you agree not to post material that is illegal or in bad taste, and you should be aware that the time and your IP address are both recorded, should it be necessary to find out who you are. Oh, and don't bother trying to inline HTML. I'm not that stupid! ☺
As of February 2025, commenting is no longer available to UK residents, following the implementation of the vague and overly broad Online Safety Act. You must tick the box below to verify that you are not a UK resident, and you expressly agree if you are in fact a UK resident that you will indemnify me (Richard Murray), as well as the person maintaining my site (Rob O'Donnell), the hosting providers, and so on. It's a shitty law, complain to your MP.
It's not that I don't want to hear from my British friends, it's because your country makes stupid laws.

 
You can now follow comment additions with the comment RSS feed. This is distinct from the b.log RSS feed, so you can subscribe to one or both as you wish.

John, 11th May 2025, 10:51
I love the piece of string - or is it bailing twine, ficelle de lieuse? I do miss bailing twine! 
 
Anyway, very rustic and evocative!

Add a comment (v0.12) [help?] . . . try the comment feed!
Your name
Your email (optional)
Validation Are you real? Please type 91920 backwards.
UK resident
Your comment
French flagSpanish flagJapanese flag
Calendar
«   May 2025   
MonTueWedThuFriSatSun
   24
579
12131415161718
19202122232425
262728293031 

(Felicity? Marte? Find out!)

Last 5 entries

List all b.log entries

Return to the site index

Geekery
 
Alphabetical:

Search

Search Rick's b.log!

PS: Don't try to be clever.
It's a simple substring match.

Etc...

Last read at 08:01 on 2025/05/13.

QR code


Valid HTML 4.01 Transitional
Valid CSS
Valid RSS 2.0

 

© 2025 Rick Murray
This web page is licenced for your personal, private, non-commercial use only. No automated processing by advertising systems is permitted.
RIPA notice: No consent is given for interception of page transmission.

 

Have you noticed the watermarks on pictures?
Next entry - 2025/05/11
Return to top of page