![]() The serial.println statements do not seem to work all the time. The sender arduino sends 'W ' to master arduino, PCI on pin 11 is triggered and it wakes up. Guys, finally got it to work, the pin change interrupt wakes up the arduino, but I am having problems with some print statements thereafter. Here is the wiring diagram and the code! //Sleeping arduino put your main code here, to run repeatedly: put your setup code here, to run once: Ĭonnections: pin 11 of one arduino connected to pin 12 of other arduino and vice versa. I have posted the codes for both the arduinos. I tried it out, but things do not seem to be working. Why don't you use the hardware serial interface instead of SoftwareSerial? SoftwareSerial uses the PCI (pin change interrupt) and that one is able to wake an Arduino in "power down" sleep mode. ![]() ![]() You don't have to connect the the reception pin to the interrupt pin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |