m5stack / TimerCam-arduino

TimerCam Arduino Library
MIT License
45 stars 25 forks source link

The device doesn't wake up from sleeping #19

Open raduprv opened 5 months ago

raduprv commented 5 months ago

Describe the bug

I am using the following code, from the example: TimerCAM.begin(true); TimerCAM.Power.timerSleep(5);

I placed it at the end of my program, the device goes to sleep but never wakes up. I placed it at the beginning, before doing anything else (except for printing a serial essage), and the same thing happens. The device is powered by USB from the computer, no battery attached.

Am I doing something wrong?

To reproduce

Using Arduino

Expected behavior

I would expect the device to wake up after 5 seconds.

Screenshots

No response

Environment

Additional context

No response

Issue checklist

raduprv commented 5 months ago

Ok, so I added an external battery and it now works (but only if I unplug it from the usb). I guess that should be specified somewhere?

imliubo commented 5 months ago

Hi,the hardware design need unplug the USB cable and connect the battery,if you connect the USB cable it won't go sleep,because the power not cut off.

And why need unplug the USB cable,i think you need check the schematic.

raduprv commented 5 months ago

Thank you for replying. Perhaps you should state that somewhere on the main page of the camera, or at least make a comment in source code sleep example, because this is not very intuitive :)

imliubo commented 5 months ago

Yes,you are right, we will add notice to example and the docs. Thanks for your advice.

raduprv commented 5 months ago

Great, thank you! And to not open a new issue, is there any way I could add a SD card to the Timer Camera? There are two pins on the connector, and there are some testing pads on the left and right side of the board. The left side has tx/rx, but on the right side I couldn't understand what they are for. Are they connected to any GPIO? Can any of them be used for this purpose? That would be very useful, as right now I can only upload files to my computer by ftp, one by one.