Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:54 12 Nov 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 : Wi-fi with Micromite

Author Message
Herry

Senior Member

Joined: 31/05/2014
Location: Australia
Posts: 261
Posted: 11:16pm 26 Jan 2019
Copy link to clipboard 
Print this post

Back after a long absence. I would like to use my Micromite with a WiFi router to read eg temperature and transmit it across the internet. So far I realise that I need the IP of the router. The rest is a blank so far. Anyone brave enough to get me started?
Senior?!  Whatever it says, I'm a complete and utter beginner...
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 12:42am 27 Jan 2019
Copy link to clipboard 
Print this post

Using an ESP8266 via a serial port is being used successfully by several members here.
The ESP8266 does all the wifi stuff.

You can use AT commands to the ESP8266 with the software it comes with or flash it with ESPBasic. @mikeO has several posts of this.
The MMBasic asks the ESPBasic(ESP8266) via the serial port to do any internet tasks, the results coming via the serial port. @mikeO has a good set of functions written.

mikeo post

I have been using it for a temperature and tank level monitor for over a year now.

One modification I still need to make is to allow the MMBasic to hard reset the ESP8266 (ESPBasic) when it looses network connectivity. Currently after a power outage the ESP8266 comes up before the router and does not connect.
I would also use COM1 to talk to ESP8266 as COM2 is limited to 19.2K I found out after I built it, so limits the speed I can talk to the ESPBasic.

Regards
GerryEdited by disco4now 2019-01-28
F4 H7FotSF4xGT
 
Herry

Senior Member

Joined: 31/05/2014
Location: Australia
Posts: 261
Posted: 12:49am 27 Jan 2019
Copy link to clipboard 
Print this post

Thanks. Looking at the ESP8266. Very cheap on Ebay! I take it I need to know the IP of the router? Also, if accessing over the internet (for my son, who already has cameras connected through his wifi router at his remote farm), how to enable him to select either the Micromite or his existing camera? Thinking of using cheap temp and humidity sensor. Need to refresh my memory. Doesn't that module need serial as well, or could I have two serials?

Cheers

Senior?!  Whatever it says, I'm a complete and utter beginner...
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9754
Posted: 01:03am 27 Jan 2019
Copy link to clipboard 
Print this post

Don't you have to reflash the 8266 with a new firmware?
I seem to recall you do.
If I have that right, can someone link me to a thread where that happens, so I can research this little module?

EDIT: There seems to be several versions of this module. Can someone link me to the one that the members here are using, so I can research the correct device.Edited by Grogster 2019-01-28
Smoke makes things work. When the smoke gets out, it stops!
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 01:08am 27 Jan 2019
Copy link to clipboard 
Print this post

The ESP8266 has a serial port, which is connected to a serial port on the MicroMite.

To get the temperature from a remote location you could
a) Call in and read it. (You could just use ESP8266 and ESPBasic but probably more robust with Micromite + ESP8666)
b) Have it sent to ThingsSpeak and read it from there. Then you don't need to know router address. This is what I do with my tank levels.
F4 H7FotSF4xGT
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 01:30am 27 Jan 2019
Copy link to clipboard 
Print this post

There is an ESPBasic forum with many details.

ESPBasic Flashing

You just need and ESP-01 module, but with 1Meg flash. Some have only 512K.

The black ones are usually 1 Meg. Watch out for 4M advertising which is actually 512K * 8 bits.

These are the 1Meg * 8bits ones.
banggood

You can probably find them cheaper.

You can also flash these as a wifi serial connection. I have all my mites connected this way so no wires and no shortage of com ports.

wifi serial connection Edited by disco4now 2019-01-28
F4 H7FotSF4xGT
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3470
Posted: 01:59am 27 Jan 2019
Copy link to clipboard 
Print this post

The ESP8266 does not need to be reflashed to work out of the box with AT commands. You can hook it up to a usb/serial port on your PC for testing, and set your router connections. Baud rate for the ones I bought here most recently was 115200. AT+CIPSTA? looked for router SSID.

As I recall, you do not need to know the router's IP address. When you connect with SSID and password, you will be assigned an appropriate IP.

Here's a matherp post about esp8266:
https://www.thebackshed.com/forum/forum_posts.asp?TID=9115

You are likely to find more on the forum by searching for ESP-01 than for ESP8266 (although the ESP-01 is not the only module which you can use).


PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9754
Posted: 03:43am 27 Jan 2019
Copy link to clipboard 
Print this post

Thanks, chums. I remember the forums talking about this thing before, but I did not want WiFi at the time. Now, I do, and these things are so cheap, I feel as though I should have a tinker with one or two. This thread just reminded me about that. Thanks, Herry.
Smoke makes things work. When the smoke gets out, it stops!
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1013
Posted: 06:58am 27 Jan 2019
Copy link to clipboard 
Print this post

disco4now, is there a difference with these 8266 units?
ESP+USB I/F

If I read it right you get both the 8266 and the usb-serial I/f for less than $4.

OA47Edited by OA47 2019-01-28
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 08:16am 27 Jan 2019
Copy link to clipboard 
Print this post

  OA47 said   disco4now, is there a difference with these 8266 units?
ESP+USB I/F

If I read it right you get both the 8266 and the usb-serial I/f for less than $4.

OA47


That is an ESP266-01 complete with a USB serial adaptor which is used to mainly write different firmware such as ESPBasic or Arduino to the chip instead of using AT commands
I have one and it works great, simply plug it into a usb port and write to/read from the ESPEdited by lew247 2019-01-28
 
Herry

Senior Member

Joined: 31/05/2014
Location: Australia
Posts: 261
Posted: 10:43am 27 Jan 2019
Copy link to clipboard 
Print this post

  Quote   I feel as though I should have a tinker with one or two. This thread just reminded me about that. Thanks, Herry.


Glad I'm not alone Grogster!
Senior?!  Whatever it says, I'm a complete and utter beginner...
 
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