What can be done on an ESP8266? Show your beasts...

rin67630
Posts: 141
Joined: Sun Mar 11, 2018 5:13 pm

What can be done on an ESP8266? Show your beasts...

Postby rin67630 » Wed Dec 13, 2023 11:38 am

What have you done with your ESP8266s that you consider being a lot of code?

Personally I am working on
https://github.com/rin67630/Victron_VE_on_Steroids
and it compiles at less than 50% resources.

User avatar
Inq720
Posts: 37
Joined: Fri Dec 22, 2023 1:36 pm
Location: North Carolina, USA
Contact:

Re: What can be done on an ESP8266? Show your beasts...

Postby Inq720 » Fri Dec 22, 2023 3:30 pm

I wrote and published this library long ago (it's available in the Arduino Library Manager). It's target audience is the Arduino IDE person that really just wants an easy interface to a web server and doesn't want to deal with all the boilerplate. It hosts the web server, an Administrative UI, WiFi Manager, File Manager, OTA updates, and uses Web Sockets for high-speed communications (enough to use as an RC controller for cars/robots). It only takes 3 lines of code in the Sketch to provide all this. It also provides a programming API so the developer doesn't have to deal with all the minutia of interacting. For instance, it takes one line of code in the Sketch to publish a sketch variable that is viewable and/or editable at the browser. The library's source code is about 30,000 lines and it can even fit on a ESP-01S (1 MB version).

The library is free, the support is free, and I pay for the website (w/o any advertising) that hosts exhaustive cross-referenced documentation, tutorials, FAQ and sample projects... but I do not publish the source code. Here is the 10 minute tutorial to get a taste of its capabilities and pictures of Admin being accessed on a desktop and Android smart phone.

https://inqonthat.com/inqportal-the-three-line-promise/

Image

rin67630
Posts: 141
Joined: Sun Mar 11, 2018 5:13 pm

Re: What can be done on an ESP8266? Show your beasts...

Postby rin67630 » Sat Dec 23, 2023 2:22 pm

Very nice !
I will give it a try after the season holidays.
Have you got a version for the ESP32 too?

User avatar
Inq720
Posts: 37
Joined: Fri Dec 22, 2023 1:36 pm
Location: North Carolina, USA
Contact:

Re: What can be done on an ESP8266? Show your beasts...

Postby Inq720 » Sat Dec 23, 2023 5:17 pm

rin67630 wrote:
Sat Dec 23, 2023 2:22 pm
Very nice !
I will give it a try after the season holidays.
Have you got a version for the ESP32 too?

No... I started it before the ESP32 was available and it uses Espressif SDK routines only available in the NonOS version, which makes it very problematic porting to the ESP32 and RTOS. I've tackling the problems several times, but in the end the demand is so light, and I've rarely had a project where I needed the extra horsepower of an ESP32. The biggest sore thumb is not having TLS/HTTPS support. The encryption/decryptions brings an ESP8266 to its knees. Whereas with plain HTTP, it'll do nearly anything I've thrown at it.

As an example of power of an ESP8266... early-on in the Covid, I thought I could help with the staggering demand of ventilators - https://inqonthat.com/inqvent/. If I recall correctly, the little ESP8266 was able to handle reading two pressure sensors, while controlling two servos and a PWM motor driver being read/updated at 100Hz while also hosting the website and pumping out real-time data via Web Sockets to multiple browsers at about 200KB/sec (total).

I'm on another forum where I use it as a robot RC controller and am studying AI that will actually run on the ESP8266. This will likely drive me to using an ESP32-S3 without InqPortal. :P

VBR,
Inq

rin67630
Posts: 141
Joined: Sun Mar 11, 2018 5:13 pm

Re: What can be done on an ESP8266? Show your beasts...

Postby rin67630 » Sat Dec 23, 2023 10:31 pm

Inq720 wrote:
Sat Dec 23, 2023 5:17 pm
As an example of power of an ESP8266... early-on in the Covid, I thought I could help with the staggering demand of ventilators - https://inqonthat.com/inqvent/. If I recall correctly, the little ESP8266 was able to handle reading two pressure sensors, while controlling two servos and a PWM motor driver being read/updated at 100Hz while also hosting the website and pumping out real-time data via Web Sockets to multiple browsers at about 200KB/sec (total).
On my project https://github.com/rin67630/Sound-press ... er-Booster I am reading analog data at 8 Hz, compute a lot of acoustical maths out of this info, making stats by minute, hour, days; (reset-safe) reading the weather, running a user menu over serial or Telnet, sending all that stuff to an internet platform for display as dashboards, display the data on an LCD displays. It can also split the work between two ESP8266, having one module onsite and the other one indoors, communicating via UDP.

On my current project https://github.com/rin67630/Victron_VE_on_Steroids i am diong similar things, reading data from serial, deserialize it, while making reset-safe integrations and stats by the hour and the day, computing internal resistance and state of charge,running a user menu over serial or Telnet, sending all that stuff to an internet platform for display as dashboards, plus the same displays and inter ESP communication.

Now I plan to use an ESP32 to centralize the information from several ESP8266, changing my communication from 1:1 to n:1
using arrays of a structure.

Regards and season greetings

User avatar
Inq720
Posts: 37
Joined: Fri Dec 22, 2023 1:36 pm
Location: North Carolina, USA
Contact:

Re: What can be done on an ESP8266? Show your beasts...

Postby Inq720 » Sat Dec 23, 2023 11:56 pm

rin67630 wrote:
Sat Dec 23, 2023 10:31 pm
On my project https://github.com/rin67630/Sound-press ... er-Booster I am reading analog data at 8 Hz, compute a lot of acoustical maths out of this info...
Interesting!!! I retired to a quiet mountain location, but the concepts do remind me of my former profession. Is 8 Hz a choice or a limitation? I wonder as I did some early benchmarking and found the ESP8266 Analog is pretty slow... 43μs versus digital at 1.2μs. Have you considered adding a higher rate A2D sensor maybe an i2c or SPI... maybe doing something like a 2 second reading every minute? You could then do the FFT to get the frequency spectrum. I'd imagine the FFT number crunching could be done during the lulls. I recall that there are regions of the sound frequency spectrum that really annoy people/animals more than others. Amplitude is not always the culprit.
rin67630 wrote:
Sat Dec 23, 2023 10:31 pm
On my current project https://github.com/rin67630/Victron_VE_on_Steroids i am diong similar things, reading data from serial...
Another interesting project. I have a buddy on another forum that will be interested in this. Are you using Victron in a home, off-grid, RV or boat type scenario? He's an RV'r... and I'd like something like this for my boat. Do you integrate with Nema 0183 or 2000?

I teach at our local library about Arduino programming and light electronic usage. Have kids from pre-teens to their 80's. :) We did a simple weather station... two sensor modules and about 2 minutes of breadboard wiring and a little code and they had a weather station with 24 to 48 hour predictive ability. https://inqonthat.com/inqweather/

Image

Image
Image

VBR,
Inq

User avatar
Inq720
Posts: 37
Joined: Fri Dec 22, 2023 1:36 pm
Location: North Carolina, USA
Contact:

Re: What can be done on an ESP8266? Show your beasts...

Postby Inq720 » Sun Dec 24, 2023 12:19 am

Currently, I'm working on a distributed network system using LoRa. The nodes out in the field (literally) will take various readings, and send them to a centralized server. The nodes will be using either 12E or 12F versions of ESP8266 modules so I can more accurately control their power usage with Deep Sleep and better regulators than come on the WeMos, NodeMCU versions. Looking to get about a year between charges.
The server will be a Raspberry Pi to handle the potentially decades long historical database. It'll also host a web server to expose data in real-time and historically through dashboards, histograms, charts and tables. I will eventually add MQTT via WiFi nodes that can be powered by house chargers and not needing the long-rang ability of LoRa. I also will eventually add the ability to post data to the Cloud, but local LAN is really my only need. I'm trying to make it generalized to take any data transparently so the server doesn't have to be modified based on the type of node data coming in.

My main goal (in mind)... I'm taking up Bee Keeping this year and I want to monitor the hives for things like internal temperature, humidity, pests, weight (as honey is coming in) and external things like weather conditions and sunlight as the seasons pass. But I'm also gearing it for the green house, gardens, soil moisture and temperature needs for my wife's hobbies.

VBR,
Inq

kenwoo
Posts: 5
Joined: Mon Oct 02, 2023 5:52 am

Re: What can be done on an ESP8266? Show your beasts...

Postby kenwoo » Sun Dec 31, 2023 8:21 am


User avatar
Inq720
Posts: 37
Joined: Fri Dec 22, 2023 1:36 pm
Location: North Carolina, USA
Contact:

Re: What can be done on an ESP8266? Show your beasts...

Postby Inq720 » Sun Dec 31, 2023 11:33 am

kenwoo wrote:
Sun Dec 31, 2023 8:21 am
sit tight, no panic :P
https://waterfalls.ddns.net/2023/08/08/ ... r-esp8266/
try it out
You might want to actually describe what you've done with the ESP8266. I (and many others) are not about to just go to some dynamically designated URL and trigger phishing or other malware. Maybe, you'll catch somebody.

kenwoo
Posts: 5
Joined: Mon Oct 02, 2023 5:52 am

Re: What can be done on an ESP8266? Show your beasts...

Postby kenwoo » Sun Dec 31, 2023 12:20 pm

Sorry, guys,
I now put it here:
https://github.com/kenwoo777/TMPC-ESP8266
The most practical codebase for ESP8266, some practical and useful stuffs maybe say essential.
The previous link is the website of my various personal developmental notes, and other projects too.
I though that you would thought it codebase if you become familiar with what it does.
Just for share.

Who is online

Users browsing this forum: No registered users and 9 guests