wolf12
Advanced Member level 4
- Joined
- Mar 31, 2011
- Messages
- 109
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Activity points
- 2,102
I'm using few serial modules with several Arduino software serial ports. In my program I make the Arduino sleep.
Before making the device sleep, if I give LOW state only to Vcc pins of serial modules, next time the device wake up serial communication gets corrupted. Also the Arduino was waking up when I'm changing sd card of a logger and when a GPS is connected the device sometimes stops responding at sleep. As a remedy, I'm putting RX and TX pins to LOW state by changing their pinmode to output. Then when the device wake up again, I'm changing the RX pin as a input and reinitialize software serial.
Other working method is to switch the GND pins of the serial modules. This way no changes to RX TX pins are necessary.
What is the best practice?
Thank you.
Before making the device sleep, if I give LOW state only to Vcc pins of serial modules, next time the device wake up serial communication gets corrupted. Also the Arduino was waking up when I'm changing sd card of a logger and when a GPS is connected the device sometimes stops responding at sleep. As a remedy, I'm putting RX and TX pins to LOW state by changing their pinmode to output. Then when the device wake up again, I'm changing the RX pin as a input and reinitialize software serial.
Other working method is to switch the GND pins of the serial modules. This way no changes to RX TX pins are necessary.
What is the best practice?
Thank you.