ArduCAM / Arduino

This is ArduCAM library for Arduino boards
MIT License
477 stars 350 forks source link

ArduCam low power usage ? - sleep mode #269

Open HelloMyDevWorld opened 7 years ago

HelloMyDevWorld commented 7 years ago

Hello, Is there any way to make arducam to sleep and wake up after a few seconds/minutes?

supprot commented 7 years ago

Please read section 5.7.2 http://www.arducam.com/downloads/shields/ArduCAM_Camera_Shield_Software_Application_Note.pdf

HelloMyDevWorld commented 7 years ago

Does "delay" not consume a lof of power during loop() ?

supprot commented 7 years ago

What do you mean by the "delay" in the loop()?

HelloMyDevWorld commented 7 years ago

I am wondering if i will save some energy by doing sth like this.

void loop() { server.handleClient(); myCAM.set_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK); //enable low power delay(300000); //5minutes myCAM.clear_bit(ARDUCHIP_GPIO,GPIO_PWDN_MASK); //disable low power delay(60000); }