BASIC for ESP8266

srnet

Senior Member
Very cool, and interesting.

No doubt the Computer Language Stasi will object to the very idea ................
 

julianE

Senior Member
Thanks mrburnette, loaded an ESP8266 with BASIC, a little confusing but it worked. The 512 byte option is not there, used 1M and it worked fine. A little slow. I wonder if BASIC programming can be done through the serial cable or if the web interface is the only option. I did get it to work through my router so I can have internet connectivity and access to the ESP8266. I have yet to figure out how to save a program.

I think this is bleeding edge software and hope it only improves with time.
 

tony_g

Senior Member
oh that is a great find ray, i still have 2 of the esp03 modules to tinker with and the whole thought of having to try and understand lua ect or stick with AT commands and scripts has kind of pushed it down the "list" for a while but this is worth taking a look and maybe bumping that project up a few places lol


thanks for sharing this.


tony
 

Goeytex

Senior Member
Amazing what you can get nowadays for less than $10. On Ebay, I see a "shielded" ESP12, with FCC ID and 25dBm PA for < $6 with free shipping from a USA supplier. Absolutely amazing.

This Basic language option should be quite attractive for beginners/hobbyists. It may also be attractive to those of us that use "C" and other "Stasi approved" languages when necessary, but still appreciate the simplicity and power of a well structured Basic program that gets the job done.

The Computer Language Stasi and fanboys can take a hike. I pay no attention to them anyway.
 

tony_g

Senior Member
i have learned to love the basic language after playing with it and laugh at the fanboys who are too quick to scoff at anything less than C/C++.

i did have a go at trying to flash my esp modules last night with the basic firmware but what a supprise both modules wont even connect to the uart, had to call it quits at 4am, their seems to be far too many inconsistencies for pinouts required for the same board that i could see trawling around for helpfull info but hopefully i can get to play with mine and some basic sometime soon lol



tony
 

mariolatronico

New Member
18M2 + ESP8266-01 basic

Buon giorno a tutti,
approfitto per condividere il mio soddisfacente test di connessione tra ESP8266-01 e PICAXE 18M2.
un PICAXE 18M2 aggiorna la pagina web ospitata su ESP8266,
i dati aggiornati sono: alcune linee colorate, temperatura misurata dal DS18B20 e lo stato delle uscite GPIO 0 e 2 dell'ESP.


Goodmorning everyone,
I take this opportunity to share my satisfactory connection test between ESP8266-01 and PICAXE 18m2.
a 18m2 PICAXE updates the web page hosted on ESP8266,
updated data are: some colorful lines, measured temperature from DS18B20 and the state of GPIO outputs 0 and 2 ESP.



il modulo ESP8266-01 è stato programmato prima con firmware BASIC (vedi: http://www.esp8266basic.com/download.html).
Successivamente, nella pagina di edit on line dell'ESP, è stato editato il listato annesso denominato "ESP-cod.txt",
il PICAXE 18M2 è stato programmato con il codice annesso denominato "18M2-cod.bas".
Lo schema di collegamento tra 18M2 ed ESP è riportato nello stesso codice.
ATTENZIONE, IL TUTTO DEVE ESSERE ALIMENTATO A 3,3V ALTRIMENTI L'ESP BRUCIA!



ESP8266-01 the module has been programmed before with BASIC firmware (see: http://www.esp8266basic.com/download.html).
Afterwards, in the edit page, the ESP on line, it edited the attached list named "ESP-cod.txt"
the PICAXE 18m2 has been programmed with the attached code named "18m2-cod.bas".
The connection diagram between 18m2 and ESP is shown in the same code.
CAUTION, EVERYTHING MUST BE POWERED 3.3V OTHERWISE ESP BURNING!


Saluti

Questo codice gira bene con firmware ESP Basic 1.88 ma non gira con firmware ESP Basic 2.0.Alpha 1


This code runs fine with firmware ESP Basic 1.88 but does not run with ESP Basic 2.0.Alpha 1
 

Attachments

Last edited:

Janne

Senior Member
Ahaa so this is the thread where all the basic language fanboys are ;)

I've also been tinkering with the platform for a while. I've tried a few of the different firmware options, but currently I most like the LUA version(NodeMCU). What's great in it is that it has an interactive interpreter, so it's quick to test new hacks simply on the repl console. As in, type a command to the console, the interpreter processes it and sends the resusult back.
The first versions I tried back in last fall were quite buggy, especially the networking would hang pretty often. But recent versions seem so far pretty good.
There is also a http server based repl available, seems quite handy so far. Not very secure though :D, maybe one could add a note in the http page that hackers should not try to break it. https://github.com/juho-p/nodemcu-repl-server
 
Top