Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:36 02 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM Frozen

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 11:21am 15 Apr 2016
Copy link to clipboard 
Print this post

Hi all,

After finally getting the Wifi bridge to my MM working, the Micromite has has frozen for the first two few times.

Left it all running overnight, status updating in the MMChat terminal during the evening, everything looked fine.

This morning things were dead.

Walked outside & found the display frozen at 2:10am.
Reset it & time jumped to 5:53am, & it was reporting temperatures fine.
No connection in MMChat or TeraTerm though.

I could access ESP-Link in my browser, so the link was up, then discovered the baud rate I'd changed in there had reverted from 38400 back to 115200.

Changed it & still not data, but I appear to have some sort of command prompt ">", but not the MM's & not one that replies to AT, but does return error messages if I typed junk.

Outside again & I find the MM has again frozen, this time showing 5:57am, less than 5 minutes after I rebooted it.

Rebooted it again & currently at 6:50am, 45 minutes later all is still running fine.

Only other variable is it was reporting 10°C, so it's one of the lowest overnight temperatures we've had.

First crashes of this nature I've experienced & wondering what people might suggest is happening.

Current config:-

Powered by a 500mA 5.0V phone charger, definitely not 5.1 or 5.2 like some others.
5 DS18B20's all on one pin, but only reading 3 at this point.
DS3231 RTC running off the 3.3V rail.
ESP8266 also running off the 3.3V rail.


So couple of questions:-

1.- Is the power supply from the MM adequate (3.3v) for the ESP8266
2.- Should the Baud rate of the Esp-Link saved when changed.
3.- Is there any issue with just setting the MM to 115200 baud?
Presume that should work fine with both the FTDI & CP2102 serial interfaces?

Thanks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 12:34pm 15 Apr 2016
Copy link to clipboard 
Print this post

Not related to your current issue but don't leave MMChat running overnight.
If you are looking for long term use, stick to TeraTerm.

MMChat may eventually hang (depending on data rates).

Jim
VK7JH
MMedit
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 01:22pm 15 Apr 2016
Copy link to clipboard 
Print this post

Phill23,

There is no doubt that the current draw from the ESP8266 can be high when it starts transmitting, I have had issues where the uMite has been caused to reset with this combination.

I have found that placing a capacitor of say 220uF on the supply rail to the ESP8266 completely solved this situation.
The supply you have should be quite OK for your setup, I have the ESP (with the extra Cap) running from the MCP1700 3.3v regulator with no issues.

The ESP-Link software I have found to be rock solid used in this way as a remote connection.

MikeEdited by MikeO 2016-04-16
Codenquilts
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 01:23am 16 Apr 2016
Copy link to clipboard 
Print this post

Last freeze was at about 7:20am this morning.
It was still only about 12° then/
It's been stable for over 12 hours now, but it has come back inside where its around 23°.

Seems like it's a temperature related issue.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9585
Posted: 01:34am 16 Apr 2016
Copy link to clipboard 
Print this post

RF modules like the 8266, I prefer to feed from their own dedicated regulator, and NOT the MCU power supply. Any dip or nasty on the MCU power, and I would completely expect the PIC32 core to restart or otherwise hang.

...this is also where supervisory IC's on MCLR come in very useful, as they will prevent most of these kinds of brown-out MCU core hanging...(not all, sure, but a good proportion of them will be stopped by a supervisory IC).

Having said that, I don't have the 8266 nor know anything much about it at all, so I might need to do some more reading. However, in my boards that use RF modules that are expected to suck anything more then about 50mA from the 3v3 rail, I feed them from their own dedicated regulator, which is totally seperate from the MCU 3v3 supply, and has it's own set of regulator caps too.

EDIT: UNLESS the 3v3 rail regulator is capable of a good amp or two.

My 2c only.

I will have a look at the 8266 module now, as I see it being mentioned around the forums, but I don't even know what the hell it is, really! Edited by Grogster 2016-04-17
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4032
Posted: 02:30am 16 Apr 2016
Copy link to clipboard 
Print this post

The main thing about the ESP8266 is its (peak) current usage.

When I used a weedy supply it didn't work properly at all.

Might not be the problem but worth checking.

John
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 11:57am 20 Apr 2016
Copy link to clipboard 
Print this post

Things have been quite stable for quite a number of days now, so I'm wondering if the low overnight temperature was the cause of the freezes.

Can anyone provide feedback on issues or lack there of when the MicroMite is operating at lower temperatures?

Cheers

Phil
 
isochronic
Guru

Joined: 21/01/2012
Location: Australia
Posts: 689
Posted: 12:03pm 20 Apr 2016
Copy link to clipboard 
Print this post

Is there electric heating switching on and off ?
It may cause noise/spikes
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 02:02pm 20 Apr 2016
Copy link to clipboard 
Print this post

  chronic said   Is there electric heating switching on and off ?
It may cause noise/spikes


Don't think so.

It was last Satureday morning I had the issues.
Multiple freezes until the day warmed up a bit.
It was our first cold overnight low. and I'd left the unit outside in the Bbq area overnight.

My weather station shows it got down to 10°C overnight, and it appeared stable again, at around 7:30-8:00am, when the temperature had risen to above 12°C.

The plug pack was plugged into a 15amp outlet - nothing else on that circuit.

Cheers.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 06:04pm 20 Apr 2016
Copy link to clipboard 
Print this post

10°C is not cold.
The mites run happily at temperatures well below that.
The usual culprit is the capacitor on pins 19/20

Jim
VK7JH
MMedit
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025