$5 WiFi module
I've seen an NTP example but don't recall just where - I may have bookmarked it. Also, the friend who alerted me to this module referred to a LUA script that gets the time from Google which is apparently much simpler and faster. I'll try to locate that reference as well..
Here's the Google time link.
https://geonomad.wordpress.com/2015/01/ ... n-esp8266/
And here's the NTP code.
https://github.com/shantanugoel/esp8266 ... user/ntp.c
Here's the Google time link.
https://geonomad.wordpress.com/2015/01/ ... n-esp8266/
And here's the NTP code.
https://github.com/shantanugoel/esp8266 ... user/ntp.c
Olimex has an ESP8266 version that allows access to more features.
https://www.openhomeautomation.net/gett ... d-esp8266/
https://www.openhomeautomation.net/gett ... d-esp8266/
This page seems to have a slightly different set of AT commands as well as a few examples.
https://github.com/espressif/esp8266_at ... 0020000903
https://github.com/espressif/esp8266_at ... 0020000903
I bought another of the ESP8266 devices and installed the NodeMcu lua scripting interface on it. So far, it appears to be more stable than the AT command interface.
With the lua interface, you can store multiple scripts on the device's serial Flash memory using a file metaphor and then cause the scripts to be executed via serial commands. See the link below for more information:
http://nodemcu.com/index_en.html#fr_547 ... 1a3600000f
With the lua interface, you can store multiple scripts on the device's serial Flash memory using a file metaphor and then cause the scripts to be executed via serial commands. See the link below for more information:
http://nodemcu.com/index_en.html#fr_547 ... 1a3600000f
- Don Kinzer
It's interesting that you mention that because I had thought about it briefly earlier this week. The current ZBasic VM is implemented largely in assembly language but the earliest implementations were mostly in C. I suspect that it would be possible to implement something similar to the NodeMcu lua interface based on the ZBasic VM but I don't have any understanding of how difficult it would be to do.dlh wrote:What are the chances for a ZBasic VM for the ESP8266?
- Don Kinzer
The friend who alerted me to the ESP8266, on the PicBasicPro forum, also told me about lua. He was impressed with it but would also prefer a Basic dialect. I've yet to play with lua but suspect you'll find a lot of interest if you can tap the potential of the ExpressIf chip using a ZBasic VM. You can find the modules for $3 (or less) on EBay & AliExpress
http://www.aliexpress.com/premium/esp82 ... =y&catId=0
There are two open source branches of lua for the ESP8266. Might their source point you in the right direction?
http://www.esp8266.com/wiki/doku.php?id=lua
These links may be helpful regarding compiling C for the ESP8266.
https://www.youtube.com/watch?v=pWo-ErpVZC4
http://www.esp8266.com/viewtopic.php?f=5&t=744
If you are able to accomplish a VM, it might be best to use this 16-pin ESP8266 version...
http://www.aliexpress.com/item/ESP8266- ... 99719.html
or this 26 pin version...
http://www.aliexpress.com/item/1pcs-New ... 18137.html
Even the 32-pin ExpressIf IC is available.
http://www.aliexpress.com/item/Free-shi ... 89807.html
http://www.aliexpress.com/item/ESP8266- ... 62058.html
May the source be with you.
http://www.aliexpress.com/premium/esp82 ... =y&catId=0
There are two open source branches of lua for the ESP8266. Might their source point you in the right direction?
http://www.esp8266.com/wiki/doku.php?id=lua
These links may be helpful regarding compiling C for the ESP8266.
https://www.youtube.com/watch?v=pWo-ErpVZC4
http://www.esp8266.com/viewtopic.php?f=5&t=744
If you are able to accomplish a VM, it might be best to use this 16-pin ESP8266 version...
http://www.aliexpress.com/item/ESP8266- ... 99719.html
or this 26 pin version...
http://www.aliexpress.com/item/1pcs-New ... 18137.html
Even the 32-pin ExpressIf IC is available.
http://www.aliexpress.com/item/Free-shi ... 89807.html
http://www.aliexpress.com/item/ESP8266- ... 62058.html
May the source be with you.
Last edited by dlh on 28 March 2015, 19:26 PM, edited 3 times in total.
$5 WiFi module
I certainly would be interested. Not having to use another processor chip to talk to the ESP8266 would be cheaper and easier.
I'm also not sure how difficult it would be. I'd be happy with just a single task version of Zbasic (maybe two tasks, the Wi-Fi part and in/out queues would need to run in the background). You could start with a simple less featured version to see how much demand there would be. Don't worry about Basicx compatibility.
Tom W
On 3/28/2015 1:17 PM, General wrote:
I'm also not sure how difficult it would be. I'd be happy with just a single task version of Zbasic (maybe two tasks, the Wi-Fi part and in/out queues would need to run in the background). You could start with a simple less featured version to see how much demand there would be. Don't worry about Basicx compatibility.
Tom W
On 3/28/2015 1:17 PM, General wrote:
The friend who alerted me to the ESP8266, on the PicBasicPro forum, also told me about LUA. He was impressed with it but would also like a Basic dialect. I've yet to play with LUA but suspect you'll find a lot of interest if you can tap the potential of the ExpressIf chip using a ZBasic VM.
davehouston.org
Here are some of the various ESP8266 models.
http://i2.wp.com/randomnerdtutorials.co ... =600%2C337
I see a lot of people asking on the web whether they can use it to wirelessly program an Arduino while it looks to me that, aside from having only one ADC input, it can probably replace the Arduino in many scenarios.
http://www.aliexpress.com/item/1pcs-New ... 18137.html
http://smarpl.com/content/esp8266-esp-2 ... mpressions
https://github.com/esp8266/esp8266-wiki ... definition
http://i2.wp.com/randomnerdtutorials.co ... =600%2C337
I see a lot of people asking on the web whether they can use it to wirelessly program an Arduino while it looks to me that, aside from having only one ADC input, it can probably replace the Arduino in many scenarios.
http://www.aliexpress.com/item/1pcs-New ... 18137.html
http://smarpl.com/content/esp8266-esp-2 ... mpressions
https://github.com/esp8266/esp8266-wiki ... definition
This looks like a good development board for the ESP8266. It brings out all the pins, fits a breadboard and has an onboard USB-Serial converter plus it's powered from the USB connector.
http://www.ebay.com/itm/Good-Lua-Nodemc ... 1634076716
You can find it from a US vendor for a couple of dollars more.
http://www.ebay.com/itm/ESP8266-ESP-12- ... 7503&rt=nc
Finding any instructions seems a rather difficult undertaking.
This Wikipedia page is hard to follow because of its rough English but it seems to imply the development board comes with Lua preinstalled.
http://en.wikipedia.org/wiki/NodeMCU
http://www.ebay.com/itm/Good-Lua-Nodemc ... 1634076716
You can find it from a US vendor for a couple of dollars more.
http://www.ebay.com/itm/ESP8266-ESP-12- ... 7503&rt=nc
Finding any instructions seems a rather difficult undertaking.
This Wikipedia page is hard to follow because of its rough English but it seems to imply the development board comes with Lua preinstalled.
http://en.wikipedia.org/wiki/NodeMCU
Atmel now has a similar WiFi module although at a significantly higher price - ~$18
http://www.atmel.com/devices/atwinc1500 ... =documents
http://www.atmel.com/devices/atwinc1500 ... =documents
$5 WiFi module
Hi Dave,
Have you had a chance to compare them yet? I'd like to hear your thoughts on each of them.
Tom W
On 4/26/2015 9:36 AM, General wrote:
Have you had a chance to compare them yet? I'd like to hear your thoughts on each of them.
Tom W
On 4/26/2015 9:36 AM, General wrote:
Atmel now has a similar WiFi module although at a significantly higher price. (~$18)
http://www.atmel.com/devices/atwinc1500.aspx?tab=documents
davehouston.org
Re: $5 WiFi module
Tom,twesthoff wrote: Have you had a chance to compare them yet? I'd like to hear your thoughts on each of them.
I haven't dug deeply.
If all you want is WiFi-Serial, both do that but the ESP8266 can do more, depending on just which of several models you choose. It's hard to beat this $10 ESP2866 development board.
http://www.ebay.com/itm/Good-Lua-Nodemc ... 1634076716
Atmel has also just introduced a Bluetooth-to-Serial module but I cannot find anything about it other than a press release. Apparently, it can be piggybacked on the WiFi module, sharing a UART.
Wen Shing has both WiFi and Bluetooth modules.
http://www.wenshing.com.tw/Products/RF_ ... th_Module/
The Bluetooth modules target things like mice & keyboards and have an HID interface.
The WiFi modules have UARTs plus several GPIO pins and have an AT Command protocol.
I have no idea about prices but they tend to only deal with volume purchasers. I bought RF transmitters & receivers from them several years ago (BX24-AHT days) and the quality was outstanding.
http://www.wenshing.com.tw/Products/RF_ ... th_Module/
The Bluetooth modules target things like mice & keyboards and have an HID interface.
The WiFi modules have UARTs plus several GPIO pins and have an AT Command protocol.
I have no idea about prices but they tend to only deal with volume purchasers. I bought RF transmitters & receivers from them several years ago (BX24-AHT days) and the quality was outstanding.
ESP8266
Don - I am getting ready to try out your new ZBasic for the ESP8266. I am having difficulty figuring out how to connect my module to the computer to work properly. I have the ESP-01 module. I do not have a schematic, but this is the connector pinouts that were given:
1. GND - ground
2. UTXD - serial transmit (idle high)
3. URXD - serial receive (idle high)
4. VCC - 3.3VDC
5. CH_PD - must pull high or just connect to VCC
6. RST - must pull high or just connect to VCC
7. GPIO0 - must pull high or just connect to VCC
8. GPIO2 - must pull high or just connect to VCC
Pins 1-4 are self explanatory, how should I connect the other pins?
My goal is to get one of your simple examples working first.
Thanks-
Tom
1. GND - ground
2. UTXD - serial transmit (idle high)
3. URXD - serial receive (idle high)
4. VCC - 3.3VDC
5. CH_PD - must pull high or just connect to VCC
6. RST - must pull high or just connect to VCC
7. GPIO0 - must pull high or just connect to VCC
8. GPIO2 - must pull high or just connect to VCC
Pins 1-4 are self explanatory, how should I connect the other pins?
My goal is to get one of your simple examples working first.
Thanks-
Tom