In Short: can GPIO13 on as esp32 Devkit 1 be connected to the RX pin (GPIO2) to wake from sleep on receipt of a Can Bus message?
I am just about to order a PCB that I have been designing with much help from this forum for a NMEA 2000 can bus for a boat. I have one pin on the ESP32 Devkit1 still unused and it happens to be a ‘touch’ pin GPIO13. I was wondering if I could use this to wake from sleep so that I would be able to put the nodes into a low power mode when they are not in use. I have not gone into great detail with this yet and am pre-code but was thinking that it is worth adding functionality to the board that I could code in later.
The idea I have is that when the node is not in use it sleeps until a signal is received on the can bus. Could I just wire this pin to the RX pin of the Can Bus so that every signal would be mirrored on this pin. That way when asleep I could code the uC to wake when this pin receives a signal. I am still not sure how useful this functionality would be but since the boat runs on batteries any power saved could be important. The Can Bus will be responsible for switching lights, receiving sensor data, displays etc so will likely be quite busy when the boat is in motion but very quiet at night, for example. I presume I would start by coding for these quiet times to be sleep times for nodes and then look at clever ways of napping even in the busy times.