fmms:
I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
and I got this output with the monitor on 115200 BAUD
{ll��|�d�|�d�c<���e�{�csd$ܟ<�l�<�l�c|����r�#�c��'o�do'���cp��dsdrd8�g��lĜb'�|$����c��o'�l��d`�eo'l`ao;Ǜ�'��ala{��o��$��g�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�$�c|ǃ�e�{�c�c��og�lno���bx��l;l{lp�n��d��cg�|lČ��c��'o�$��l`�e'o
> fmms:
> I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
>
> I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
```
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
```
and I got this output with the monitor on 115200 BAUD
g{���o��lr��'��al��n�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�$�c|���e�{�c�c��g'�lng���bx��l;l{lx�n��d��#g�|d��#��no�$��l �eno
fmms:
I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
and I got this output with the monitor on 115200 BAUD
'{���g��las��'��ad��n�
Start...
ResetInfo.reason = 5
going to sleep now...
sd$ܟ|�l�<�l�c|����r�#�c��go�dog���cpćdsdrl8�o��$��b'�|d����b��og�l��l`�ogl ao;���g��ala{ۓo��$��o�
Start...
ResetInfo.reason = 5
going to sleep now...
{ll��|�d�|�d�c<ǃ�e�{�c�b��og�l'o���#x��${l{$p�'��l��co�|l��Ǐc��'o�d��
> fmms:
> I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
>
> I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
```
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
```
and I got this output with the monitor on 115200 BAUD
�ee'od`gs���o��$r��g��al��'�
Start...
ResetInfo.reason = 5
going to sleep now...
{ll��|�d�|�d�b<���e�s�c�#��og�lgo���#p��${ls$p�'��l��co�<l��Ǐc��gn�d��
fmms:
I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
and I got this output with the monitor on 115200 BAUD
�egod`ags�ۓo��$;��g��al��'�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�$�c|ǃ�e�{�c�c��o'�lno���bx��l;l{lx�n��d��cg�|lČ��#��no�$��l �eno
> fmms:
> I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
>
> I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
```
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
```
and I got this output with the monitor on 115200 BAUD
'{���o��las��'��ad��n�
Start...
ResetInfo.reason = 5
going to sleep now...
{ll��|�d�|�d�b<���e�s�c�#��og�lgo���#p��${ls$p�'��l��co�<l��Ǐc��gn�d��
fmms:
I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
and I got this output with the monitor on 115200 BAUD
�egod`ags�ۓo��$;��g��al��'�
Start...
ResetInfo.reason = 5
going to sleep now...
{ll��|�d�|�d�b|���e�s�c�#��ng�lgn���cp��${$sdp�g��l��co�<l��Ǐc��gn�d��d`�egnd`ags�ۓn��d;��gĜal��g�
Start...
ResetInfo.reason = 5
going to sleep now...
rd$��|�l�|�l�c|����;�c�c��gn�dog���c8��lrd;lx�o��$��#g�|d����b��og�l��l`�eogl n{���g��alasۓn��d��o�
Start...
ResetInfo.reason = 5
going to sleep now...
rld��|�l�|�$�c|����;�c�c��g'�log���cx��l;l;lx�o��d��#g�|dČ��#��ng�l��l �engl`'{���gĜlas��n��ad��o�
Start...
ResetInfo.reason = 5
going to sleep now...
sd$ܟ<�l�<�l�c|����r�#�c��'o�do'���cp��dsdrl8�o��$��b'�|$����c��og�l��l`�eogl ao;Ǜ�'��ala{ۓo��$��o�
Start...
ResetInfo.reason = 5
going to sleep now...
{ll��|�d�|�d�b|���e�s�c�#��ng�lgn���cp��${$sdp�'��l��co�<l��Ǐc��gn�d��
> fmms:
> I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
>
> I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
```
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
```
and I got this output with the monitor on 115200 BAUD
�egndags�ۓn��d;��gĜal��g� Start... ResetInfo.reason = 5 going to sleep now... sdlܟ<�l�<�l�#|����s�#�c��'o�dg'���cp��dsdrd8�g��lĜcn�|$����c��o'�l��d
�eo'laorǛ�'��ada{��o��$��g� Start... ResetInfo.reason = 5 going to sleep now... {$l��|�d�|�d�b|���e�s�c�#��ng�$gn���cp��${$sdp�g��l��co�<l�ć�c��gn�d��d
�egndags�ۓn��ad;��gĜl��g� Start... ResetInfo.reason = 5 going to sleep now... rdd��|�l�|�l�c|����;�c�c��gn�dog���c8��lrd;lx�o��$��#g�|d����#��og�l��l
�eogl n{���g��alasۓn��ad��o�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�d�c|ǃ�e�{�c�c��og�l'o���bx��l;l{lp�n��d��cg�|lČ��c��'o�$��l`�e'o
fmms:
I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
and I got this output with the monitor on 115200 BAUD
g{���o��lr��'��al��n�
Start...
ResetInfo.reason = 5
going to sleep now...
{$l��|�d�|�l�#|���e�s�b�#��no�$gn���cp��d{$sdp�g��l��co�|l�ć�c��gn�dćd`�egnd`aos���n��ad;��gĜl��g�
Start...
ResetInfo.reason = 5
going to sleep now...
sd$ܟ<�l�<�l�c|����r�#�c��'o�do'���cp��dsdrl8�o��$��b'�|$����b��og�l��l`�eogl ao;Ǜ�'��ala{ۓo��$��o�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�$�c|ǃ�e�{�c�c��o'�lno���bx��l;l{lx�n��d��cg�|lČ��c��'o�$��l �eno
> fmms:
> I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
>
> I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
```
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
```
and I got this output with the monitor on 115200 BAUD
'{���o��ls��'��ad��n�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�d�c|ǃ�e�{�c�b��og�l'o���#x��l;l{lp�n��d��co�|l����c��'o�$��l`�e'o
fmms:
I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
and I got this output with the monitor on 115200 BAUD
g{���o��$r��'��al��n�
Start...
ResetInfo.reason = 5
going to sleep now...
;ld��|�$�|�$�c|���e�{�c�c��g'�lng���bx��l;l{lx�o��d��#g�|d��#��no�$��l �eno
> fmms:
> I don't uur pin 16 in my code, for the hc-sr04 I use pin 12 & 14.
>
> I will try and upload an empty sketch tonight with deep sleep function only to see if this works without problems.
OK .... down in the lab for you.
I took a new, out of the antistatic NodeMCU by Lolin and used a female-female Dupont jumper to connect Rst with D0 (GPIO16) and ran this sketch:
```
extern "C" {
#include "user_interface.h"
}
void setup() {
rst_info *rsti;
Serial.begin(115200);
rsti = ESP.getResetInfoPtr();
Serial.println("\r\nStart...");
Serial.println(String("ResetInfo.reason = ") + rsti->reason);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("going to sleep now...");
system_deep_sleep_set_option(0);
system_deep_sleep(10000000); // deep sleep for 10 seconds
delay(1000);
}
// See more at: http://www.esp8266.com/viewtopic.php?f=32&t=8411&start=4#p42013
```
and I got this output with the monitor on 115200 BAUD
'{���gĜlas��'��ad��n�
Start...
ResetInfo.reason = 5
going to sleep now...