jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.68k stars 614 forks source link

Increase application range. Servo support #1637

Open Martinovici opened 1 year ago

Martinovici commented 1 year ago

The Feature

Hello Josef,

it would be nice if also manually activated digital meters could also be digitized. The problem is that a button often needs to be pressed first to activate the display. A delay before a picture can be taken, along with an IO pin that becomes high, would be sufficient. With a WeMos D1 mini board in combination with a servo to press the button, it would be possible to easily digitize many more digital meters. Regards Martin

nliaudat commented 1 year ago

You need to find a cheap servo running at 3.3v or 5v which works with very low power (do not need external power supply) or a micro linear actuator. If your request is much more precise, you'll get a better answer

haverland commented 1 year ago

It could be work git gpio13 I think as output. But in don't know if the angle works correctly.

I will test it. I have such servo here.

haverland commented 1 year ago

After different tries, I have no idea any more. All GPIOs are used with SD-Card. Only GPIO16, but can not used and GPIO4 (LED on Board).

If the servo is running, either the camera or the SD card will not work afterwards.

A second ESP32 connected to the LED could be a solution.

nliaudat commented 1 year ago

I mean all solutions requires a second board (perhaps arduino nano for cost consideration)

The best way would be to sniff serial output for a custom command or perhaps GPIO4 (led)

nliaudat commented 1 year ago

Using 1-bit mode for sdcard free up GPIO 12 & 13:

https://dr-mntn.net/2021/02/using-the-sd-card-in-1-bit-mode-on-the-esp32-cam-from-ai-thinker

jomjol commented 1 year ago

Using 1-bit mode for sdcard free up GPIO 12 & 13:

This is already implemented and active, because GPIO12 is used for the external WS281x LED controll

haverland commented 1 year ago

I wondered why the external WS-controll is working. Must be the timer mechanism I used.

RoadkillUK commented 6 months ago

I was hoping to get to the end of this thread with a result :(

I also vote for this