Looks like there is an ADC pin on the board. Ok, something really simple - measure one voltage and upload it somewhere on the internet? Xively or anywhere really. Once you have real world data on the internet, then you can manipulate it, other nodes can read it etc.
Right now I have an arduino reading a voltage and talking to a usb to serial port, talking to a laptop talking to the internet. It crashes once a week and I have no idea why. There has *got* to be a cheaper way that uses less power - you might have just found it!
Oh, yes, a wirelessly programmable propeller. Hmm - need to go back to the original source code in the obex from ?2006 which has the details of how the downloader protocol works.
So my old esp-12 modules are already obsolete? But I only just got them..!
I should be able to network my Altair Clone with the old version anyway I hope.
ThingSpeak?
Seems to be easy... I'm 100% new to this topic and after some searching for NodeMCU and ThingSpeak and some minutes of shameless ctrl-c and ctrl-v from https://github.com/ok1cdj/ESP8266-LUA:
This fragment assumes the node already having WiFi up and running...
My ESP-12e modules arrived Friday! This weekend I installed the SDK, I have to wire up an ESP-01 prototyping board, with a TTL-USB adapter (or PropPlug) and load Lua.
I am still waiting for:
- ESP-12 style 2mm-2.54mm dip adapter pcb's I ordered.... I hope they arrive soon.
- some ESP-07's, the external antennas I ordered for them have already arrived
Weakened just now and bought one of the larger esp8266 modules with a USB socket and lots of I/O pins.
The best way to develop is on the larger board, save the smaller ones for applications. Unless you happen to use all of that GPIO, then you'll need it!
Weakened just now and bought one of the larger esp8266 modules with a USB socket and lots of I/O pins.
I've had some ESP-01, -02, -05 and Olimex-ish 8266ers on my table for months but the real fun started when I got the 1st NodeMCU-Dev-Board (version 0.9)...
The only drawback: There's only one UART and it is needed for the USB connection...
I'm trying to get used to working over Telnet with NodeMCU and when I feel safe enough with it, I'll try to connect an ESP-07/-12/-12e directly to a Propeller...
(yeti@aurora:1)/home/tmp/nodemcu$ telnet nodemcu0
Trying 192.168.2.105...
Connected to nodemcu0.
Escape character is '^]'.
Welcome to NodeMcu world.
stdin:1: unexpected symbol near '
> -- this error does not show when using "nc nodemcu 23" instead of telnet
> =node.heap()
14920
> _
...or...
(yeti@aurora:4)/home/tmp/nodemcu$ nc nodemcu0 23
Welcome to NodeMcu world.
> for n,s in pairs(file.list()) do print(string.format("%7d %s",s,n)) end
88 init.lua
1012 thingspeak.lc
369 ircclient.lua
228 init-sta.lc
300 telnetd.lua
128 init.lc
652 ircclient.lc
590 thingspeak.lua
680 telnetd.lc
97 init-sta.lua
> _
Another thing on my ever growing to do list is merging web and telnet access because NodeMCU does not allow two servers at once... but 1st some more Lua practice is definitely needed.
ESP Boot Modes
The Espressif code can boot in different modes, selected on power-up based on GPIO pin levels. (MTDO is equivalent to GPIO15).
MTDO GPIO0 GPIO2 Mode Description
L L H UART Download code from UART
L H H Flash Boot from SPI Flash
H x x SDIO Boot from SD-card
In the bootup message 'boot mode:(x,y)' three low bits of x are {MTDO, GPIO0, GPIO2}.
To flash a ESP-04
Put your ESP-04 into programming mode by applying power while GPIO is held low with a 1k resistor.
GPIO15 must be tied low for both normal operation and programming. (I use a 1k resistor)
CH_PD must also be tied high, again I use a 1k resistor.
YOU CAN USE A PROP-PLUG for TX-RX-GND (instead of the CH34OCG) https://www.parallax.com/product/32201
No antenna is needed if you are within 10feet of your wifi.
Reset doesn’t need to get wired if you just power cycle the unit after making GPIO0 low for programming.
GPIO0 can be allowed high after the unit has booted (1second or so)
So I wire a momentary button to reset.
And another button to GPIO0, this allows me to hold the GPIO0 button down while pressing reset.
This puts the unit into programming mode once reset button is released while still holding the GPIO0 button on (low)
If you have a LED wired to the units GPIO13, the LED will be lit DIM while IN programming mode.
In regular booting, GPIO13 led is not on, unless your program turns it on.
You will see the flasher either start to upload data, or give you a com port error.
Make sure you configure flasher for the right serial port.
You can use a standard FTDI usb com port adapter, TX and RX and ground are the only things needed.
DO NOT power this unit using the FTDI usb power line, people have had problems with the usb hub providing enough current.
THIS UNIT IS 3.3v ONLY. DO NOT CONNECT ANY 5v DEVICE TO IT. Use a 1A 3.3v power supply. (it seems the TX line of a Ftdi device is 5v, perhaps you should use 2k resistor in series?.)
This is the microcenter.com device ESP04 $6.95
a.k.a. ai-thinker.com
This one as no antenna, smt board without dip spacing, no reset pin or gpio16 side pads.
***EVERYONE WHO HAS A ESP8266 would benefit from a full .bin flash, due to the updating of internal wifi code that only gets updated with this bin file complied from the sources in linux ( freely available)
I did some things... here...
Once you update the firmware with the latest, you can then reprogram the unit using sketch.
IF you program using sketch, the AT command interface is wiped. You will need to reprogram the firmware to get it back. The sketch program doesn’t overwrite all the code in this chip, only the main program code, other code that runs the wifi stack is untouched by the sketch upload. Those firmware areas are only updated by the bin files from the ESP-8266 manufacturers SDK.
These kind of things complete make this forum useless due to the bloat and total confusion that these VOTES also do.
Talented guys who expect logic, will never go with that.
There is no order to this voting madness, and ARE YOU KIDDING ME?
Plus if you act now content producers (like the nice picture and link and info filled content) won't do this anymore, due to a lack of conversation flow.
I guess its time to switch to C? And move along, nothing to see here?
This forum made the prop, and currently, its completely breaking it now.
And can't delete your own posts? And no way to edit attachments? <---- 2 REALLY BIG ISSUES
It feels like a circus came to town and set up shop in you're backyard.
Time to move? I kinda like the prop, spin and all. But i suppose it may be time to move along. (which is perhaps the true point to these forum changes, or if its not, its the result for many technical people who desire order in converations and discussion lists. (a.k.a forum, not chaos thru popularity.)
See I forgot to attach the image and now I can't edit it to add an attachment or delete the post.
My look into the esp8266 device, and im quite impressed.
Looking at code, if we can get PROP TOOL (or another spin compiler) to send the bin file via telnet, would coding a prop programmer in c on SKETCH be all that hard?
Doesn't the c code to program the prop already exist? Where?
The sketch file is ripped from others code and fixed/upgraded.
When you put the IP address of the ESP8266 into your browser, you get this.
Oh yea, i do this stuff like make this animated gif, just so it can get lost in the post flow?
Or perhaps i should just give it more time? I guess I worry that some may get used to the simplicity of the server and keep it as such.
Simple means nonfunctional for most technical people.
So what? now we have voting wars?
If I could edit attachments, and delete posts, voting wars might become ok, because posts will be encouraged to be edited to be the best post ever.
But old posts need to be removed to stop confusion, and down voted.
So technically everyone could have a single comment on a thread, the comment is subject to voting.
But we can't edit attachments so editing a single comment per user on each thread won't work, thus voting cannot be made orderly.
Thanks for all the ESP8266 info and links. Hopefully I will find time to play along with this at some point.
Love that hi-res die photo. All those intriguing "mobius" inductors in there.
Yes, the forum is broken, no deleting own post, silly voting system, we all know the ills by now. I live in hope that it will be fixed soon enough. Before this place becomes a ghost town.
However: You can add attachments! See attachment
Edit: Scratched out the above. Turns out the "add attachment" thing just stuffs the content in line. As below.
Problem is the button to do that is nowhere near the edit box as you edit. Oh no, it's way down at the bottom of the page, underneath another redundant edit box that you are not using.
I've been itching to start another project with these. I've made a few things and they have all worked great. None of them were Propeller based so I haven't posted much.
Sending AT commands from the Prop was easy enough. I need to dig into LUA and Propeller serial before going any further.
Unless someone has a nice working example of SPIN talking to LUA I could use to start with...
wonder how this works ....
warm water IN
and hot and cold OUT .. ???
Close. That is not water going in, that is two colours of light entering a block of silicon from the left. The weird holes in the square block defract the different light frequencies differently so that red exits by one port and blue the other.
Now, it's odd you should mention water. A standard physics demo in school is to set up a vibrator in a shallow tank of water and show how water waves propagate and are reflected and defracted by obstacles.
I was pondering setting up a water tray with obstacles in it of the shape of those holes. Then have two vibrators sending two frequencies down the input "pipe". If we scale it correctly we should see the same frequency discrimination on the outputs.
I've been itching to start another project with these. I've made a few things and they have all worked great. None of them were Propeller based so I haven't posted much.
Unless someone has a nice working example of SPIN talking to LUA I could use to start with...
you can take my LUA example from the Tachyon thread and send the strings from SPIN.
wonder how this works ....
warm water IN
and hot and cold OUT .. ???
Close. That is not water going in, that is two colours of light entering a block of silicon from the right. The weird holes in the square block defract the different light frequencies differently so that red exits by one port and blue the other.
Now, it's odd you should mention water. A standard physics demo in school is to set up a vibrator in a shallow tank of water and show how water waves propagate and are reflected and defracted by obstacles.
I was pondering setting up a water tray with obstacles in it of the shape of those holes. Then have two vibrators sending two frequencies down the input "pipe". If we scale it correctly we should see the same frequency discrimination on the outputs.
Heater - you write 'entering from the right' but it is actually really entering from the LEFT.
So the mixture is seperated !!!
So a dual high / low pass device for light.
great !!
about water wave tank simulations:
there are some great applets on the net where you can build your own obstacle paterns and see the waves passing through. google helps.
OK , in the spirit of finaly having a working data logger with the esp8266 + propeller. here is the code I used
esp is running lua firmware.
I have 7x K30 co2 sensors and one sht-11 wired to an repurpose pcb
propeller reads the sensors out , then does a get request to a php page on my local server.
this page gets the data and runs a query to place them in the database.
Sounds simple , but had have quite some time to get it working . Anyways
source is attached. esp8266.spin is the main code. index2.php is the page hosted on my local server
Ill be making a blog post when I get some time ,and also a webpage to display the data.
Ill post the link here once its done
Well spotted. Mixed frequencies enter from the left, separated frequencies leave on the right. It's a demultiplexer. Apparently the smallest in the world.
Mind, you, it's in the nature of these things to be reversible so pumping two frequencies into the right should give the multiplexed result on the left.
I'll have to look for some wave tank simulations. Mind you there is no way Java Applets are ever running here.
Comments
http://www.ebay.com/itm/ESP8266-ESP-12E-WIFI-Transceiver-Wireless-Module-NODEMCU-LUA-PRE-INSTALLED-/171807517162?pt=LH_DefaultDomain_3&hash=item280086a9ea
Complete with latest nodemcu pre-installed.
All we need is for some clever soul to write a Prop loader in Lua so that we can have a wirelessly programmable Propeller!
Looks like there is an ADC pin on the board. Ok, something really simple - measure one voltage and upload it somewhere on the internet? Xively or anywhere really. Once you have real world data on the internet, then you can manipulate it, other nodes can read it etc.
Right now I have an arduino reading a voltage and talking to a usb to serial port, talking to a laptop talking to the internet. It crashes once a week and I have no idea why. There has *got* to be a cheaper way that uses less power - you might have just found it!
Oh, yes, a wirelessly programmable propeller. Hmm - need to go back to the original source code in the obex from ?2006 which has the details of how the downloader protocol works.
If you are into the Prop Loader in Lua challenge everything you need to know about the protocol is in this C file https://github.com/ZiCog/pi-propeller-load/blob/master/src/PLoadLib.c and it's associated header file.
I should be able to network my Altair Clone with the old version anyway I hope.
Seems to be easy... I'm 100% new to this topic and after some searching for NodeMCU and ThingSpeak and some minutes of shameless ctrl-c and ctrl-v from https://github.com/ok1cdj/ESP8266-LUA:
This fragment assumes the node already having WiFi up and running...
I tried to keep this compact and not to waste space...
Watch my brave Lua-WiFi-Minion's uptime, heap and filesystem info at: https://thingspeak.com/channels/42511
Ok... he will not be connected permanently...
...and I definitely need to learn more Lua... ;-)
from
https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/pin_functions.png
I am still waiting for:
- ESP-12 style 2mm-2.54mm dip adapter pcb's I ordered.... I hope they arrive soon.
- some ESP-07's, the external antennas I ordered for them have already arrived
These little modules look like a LOT of fun.
The best way to develop is on the larger board, save the smaller ones for applications. Unless you happen to use all of that GPIO, then you'll need it!
The only drawback: There's only one UART and it is needed for the USB connection...
But for getting started, these Minions (I got the yellow flavour of these boards) are great!
I'm trying to get used to working over Telnet with NodeMCU and when I feel safe enough with it, I'll try to connect an ESP-07/-12/-12e directly to a Propeller...
...or...
This is the Minion which is connected to https://thingspeak.com/channels/42511 and I'm telnetting to it while it is doing that self-monitoring...
Another thing on my ever growing to do list is merging web and telnet access because NodeMCU does not allow two servers at once... but 1st some more Lua practice is definitely needed.
http://www.esp8266.com/wiki/doku.php?id=nodemcu-unofficial-faq has some hints on making "stuff" loadable/loaded on demand... this seems the way to go...
Lots of fun, lots of things to learn... that's the way the world is meant to be... \o/
!!! please adapt a habit to change your post titles to reflect the content - makes it much better when searching / browsing !!!
voted it down.
https://github.com/esp8266/esp8266-wiki/wiki/Boot-Process
To flash a ESP-04
Put your ESP-04 into programming mode by applying power while GPIO is held low with a 1k resistor.
GPIO15 must be tied low for both normal operation and programming. (I use a 1k resistor)
CH_PD must also be tied high, again I use a 1k resistor.
YOU CAN USE A PROP-PLUG for TX-RX-GND (instead of the CH34OCG)
https://www.parallax.com/product/32201
No antenna is needed if you are within 10feet of your wifi.
Reset doesn’t need to get wired if you just power cycle the unit after making GPIO0 low for programming.
GPIO0 can be allowed high after the unit has booted (1second or so)
So I wire a momentary button to reset.
And another button to GPIO0, this allows me to hold the GPIO0 button down while pressing reset.
This puts the unit into programming mode once reset button is released while still holding the GPIO0 button on (low)
If you have a LED wired to the units GPIO13, the LED will be lit DIM while IN programming mode.
In regular booting, GPIO13 led is not on, unless your program turns it on.
This link shows you how to flash the esp.
https://www.allaboutcircuits.com/projects/flashing-the-ESP-01-firmware-to-SDK-v2.0.0-is-easier-now/
Or you can flash with the parallax code.
https://forums.parallax.com/discussion/comment/1453097/#Comment_1453097
You will see the flasher either start to upload data, or give you a com port error.
Make sure you configure flasher for the right serial port.
You can use a standard FTDI usb com port adapter, TX and RX and ground are the only things needed.
DO NOT power this unit using the FTDI usb power line, people have had problems with the usb hub providing enough current.
THIS UNIT IS 3.3v ONLY. DO NOT CONNECT ANY 5v DEVICE TO IT. Use a 1A 3.3v power supply. (it seems the TX line of a Ftdi device is 5v, perhaps you should use 2k resistor in series?.)
This is the microcenter.com device ESP04 $6.95
a.k.a. ai-thinker.com
This one as no antenna, smt board without dip spacing, no reset pin or gpio16 side pads.
***EVERYONE WHO HAS A ESP8266 would benefit from a full .bin flash, due to the updating of internal wifi code that only gets updated with this bin file complied from the sources in linux ( freely available)
I did some things... here...
You can also flash the esp to ParallaxESP firmware now. (Recommended 2018)
https://forums.parallax.com/discussion/comment/1452980/#Comment_1452980
OLD INFO!!!!!(PRE ParallaxESP )
The sketch file, /discussion/download/114963/WebSvrHTML.zip
https://www.allaboutcircuits.com/projects/flashing-the-ESP-01-firmware-to-SDK-v2.0.0-is-easier-now/
(the newer versions break code due to needing a larger flash chip size)(larger than 512k)
I don't know if 2.0 breaks 512k chips, but all the older version flash file links are gone.
(this code dumps info about your mem chip out the serial port, while running webserver to switch led using web browser.)
I found that running the latest bin file(https://www.allaboutcircuits.com/projects/flashing-the-ESP-01-firmware-to-SDK-v2.0.0-is-easier-now/) with the above code heavily resolves ESP timeout problems and crashes that the above code caused in older firmware.
So heres more info and how you can test if your old firmware is an issue.
Attached is the .ino code to program the esp using sketch once you properly install the board files for sketch(do that here) http://learn.adafruit.com/downloads/pdf/adafruit-huzzah-esp8266-breakout.pdf
Once you update the firmware with the latest, you can then reprogram the unit using sketch.
IF you program using sketch, the AT command interface is wiped. You will need to reprogram the firmware to get it back. The sketch program doesn’t overwrite all the code in this chip, only the main program code, other code that runs the wifi stack is untouched by the sketch upload. Those firmware areas are only updated by the bin files from the ESP-8266 manufacturers SDK.
ESP8266 IC internals
Technology is exponential.
OMG look at this image of the internals sOOOOPER HI RES!
http://s.zeptobars.ru/ESP8266-HD.jpg
So a new reply needs to be created to add or fix attachments.
The sketch file is ripped from others code and fixed/upgraded.
When you put the IP address of the ESP8266 into your browser, you get this.
I was trying to add this to the previous post but good luck trying to manage attachments with this heavily unchanged as of yet, POS, forum..
These kind of things complete make this forum useless due to the bloat and total confusion that these VOTES also do.
Talented guys who expect logic, will never go with that.
There is no order to this voting madness, and ARE YOU KIDDING ME?
Plus if you act now content producers (like the nice picture and link and info filled content) won't do this anymore, due to a lack of conversation flow.
I guess its time to switch to C? And move along, nothing to see here?
This forum made the prop, and currently, its completely breaking it now.
And can't delete your own posts? And no way to edit attachments? <---- 2 REALLY BIG ISSUES
It feels like a circus came to town and set up shop in you're backyard.
Time to move? I kinda like the prop, spin and all. But i suppose it may be time to move along. (which is perhaps the true point to these forum changes, or if its not, its the result for many technical people who desire order in converations and discussion lists. (a.k.a forum, not chaos thru popularity.)
My look into the esp8266 device, and im quite impressed.
Looking at code, if we can get PROP TOOL (or another spin compiler) to send the bin file via telnet, would coding a prop programmer in c on SKETCH be all that hard?
Doesn't the c code to program the prop already exist? Where?
The sketch file is ripped from others code and fixed/upgraded.
When you put the IP address of the ESP8266 into your browser, you get this.
Oh yea, i do this stuff like make this animated gif, just so it can get lost in the post flow?
Or perhaps i should just give it more time? I guess I worry that some may get used to the simplicity of the server and keep it as such.
Simple means nonfunctional for most technical people.
So what? now we have voting wars?
If I could edit attachments, and delete posts, voting wars might become ok, because posts will be encouraged to be edited to be the best post ever.
But old posts need to be removed to stop confusion, and down voted.
So technically everyone could have a single comment on a thread, the comment is subject to voting.
But we can't edit attachments so editing a single comment per user on each thread won't work, thus voting cannot be made orderly.
Yep, shame about the forum, and no one seems to care either
So I was thinking, one could be ap, one could do smtp, one could do ntp, and one could do webserver.
Dell servers, here i come, death by 1,000 esp's.
see here:
forums.parallax.com/discussion/comment/1339689/#Comment_1339689
Thanks for all the ESP8266 info and links. Hopefully I will find time to play along with this at some point.
Love that hi-res die photo. All those intriguing "mobius" inductors in there.
Yes, the forum is broken, no deleting own post, silly voting system, we all know the ills by now. I live in hope that it will be fixed soon enough. Before this place becomes a ghost town.
However: You can add attachments! See attachment
Edit: Scratched out the above. Turns out the "add attachment" thing just stuffs the content in line. As below.
Problem is the button to do that is nowhere near the edit box as you edit. Oh no, it's way down at the bottom of the page, underneath another redundant edit box that you are not using.
Why for goodness sake?
warm water IN
and hot and cold OUT .. ???
Or is it a simple mixer? Hot/Cold in..warm out?
But we take away from the thread. Starting a new thread to test attachments.
Sending AT commands from the Prop was easy enough. I need to dig into LUA and Propeller serial before going any further.
Unless someone has a nice working example of SPIN talking to LUA I could use to start with...
The shapes of weird holes were arrived at by some algorithm developed at Stanford.
http://fvforums.com/showthread.php?2529-Breakthrough-Brings-Optical-Data-Transport-Closer-To-Reality&s=31c5f3d76cc627d1300c74427cc589ea
Now, it's odd you should mention water. A standard physics demo in school is to set up a vibrator in a shallow tank of water and show how water waves propagate and are reflected and defracted by obstacles.
I was pondering setting up a water tray with obstacles in it of the shape of those holes. Then have two vibrators sending two frequencies down the input "pipe". If we scale it correctly we should see the same frequency discrimination on the outputs.
Heater - you write 'entering from the right' but it is actually really entering from the LEFT.
So the mixture is seperated !!!
So a dual high / low pass device for light.
great !!
about water wave tank simulations:
there are some great applets on the net where you can build your own obstacle paterns and see the waves passing through. google helps.
esp is running lua firmware.
I have 7x K30 co2 sensors and one sht-11 wired to an repurpose pcb
propeller reads the sensors out , then does a get request to a php page on my local server.
this page gets the data and runs a query to place them in the database.
Sounds simple , but had have quite some time to get it working . Anyways
source is attached. esp8266.spin is the main code. index2.php is the page hosted on my local server
Ill be making a blog post when I get some time ,and also a webpage to display the data.
Ill post the link here once its done
I.C.E.C
Well spotted. Mixed frequencies enter from the left, separated frequencies leave on the right. It's a demultiplexer. Apparently the smallest in the world.
Mind, you, it's in the nature of these things to be reversible so pumping two frequencies into the right should give the multiplexed result on the left.
I'll have to look for some wave tank simulations. Mind you there is no way Java Applets are ever running here.