m5stack / TimerCam-arduino

TimerCam Arduino Library
MIT License
45 stars 25 forks source link

Using Camera as I2C Slave #20

Closed pacmac closed 5 months ago

pacmac commented 5 months ago

Describe the bug

I am using the camera as a I2C slave, all of the communication is working.

As the master is battery powered, it also needs to power the cam, I tried doing that using the 5V supply on the connector, but when I put it to deep sleep, the power consumption is very high.

As I understand that the ultra low power consumption is only available when on battery power, I am now trying to power using the battery connector, but the problem is the camera does not even power on when supplied by battery.

So how can I supply power via the battery connector and have the device switch on without needing to press the physical switch.

I have tried setting GPIO33 high and low but that makes no difference, the cam wont power up when supplied by battery ?

Thanks

To reproduce

See above

Expected behavior

See above

Screenshots

No response

Environment

Additional context

No response

Issue checklist

imliubo commented 5 months ago

Hi, image

GPIO33 used for holding the power, you need a trigger signal,and the trigger signal has 2 source,one is RTC(BM8563) alarm and one is USER button.Once the hardware got signal then will power on and you need set the GPIO33 to HIGH in software.So if you dont want click the button you need set a alarm to RTC chip,only in this way you can power on the timer camera.

pacmac commented 5 months ago

Hi, thanks for helping I did see your post in the forum before I posted the issue here.

Unfortunately as far as I can see, that wont work for me, as the camera is a slave to another ESP32 Master which is doing a lot of other things, and one of them is to take a photo.

The RTC would only work if the TimerCam controls itself and decides when to wake up, but I need to have it take a photo on demand not when it wants to.

pacmac commented 5 months ago

Hi @imliubo - can it be triggered with a RTC Wakeup pin ?

Gitshaoxiang commented 5 months ago

the ultra low power mode actually mens turn off all power supply. in this situation only two way to wakeup the device(RTC wakeup pin signal, or Wakeup button.), but if you connected the 5V supply to the ext port. the TimerCAM will nerver shutdown. even you set the device to deepsleep mode(it maybe still have 20ma consumption), I think you could try to add a mos switch to control the Camera 5V power supply.

pacmac commented 5 months ago

Thanks, yes that's what I did.