News for hackers. Stuff that matters.
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by jrflo on Tuesday October 06, 2026 @02:19PM (#49982123)
I was curious about timing accuracy too, has any testing been done on this? Is it accurate to 1s, 0.1s, 0.01s? How dependent is it on the smart switch hardware?
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by muhehe on Tuesday October 06, 2026 @03:52PM (#49983193)
I played with development photos in a darkroom a long time ago. I don't think one second actually makes much difference.
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by guax on Tuesday October 06, 2026 @05:10PM (#49984201)
Depends on how powerful of a light you’re using. 1 second on a 7 second exposure is too much. One second on a 20, not.
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by aw4rzs on Tuesday October 06, 2026 @06:59PM (#49985385)
I don't think 1 second on a 7 second B+W exposure is that noticeable.
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by guax on Wednesday October 07, 2026 @12:59AM (#49988416)
14% is a lot.

I think you can work around it very easily by stopping down the lens and using filters.

But I’m sure if the phone has direct connection to the device and not working through hubs it’s not anywhere near 1s of delay.

Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by alnwlsn on Tuesday October 06, 2026 @05:11PM (#49984209)
I'd probably put the typical smart switch hardware/software stack at around 0.25 seconds. Maybe you can but I don't think I'd try to rely on anything much faster than that.

If you did, I would go in the custom firmware for the smart switch direction. A lot of them are just an ESP32 inside, and you could probably get to 0.001 seconds that way (but you are switching AC which cycles on the order of 0.02 seconds, so whatever)

Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by quickthrowman on Tuesday October 06, 2026 @07:36PM (#49985728)
If I were to tackle this project, I’d use an ESP32 and a relay with 120V contacts. That way you can use a GFCI receptacle and be code compliant if your darkroom is in a basement or the enlarger receptacle is near your darkroom sink.
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by pathartl on Wednesday October 07, 2026 @04:46AM (#49989983)
If you buy something like the Sonoff S31 they have an 8266 in them that can be easily flashed
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by pentakkusu on Wednesday October 07, 2026 @05:18AM (#49990233)
Many such projects were actually made, some of them are better documented then others. For this application I wanted something that is as off the shelf as possible.
Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by foobar1962 on Tuesday October 06, 2026 @08:47PM (#49986410)
Repeatability is more important than accuracy.

Note also that some of the best printers used metronomes to count exposure time and turn the enlarger light on and off manually.

Re:Show HN: I turned my iPhone and a $20 smart plug into an ... by pentakkusu on Wednesday October 07, 2026 @01:07AM (#49988463)
Using slow motion recording, I measured 0.1s accuracy. I'd say it's more than good enough. You can see a print on the website I made with the app and a smart plug. The average print needs between 4-60s of exposure.

As for how dependent it is on that specific type of hardware (Shelly plugs), it is 100% dependent as the app directly controls the smart plug (with the help of the router ofc). There is no way around it, no other smart switch family is currently supported.