|
Forum Index : Microcontroller and PC projects : Wi-fi with Micromite
| Author | Message | ||||
Herry![]() Senior Member Joined: 31/05/2014 Location: AustraliaPosts: 261 |
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: AustraliaPosts: 1044 |
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 Gerry F4 H7FotSF4xGT |
||||
Herry![]() Senior Member Joined: 31/05/2014 Location: AustraliaPosts: 261 |
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 ZealandPosts: 9754 |
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. Smoke makes things work. When the smoke gets out, it stops! |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1044 |
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: AustraliaPosts: 1044 |
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 F4 H7FotSF4xGT |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3470 |
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 ZealandPosts: 9754 |
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: AustraliaPosts: 1013 |
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 |
||||
| lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
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 ESP |
||||
Herry![]() Senior Member Joined: 31/05/2014 Location: AustraliaPosts: 261 |
Glad I'm not alone Grogster! Senior?! Whatever it says, I'm a complete and utter beginner... |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |