Lurker News
Hey HN!

A few years ago someone kept trying to steal my motorcycle, so I decided to make a small camera with really long battery life to catch them.
The hardware/software is totally open source, but the companion app only supports macOS currently. (I'm a big fan of native apps, and didn't want to block releasing on Linux/Windows support.)
I wrote some blog posts about the process:
PCB design: https://toaster.llc/blog/pcb
Enclosure design: https://toaster.llc/blog/enclosure
Image pipeline: https://toaster.llc/blog/image-pipeline
Rainproofing: https://toaster.llc/blog/rainproofing
Source: https://github.com/toasterllc/Photon

Comments (299) 87 threads

Earlier comments
the__alchemist2 replies#
If you don't mind me asking, what is Mac-specific about it? Is it the GUI toolkit? The PC-program toolkits I've used to transfer data to and from embedded devices using USB-C: (Qt, EGUI) don't care what OS you use. The web-based ones like Electron don't either. So, there would be nothing blocking the release; they just work on any OS you compile on or cross-compile for.
colordrops4 replies#
To be frank the "mac exclusive" marketing is a huge turn off for something that should obviously be nearly completely agnostic regarding PC operating systems. Makes me wonder what other poor decisions went into the design of this thing.
davekeck#
> Makes me wonder what other poor decisions went into the design of this thing.

Haha me too man, me too.
(Edit: I don't mean that sarcastically, I'm genuinely interested how others would make this thing.)

kelnos1 reply#
Yeah, I actually physically rolled my eyes when I read the "exclusively for Mac" copy on the website. I get it if you want to build a cool photo transfer/view app as an add on to the experience, and want to do it native, and only have time to build for one platform. But calling that out in that way makes it sound like some sort of "feature", which is a huge turn-off, regardless of whether or not they're building exclusively for my platform of choice.

But the camera itself should support MTP, USB mass storage, or something of that nature, and should just work on any platform. If it doesn't, that's a pretty silly oversight.

zoky#
It's not an oversight. There are very good reasons for it, which are detailed elsewhere in the comments thread.
pierrec#
It's not marketing. They're just upfront about limitations (software is single-platform) while trying to present it positively (it will feel native on that platform). The entire page seems to make a point of being upfront about limitations, which is kind of a rare thing. That said I agree that making it cross-platform would have been wise, since the software is entirely secondary to the physical product.
6274671 reply#
> should obviously be nearly completely agnostic

Is it obvious? Is it free (as in resources) to support agnostic platforms and systems? Is the threshold for making anything that it needs to be compatible with everything?

temp202406041 reply#
In general, no.

However a security camera that works with all operating systems just needs to expose a drive via USB… as has been done for decades now.

Continue this thread — 1 reply

davekeck#
The Mac-specific parts of Photon Transfer (the companion app) are really just the GUI stuff (AppKit) and the GPU shaders (Metal) for the image pipeline. In fact the "MDCUtil" tool should still work on Linux (I haven't tested it in a bit though), and that allows reading imagery from the camera along with lots of other fun debug stuff.

A big part of porting Photon Transfer to Linux would be converting the image pipeline from Metal to... Vulcan (?). The main chunks of that are FFCC illuminant estimation (for white balancing) and LMMSE debayering:
https://github.com/toasterllc/FFCC-Metal https://github.com/toasterllc/LMMSE-Metal
The GUI stuff (list views, image grids, image zooming, oh my) would be a good chunk of work too.

LorenDB3 replies#
Why not just use something like Qt to build a native cross platform app? As others have mentioned, advertising a device as open source and yet Mac only is going to turn away a lot of people.
meatmanek#
Qt apps, even in 2024, still don't feel native when used on Mac.

Personally I'd much rather just drop the custom Mac app and replace it with:

  - firmware that can read/write a proper filesystem
  - firmware that can create e.g. DNG files that can be handled by regular photo editors like Lightroom, RawTherapee, Darktable, etc.
  - A webapp that lets you generate a configuration file and does the battery life estimation.
davekeck#
Really appreciate the feedback.

The honest answer is I'm a Mac guy, and a terrible businessman.
FWIW I love Linux and used it extensively to develop Photon. (In fact the "MDCUtil" tool for debugging Photon already supports Linux.) I'd love to add Linux support for the app if there's enough interest in this thing.

nottorp1 reply#
Can he afford Qt? He'd need a lawyer on retainer.
LorenDB1 reply#
If the app is opensource, Qt is 100% free under GPLv3.
detaro1 reply#
Most of it is LGPL, so the app doesn't even need to be open-source and on desktop compliance is quite easy.

Continue this thread — 1 reply

NegativeLatency1 reply#
Neat, if there was something like this that was more like a car dashcam, I'd really like something for my bicycle helmet, I want a dashcam like experience incase someone hits me, but the battery life and charging ergonomics combined with having to empty the flash card on a gopro makes it not work well for the usecase.
bambax#
For this I use a Virb Elite mounted on the bike itself. Garmin stopped making them in 2013 I think, and they can be found in mint condition for $40-50. They're very sturdy, waterproof, and have GPS. The battery life is reasonnable (with new batteries).

The mounting system is very practical, they can be taken off or put back on with one hand, something I was never able to do with a GoPro.
And they just... look weird, so they don't get stolen.

mlukaszek#
Congratulations on the launch! Not sure if anyone mentioned it already - huge kudos for publishing insights of your journey in the detailed posts on your blog. I learned so much! Loved the details, photos, clips demonstrating problems you encountered. Thanks and good luck!

Load more comments