Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep sleep unreliable with resistor #59

Closed
pronkster opened this Issue Apr 26, 2017 · 48 comments

Comments

Projects
None yet
10 participants
@pronkster
Copy link

pronkster commented Apr 26, 2017

Hi there,

Firstly wanted to say that you are doing an awesome job here. 馃憤

My iSpindle is setup with the Wemos D1 Mini PRO which works fine except, the iSpindle wouldn't wake up from deep sleep with the config as described in your Wiki. A quick google told me that this is a known issue with the Wemos in general (all models) and that replacing the 470 ohms resistor with a diode solves this issue.

Credits go to schufti in this forum post: http://www.esp8266.com/viewtopic.php?f=13&t=7918&start=24#sthash.9AUQQ49G.dpuf

" instead of experimenting with resistors and relying on the "it worked for me" value, it would be more technically correct to use a schottky diode (e.g. BAT43) to cleanly pull rst low without side effects when gpio16 is high.

p.s.: the cathode (ring) towards gpio16 ..."

It worked for me so thought id share and hopefully it works for others as well.

Cheers

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Apr 26, 2017

Thats indeed a great idea! Let me know how it goes!
Regarding the resistors I found that sometimes a lower resistor ~370 Ohm works better.

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented Apr 26, 2017

So far so good! All functions work perfectly, even the reset! No need for a resistor I reckon, just use a diode instead. Needs more testing on the normal Wemos D1 mini as well though

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Apr 26, 2017

It seems to me that the selection of the diode to be a schottky is a critical one here!
According to the datasheet, the min. Input Low Voltage must be < 0.25脳VIO while the Output Low Voltage is up to 0.1脳VIO.
Therefore, this leaves 500mV where the BAT43 will drop around 300mV or more. So a regular silicium diode will fail in this setup!
Using a BAT43 or better is a requirement so to speak.

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented Apr 27, 2017

Are you able to share a link to that data sheet? I have looked everywhere but haven't been able to find a good detailed one yet.

I have replaced the resistor with a normal 100v 1a diode and this seems to work just fine (no BAT43). Im trying to figure out why there is a resistor required but all I can find in the original documents is a direct connection RST to D0.. to me it seems D0 just need to have power for the unit to come back from deep sleep. Would it not be that the lower the voltage the less reliable the unit becomes? Not sure why a diode would work better than a direct connection though..

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Apr 27, 2017

The link: http://download.arduino.org/products/UNOWIFI/0A-ESP8266-Datasheet-EN-v4.3.pdf

If it works on your current setup it does not imply that it will be reliable under different conditions like a nearly empty battery or at lower temperatures. According to the DS it violates the limits with a normal diode.
The resistor is there to protect the D0 output if through UART chip the RST is pulled down at the same time. I've fried already a D1 because of this.

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented May 2, 2017

Cheers, thanks for the link! I will do some more testing over the next few days and let you know how I go.

@Kloorob

This comment has been minimized.

Copy link

Kloorob commented May 9, 2017

Hi,
I have just found this article on Github, as I am having the same issue with my iSpindle setup using a Wemos D1 Mini, which like pronkster works fine when first connecting / linking to Ubidots (all reading show up) then nothing after that, and hence I suspected the iSpindle wouldn't wake up to transmit the next signal / link to Ubidots?

Therefore, can you propose a remedy for this issue please, as I view this project as too fantastic for me to give up on it?

Also, thanks for all your hard work.

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented May 9, 2017

Use a Schottky diode or a lower resistor of 350 Ohms.

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented May 9, 2017

I finally had some time to look at this in more detail. I found there is a lot of conflicting information online around the use of resistors and diodes and in particular, which one is the correct one (and how do you know for sure). This is what I have found so far:

There are three ways to revive from (deep) sleep;

  1. You can press the reset button
  2. You connect RST and GND with a switch (effectively the same as a RST button)
  3. You can use the inbuild sleep function

The inbuild Deep sleep function uses GPIO16 as an Output which is ether HIGH (3.3 V) during sleep or LOW (0.0V) once the timer has finished.

Connecting D0 (GPIO16) directly to RST as per original manual will result in a constant 3.3 V on RST while in sleep and prevents a manual or software reset to pull LOW. Uploading firmware is apparently not working either (not tested this myself).

To fix these issues you can either use a resistor lower than 350 Ohm or better, a diode between RST and D0 (pointing to D0 ).

A diode or resistor will prevent 3.3 V on RST while D0 is HIGH during deep sleep thus allowing a manual RST through USB-TTL or the RST circuit. It is also preventing damaging the chip if the RST is pulled down through UART chip when booting up. Apparently the problem is that during during Linux Kernel boot phases 1-3 all pins are floating (GPU to CPU handover) and on Phase 4, the PINs are set to the correct state. Connecting D0 and RST directly can result in a fired WEMOS.

Using a higher resistor might work when your battery is full but might not work once your battery is running lower. I am using a normal diode (not a Schottky) and this works great so far. However, I have not done any testing over a longer period. I will do soon and update once I know more.

@Kloorob

This comment has been minimized.

Copy link

Kloorob commented May 10, 2017

Hi Pronkster.

Hope you don鈥檛 mind me asking, can you kindly give me the actual diode part number / type you are using please, so that I can try and use the same and test it on my pcb please?

Thanks.

@wizbrewery

This comment has been minimized.

Copy link

wizbrewery commented May 11, 2017

Hi, getting the same issue here using weemos mini pro. I get a couple of pings once programmed and reset then goes to sleep forever. Will try the diode trick tomorrow, cheers

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented May 11, 2017

@Kloorob - I am using a 100v 1A diode. I believe the product number is 1N4934 but will confirm when I am home this weekend.

@wizbrewery

This comment has been minimized.

Copy link

wizbrewery commented May 12, 2017

Hi, tried with IN4001 thanks @pronkster works great :)

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented May 13, 2017

Just checked and I am using the 1N4934

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented May 17, 2017

don't use a standard diode because it is out of spec. Use a schottky instead!

@universam1 universam1 removed the enhancement label May 17, 2017

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented May 17, 2017

Hi @universam1, are you able to elaborate on that? Please correct me if I am wrong but my findings are that for the purpose of this project, any diode will do. The Deep Sleep function uses GPIO16 as an output, not as an input so it doesn't really matter if LOW is higher than 0V. The whole purpose of this diode is to protected RST when GPIO16 (or D0) is high during reset or when using the USB firmware upload.

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented May 17, 2017

@pronkster Check my above elaboration on the datasheet why it is critical to use the right kind of diode here

@Phrozentech

This comment has been minimized.

Copy link

Phrozentech commented May 19, 2017

@universam1 so using a BAT41 or BAT43 would be the best diode to utilize instead of the 370ohm resistor in this case? I'd like to use something that's consistent, since it looks like if my battery gets below 3.6-3.5 the device doesn't wake up, I'm still testing that theory though.

@Kloorob

This comment has been minimized.

Copy link

Kloorob commented May 20, 2017

Hi @universam1. Just to let you know that I built a new board today and added a BAT43 Schottky Diode in place of the 470 ohm resistor, and my iSpindel is now working, which is brilliant!
Thanks for your help.
Cheers.

@lekrom

This comment has been minimized.

Copy link

lekrom commented May 26, 2017

Dear @universam1,
I absolutely agree with your assesment on the diode.
May i recommend you update the docs / circuit diagram to use the schottky diode instead?
Regards,
Lekrom

@lekrom

This comment has been minimized.

Copy link

lekrom commented May 26, 2017

Epic project by the way...

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented May 26, 2017

thanks @Kloorob @lekrom thats good feedback!
Would like a little more feedback but I tend towards this being the better way.

@lekrom

This comment has been minimized.

Copy link

lekrom commented May 26, 2017

A simple yet elegant sollution. Cant think of a better way. Should work for virtually any condition. Schottkys are also typically much faster that Si-diodes, ideal for protection purposes, so should work very well for protecting the IO pin in thet scenario nentioned. Must admit, I was puzzled by the resistor in the circuit. A few quick searches led to this thread. I have been working (and playing) with microcontrollers for many years, although Esp8266 still very new to me. Missed the wake from deep sleep GPIO16 thing...

@Kloorob

This comment has been minimized.

Copy link

Kloorob commented May 26, 2017

Hi @universam1, Just to give you some further background as I have built 5 boards and the first 4 board, I thought that I messed up in the soldering, and hence, I couldn't get it to work. However, on my fifth board, I used a BAT43 Schottky Diode and it worked. All I need to do now is to put it into a fermenter to give it long test.
Thanks for your help.

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented May 29, 2017

nice @Kloorob @lekrom I'm fine with it. Feel free to create a Merge Request to the docs, BOM etc. Thanks

@Phrozentech

This comment has been minimized.

Copy link

Phrozentech commented Jun 3, 2017

I used a BAT46 instead of a BAT43 and was able to get readings until 3.67v then it stopped communicating. Looks like a 197.36hrs between diode and using a BAT46 currently recharging the battery and rerunning the test again.

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Jun 4, 2017

That's actually a pretty disastrous result,with resistors I achieve stable run until 2.8V down. Once I got some time have to simulate this on a PSU.

@Phrozentech

This comment has been minimized.

Copy link

Phrozentech commented Jun 4, 2017

Good to know, so I should be able to get to 3.3v since that should be the cut off on a 18650 to keep from over discharging

@pronkster

This comment has been minimized.

Copy link
Author

pronkster commented Jun 4, 2017

I am still running with the silicium diode (1N4934) but will go for Schottsky in my next version as that seems to be the more efficient diode choice. On this setup the deep sleep stops working at around 3.28V.

@universam1; 2.8V is a much better result! Is that with 370 Ohm resistor? Im keen to see your findings running this on a PSU

@Alchomist

This comment has been minimized.

Copy link

Alchomist commented Jun 20, 2017

Not sure if this is relevant to this thread, but I found I could log into the configuration but saving the settings resulted in an error & connection closed. One of the guys at Aussie Home Brewer noted he had the same problem & the BAT43 solved this.

Appreciate your effort on this project universam1

@universam1 universam1 added tests required and removed question labels Jun 22, 2017

@universam1 universam1 referenced this issue Jun 22, 2017

Closed

PCB file #66

@Alchomist

This comment has been minimized.

Copy link

Alchomist commented Jun 22, 2017

Installed the shottky but it still won't save wifi details or log-in. The Wemos can see 6 wifi signals/extensions but can't log into any of them. It keeps saying error config corrupted then goes into config mode. Weird how it can read temp, tilt & battery & transmit it to the monitor, then get a wifi error & shut down.

Does it sound like a dodgy soldering issue?

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Jun 22, 2017

are you having spaces / special character in your wifi password?

@Alchomist

This comment has been minimized.

Copy link

Alchomist commented Jun 22, 2017

No, I changed the wifi password to all lowercase and numbers

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Jun 22, 2017

this is not related to this topic, please open a new issue and post your debug terminal output as well as informations about your built.

@padrino-xl

This comment has been minimized.

Copy link

padrino-xl commented Jun 26, 2017

Hi there,

thank you for this great project!
After building my first ispindel and a lot of reading I still have a Problem.

The ispindel sends the values just one time after pressing the reset button and doesn't wake up afterwards.

I unterstand this is relatet to the 470ohm resistor. I tried a 390 ohm resistor and i did not work from the beginning. After a lot of tries it suddenly worked.
I thought changing to a 350 ohm resistor would make it more reliable. But now it stops again after one time sending.

I read the schottky diode might help. Would you recommend it since it seems to work but not with low battery?
I'll check my soldering again, but I'm pretty sure thats not the Problem.

Thanks again for your great work here!

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Jun 26, 2017

Could you please set the timeout to 15s and post here the output of the serial console, I am sure this will shed some light into what's going on here.

@padrino-xl

This comment has been minimized.

Copy link

padrino-xl commented Jun 26, 2017

Hi,

this is what I can read:

{d[00]d艙鸥|[00]艗d脿<[03][04][04][0C]艗[0C]l盲[04]c|锟狡抂02]矛[13]鈥渰鈥篶艗[0C]c艗贸oo鸥lgg艙茫矛[04]c[1C]x艗脟l;lslx貌g脿[10][03][04][04]茠[0C]l[0C]鈥炁揫04][0C][0C]c[0C]g茫|[03]d矛[0C][0C]沤#鈥灻籵o卯[00]l艗锟絛[03]藴[12][13]'n[04]$[03][07][02]gs沤鈥衡簅[0C][0C]c[0C]艙[07]l[0F]{鈥欌檊[04][04]c[04]艙[0E]d艙[03][04][04][04][0C][0C][0C][0C]l`[03]眉茠n艙[03]

FW

5.1.2
2.0.0(656edbf)
Worker run!
Boot-Mode: 5
mounting FS... mounted!
reading config file
opened config file

parsed json
applying offsets
parsed config:
{"Name":"iSpindel","Token":"XXX","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":196.43,"SSID":"XXX","PSK":"XXX","POLY":"-0.00031tilt^2+0.557tilt-14.054","aX":73,"aY":-781,"aZ":883}
woken from deepsleep, normal mode
Spl 0: 87.08
Spl 1: 86.98
Spl 2: 87.46
Spl 3: 86.82
Spl 4: 87.04
Spl 5: 86.78
Spl 6: 86.63

a: 982 16414 100 absTilt: 86.95 T: 31.16 V: 4.11 owT: 29.37 Gravity: 32.03
After waiting 0.00 s, result 3
192.168.0.157
UBIDOTS: posting
POST /api/v1.6/devices/iSpindel?token=XXX HTTP/1.1
Host: things.ubidots.com
User-Agent: iSpindel
Connection: close
Content-Type: application/json
Content-Length: 65

{"tilt":86.95,"temperature":29.37,"battery":4.11,"gravity":32.03}HTTP/1.1 200 OK
Server: nginx
Date: Mon, 26 Jun 2017 17:52:56 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Vary: Accept, Cookie
Allow: POST, OPTIONS

8d
{"battery": [{"status_code": 201}], "tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "gravity": [{"status_code": 201}]}
0

Final-sleep: 15s; RT:2320
rl[00]l艙鸥|[00]艗l脿|[03][0C][0C][0C]艗[04]d盲[04]c<鈥∑抂03]盲[1B]鈥簕脹bl沤b鈥灻籵g鸥l'n艙茫矛[0C]c[1C]x艗锟絛slsd[1B]茠s贸鈥檕脿c芒gcp[00]眉

I managed to change the battery-value, but failed the offset-Calibration. After pressing calibration, the spindel never shows up again and I have to reset again.

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Jun 26, 2017

Interesting!
Could you do as a test short wire the d0 and RST and monitor if this changes? Just make sure not to flash firmware while this pins are bridged. This way you will know if it is related to the resistor at all.

@padrino-xl

This comment has been minimized.

Copy link

padrino-xl commented Jun 28, 2017

hi,

I couldn't test it yesterday, but here are the readings with the d0 and RST bridged.
It looks like it is working this way.
I don't know what to take from this. Should I use a diode, or a smaller resistor? At the moment I am using a 350 ohm resistor.

sd[00]l艙鸥|[00]鈥瀕脿|[02][0C][04][04]鈥瀃04]l矛[0C]c|沤茠[03]矛[12]鈥檚鈥渃鈥瀃0C]c艗贸gn鸥$og艙茫盲[04]b[1C]p艗鈥{d;lp没g脿[18][03][04][04]茠[0C]l[0C]艗艙[04][04][0C]c[0C]g茫|[03]d矛[0C][0C]脟c鈥灻籵o卯[00]l艗沤d[03]藴[12][13]'n[04]$[02][07][03]gs沤鈥衡簅[0C][0C]c[04]艙[07]l[0F];鈥欌済[04][04]c[0C]艙[0F]d艙[03][04][04][0C][0C][0C][0C][0C]d`[03]眉鈥歡艙[03]
FW 5.1.2
2.0.0(656edbf)
Worker run!
Boot-Mode: 5
mounting FS... mounted!
reading config file
opened config file

parsed json
applying offsets
parsed config:
{"Name":"iSpindel","Token":"","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":196.43,"SSID":" ","PSK":","POLY":"-0.00031tilt^2+0.557tilt-14.054","aX":73,"aY":-781,"aZ":883}
woken from deepsleep, normal mode
Spl 0: 83.67
Spl 1: 83.45
Spl 2: 84.07
Spl 3: 85.66
Spl 4: 85.17
Spl 5: 88.86
Spl 6: 72.44

a: -5906 15844 -482 absTilt: 84.30 T: 28.07 V: 4.10 owT: 27.31 Gravity: 30.70
After waiting 0.00 s, result 3
192.168.0.157
UBIDOTS: posting
POST /api/v1.6/devices/iSpindel?token=HTTP/1.1
Host: things.ubidots.com
User-Agent: iSpindel
Connection: close
Content-Type: application/json
Content-Length: 65

{"tilt":84.30,"temperature":27.31,"battery":4.10,"gravity":30.70}HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 17:40:21 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Vary: Accept, Cookie
Allow: POST, OPTIONS

8d
{"battery": [{"status_code": 201}], "tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "gravity": [{"status_code": 201}]}
0

Final-sleep: 15s; RT:3113
rl[00]$艙鸥|[00]艗l脿|[03][0C][0C][0C]艗[04]d盲[04]c|鈥∑抂03]盲[1B]鈥簕鈥檅艗[04]b鈥灻籵g脽lnn艙芒矛[0C]c[1C]x鈥烇拷dsl{dp没g脿[18][03][04][04]茠[0C]l[0C]艗艙[04][04][0C]c[0C]g茫<[03]d盲[0C][0C]鈥鈥灻籵o卯[00]l艗沤d[03]藴[12][13]gn[04]$[03][07][02]gs沤鈥衡簅[0C][0C]c[04]艙[07]l[0F]{鈥欌檊[04][04]c[0C]艙[0F]d艙[03][04][04][04][0C][0C][0C][0C]d`[03]眉鈥歡艙[03]
FW 5.1.2
2.0.0(656edbf)
Worker run!
Boot-Mode: 5
mounting FS... mounted!
reading config file
opened config file

parsed json
applying offsets
parsed config:
{"Name":"iSpindel","Token":"","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":196.43,"SSID":"","PSK":"W","POLY":"-0.00031tilt^2+0.557tilt-14.054","aX":73,"aY":-781,"aZ":883}
woken from deepsleep, normal mode
Spl 0: 86.67
Spl 1: 87.33
Spl 2: 86.15
Spl 3: 87.51
Spl 4: 86.77
Spl 5: 86.33
Spl 6: 86.59

a: -998 16492 -86 absTilt: 86.68 T: 28.39 V: 4.10 owT: 27.25 Gravity: 31.90
After waiting 0.00 s, result 3
192.168.0.157
UBIDOTS: posting
POST /api/v1.6/devices/iSpindel?token=HTTP/1.1
Host: things.ubidots.com
User-Agent: iSpindel
Connection: close
Content-Type: application/json
Content-Length: 65

{"tilt":86.68,"temperature":27.25,"battery":4.10,"gravity":31.90}HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 17:40:35 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Vary: Accept, Cookie
Allow: POST, OPTIONS

8d
{"battery": [{"status_code": 201}], "tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "gravity": [{"status_code": 201}]}
0

Final-sleep: 15s; RT:2420
rl[00]l艙脽|[00]鈥瀕脿|[03][0C][0C][0C]鈥瀃04]d盲[0C]c|鈥∑抂03]盲[1B]鈥簉鈥檆鈥瀃04]c艗没gg啪doo艙芒盲[0C]c[1C]p鈥烇拷$sd{dp没o脿[18][03][0C][04]茠[04]l[0C]艗艙[04][04][04]c[0C]g茫|[03]d盲[04][0C]鈥艗贸no莽[00]l艗沤d[03]锟絒1B][12]g'[04]d[03][0F][02]gs脟鈥溾簅[0C][0C]b[0C]艙[07]l[0F]{鈥衡檊[0C][04]c[04]艙[0E]d艙[03][04][04][04][04][0C][0C][0C]l`[03]眉茠g艙[03]
FW 5.1.2
2.0.0(656edbf)
Worker run!
Boot-Mode: 5
mounting FS... mounted!
reading config file
opened config file

parsed json
applying offsets
parsed config:
{"Name":"iSpindel","Token":"","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":196.43,"SSID":"n","PSK":"","POLY":"-0.00031tilt^2+0.557tilt-14.054","aX":73,"aY":-781,"aZ":883}
woken from deepsleep, normal mode
Spl 0: 81.64
Spl 1: 81.62
Spl 2: 81.59
Spl 3: 81.83
Spl 4: 82.06
Spl 5: 81.67
Spl 6: 82.40

a: -2284 16292 124 absTilt: 81.71 T: 28.68 V: 4.10 owT: 27.25 Gravity: 29.39
After waiting 0.10 s, result 3
192.168.0.157
UBIDOTS: posting
POST /api/v1.6/devices/iSpindel?token=HTTP/1.1
Host: things.ubidots.com
User-Agent: iSpindel
Connection: close
Content-Type: application/json
Content-Length: 65

{"tilt":81.71,"temperature":27.25,"battery":4.10,"gravity":29.39}HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 17:40:53 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Vary: Accept, Cookie
Allow: POST, OPTIONS

8d
{"battery": [{"status_code": 201}], "tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "gravity": [{"status_code": 201}]}
0

Final-sleep: 15s; RT:3242
sl[00]l艙啪|[00]鈥瀕脿|[03][0C][0C][04]鈥瀃04]$矛[0C]c|脟茠[03]盲[1B]脹r鈥渃鈥瀃04]c艗貌gg鸥doo艙茫盲[0C]#[1C]p鈥烇拷l{d{$x贸g脿[10][03][04][0C]鈥歔0C]l[04]鈥炁揫0C][0C][0C]c[04]n茫|[03]l矛[0C][0C]锟絙鈥灻籵g茂[00]d鈥烇拷$[03]藴[13][13]oo[0C]l[03][07][03]n{锟解好沢[0C][04]c[04]艙[0E]l[07]r鈥溾渘[04][0C]#[0C]脺[0F]l艙[03][04][0C][0C][0C][0C][04][04]d`[03]眉茠'艙[03]
FW 5.1.2
2.0.0(656edbf)
Worker run!
Boot-Mode: 5
...

@padrino-xl

This comment has been minimized.

Copy link

padrino-xl commented Jul 5, 2017

Hi,

did you have the time to check the readings I posted?

Right now I have a 350 ohm resistor installed.
When the two pins are wired it seems to work.
What's the smallest resitor I can use without risk? Or should I change to a diode?

Thanks for all your help and the great work here!

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Jul 5, 2017

The only danger is while flashing that the UART and the ESP short circuit. The resistor limits the current and a diode prevents that happening. I would not go under 200, a Schottky though might be best.

@jvels

This comment has been minimized.

Copy link

jvels commented Aug 8, 2017

Hi

I have the same issue, with the ispindle, only 1 upload and then nothings happens :-/

Would it help if remove my 470 ohm resistor and replaced with the following diode: https://www.reichelt.de/BA-BAY-BB-Dioden/BAT-43/3/index.html?ACTION=3&LA=446&ARTICLE=4851&GROUPID=2988&artnr=BAT+43&SEARCH=BAT43%2BSchottky%2BDiode

Or are i'm misunderstand the conclusions from above?

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Aug 8, 2017

Post your terminal output here.

@jvels

This comment has been minimized.

Copy link

jvels commented Aug 9, 2017

Hi

First i go to config mode, and setup, and then I get one result and then noting:

FW 5.2.1
2.0.0(656edbf)
Worker run!
Boot-Mode: 6
power-cycle or reset detected, config mode
mounting FS... mounted!
reading config file
opened config file

parsed json
applying offsets
parsed config:
{"Name":"velsdk","Token":"MY_TOKEN","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":191.800003,"SSID":"G12A","PSK":"MY_WIFI","POLY":"-0.00031tilt^2+0.557tilt-14.054","aX":429,"aY":-21,"aZ":3016}...........
ERROR no Wifi credentials

going to Config Mode

FW 5.2.1
2.0.0(656edbf)
Worker run!
Boot-Mode: 5

Double Reset detected
mounting FS... mounted!
reading config file
opened config file

parsed json
applying offsets
parsed config:
{"Name":"velsdk","Token":"MY_TOKEN","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":191.800003,"SSID":"G12A","PSK":"MY_WIFI","POLY":"-0.00031tilt^2+0.557tilt-14.054","aX":429,"aY":-21,"aZ":3016}...........
ERROR no Wifi credentials

going to Config Mode
*WM: Scan done
*WM: Adding parameter
*WM: name
*WM: Adding parameter
*WM: sleep
*WM: Adding parameter
*WM: vfact
*WM: Adding parameter
*WM:
*WM: Adding parameter
*WM:
*WM: Adding parameter
*WM: selAPI
*WM: Adding parameter
*WM: token
*WM: Adding parameter
*WM: server
*WM: Adding parameter
*WM: port
*WM: Adding parameter
*WM: url
*WM: Adding parameter
*WM:
*WM: Adding parameter
*WM: POLYN
started Portal
*WM: SET AP
*WM:
*WM: Configuring access point...
*WM: iSpindel
*WM: AP IP address:
*WM: 192.168.4.1
*WM: HTTP server started
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Handle root
*WM: G12A
*WM: -79
*WM: Sent config page
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: WiFi save
*WM: Parameter
*WM: name
*WM: velsdk001
*WM: Parameter
*WM: sleep
*WM: 15
*WM: Parameter
*WM: vfact
*WM: 191.80
*WM: Parameter
*WM:
*WM:
*WM: Parameter
*WM:
*WM:
*WM: Parameter
*WM: selAPI
*WM: 0
*WM: Parameter
*WM: token
*WM: MY_TOKEN
*WM: Parameter
*WM: server
*WM:
*WM: Parameter
*WM: port
*WM: 80
*WM: Parameter
*WM: url
*WM:
*WM: Parameter
*WM:
*WM:
*WM: Parameter
WM: POLYN
WM: -0.00031tilt^2+0.557
tilt-14.054
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting wifi with new parameters...
*WM: previous settings invalidated
*WM: After waiting...
*WM: 6.00
*WM: seconds
WM: Connection result:
WM: WL_CONNECTED
saving config...{"Name":"velsdk001","Token":"MY_TOKEN","Sleep":15,"Server":"","API":0,"Port":80,"URL":"","Vfact":191.800003,"SSID":"G12A","PSK":"MY_WIFI","POLY":"-0.00031
tilt^2+0.557
tilt-14.054","aX":429,"aY":-21,"aZ":3016}saved successfully
Spl 0: 63.99
Spl 1: 63.96
Spl 2: 63.92
Spl 3: 63.92
Spl 4: 63.95
Spl 5: 63.90
Spl 6: 63.96

a: 2008 1714 -6 absTilt: 63.94 T: 32.75 V: 4.00 owT: 29.87 Gravity: 20.30
After waiting 0.00 s, result 3
192.168.1.44
UBIDOTS: posting
POST /api/v1.6/devices/velsdk001?token=MY_TOKEN HTTP/1.1
Host: things.ubidots.com
User-Agent: velsdk001
Connection: close
Content-Type: application/json
Content-Length: 77

{"tilt":63.94392,"temperature":29.875,"battery":4.004171,"gravity":20.295227}HTTP/1.1 200 OK
Server: nginx
Date: Wed, 09 Aug 2017 14:09:19 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Vary: Cookie
Allow: POST, OPTIONS

8d
{"battery": [{"status_code": 201}], "tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "gravity": [{"status_code": 201}]}
0

Final-sleep: 1s; RT:119154

@bralexc

This comment has been minimized.

Copy link

bralexc commented Aug 9, 2017

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Aug 9, 2017

So the last line is important,is there no further output?
If really so, then you have actually no connection between D0 and RST, not even over resistor! Well in this case the diode would help obviously 馃槈

@jvels

This comment has been minimized.

Copy link

jvels commented Aug 9, 2017

Hi

I use this circuit: https://pcbs.io/share/8gbKR

2017-08-09 20 11 41
2017-08-09 20 28 37

So there should be a resistor?

And there are no more output after "Final-sleep: 1s; RT:119154"

EDIT: I'm sorry, I have mixed two of the resistors, now I have been running in ~9 Hours.
/Jesper

@universam1

This comment has been minimized.

Copy link
Owner

universam1 commented Aug 16, 2017

solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.