Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Arduino How to switch serial modules before sleep mode.

Status
Not open for further replies.

wolf12

Advanced Member level 4
Full Member level 1
Joined
Mar 31, 2011
Messages
109
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Visit site
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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top