Pages: [1]   Go Down
Author Topic: Arduino DUE with WiFi Shield - Sleep Mode possibilities  (Read 492 times)
0 Members and 1 Guest are viewing this topic.
Munich
Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,

Another question:

Is it possible to put an Arduino DUE partially to sleep while a WiFi shield is connected to it which is constantly checking if a Smartphone configured as a WiFi hotspot is in its reach to connect to it? From the moment it connects to it, it should wake the DUE,...

I assume for this to work the WiFi-shield needs to be powered separatly from the DUE?

Anybody any experience with this?
Logged

Let's make it !

Earth
Offline Offline
Sr. Member
****
Karma: 14
Posts: 326
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, this is possible and no, you do not need to power them separately. The processor on the Due can be put into sleep mode via software commands and be woken up by interrupts. I am nearly sure that nothing in the Arduino library is exposed to support this sort of thing though - you'd have to access the hardware registers manually and then send the sleep command. This is one of those things that is possible to do but you have to read the cortex M3 documentation and find the stuff you're looking for. Once you do that you can search the CMSIS and libsam folders for headers that might make your life easier.  The processor has a power management system specifically for this purpose. Look for pmc.h and pmc.c in libsam.
Logged

Munich
Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Alright ! Thanks Collin. Another challenge :-)

I will dig into it pretty soon.
Logged

Let's make it !

Pages: [1]   Go Up
Jump to: