Author Topic: EEVblog #998 - How To Program ESP8266 WiFi With Arduino  (Read 12530 times)

0 Members and 1 Guest are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37717
  • Country: au
    • EEVblog
EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« on: June 04, 2017, 11:13:32 pm »
How to connect and use the low cost ESP8266 WiFi module with the Arduino environment.
How to connect with a Youtube API to retrieve channel statistics, using JSON on the Wemos D1 Mini.

Nixie Tube Project Part 7

 
The following users thanked this post: Warhawk

Offline jamie_1318

  • Newbie
  • Posts: 2
  • Country: ca
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #1 on: June 05, 2017, 12:05:25 am »
You really don't need to blur out your device's internal IP address, it's not a valid address except on your network.
 

Offline German_EE

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #2 on: June 05, 2017, 11:14:25 am »
Yeah, but a machine I found on 127.0.0.1 has some really interesting stuff  :)

Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline RGB255_0_0

  • Frequent Contributor
  • **
  • Posts: 772
  • Country: gb
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #3 on: June 05, 2017, 11:15:27 am »
Some guy called Sagem is always on mine.
Your toaster just set fire to an African child over TCP.
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1910
  • Country: ca
    • General Repair and Support
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #4 on: June 05, 2017, 01:06:13 pm »
Somewhat related, I need some guidance maybe from Dave2?

I can get subscriber counts with simple URL like https://socialblade.com/youtube/user/eevblog/realtime
But.. I'd like to actualize a list of subscriber counts monthly from a growing list of channels found here:
https://www.eevblog.com/forum/other-blog-specific/dd/msg1093983/#msg1093983

Some channels have a name, other use a Channel_ID (maybe it's just channels with spaces in the name)
Kaizer Power Electronics    https://socialblade.com/youtube/channel/UCSukTlgTEWiL-sl0UeYeJvQ/realtime
joe smith            https://socialblade.com/youtube/channel/UCsK99WXk9VhcghnAauTBsbg/realtime
w2aew                https://socialblade.com/youtube/user/w2aew/realtime

Can the YouTube API easily cough-up a CSV helping us out? (and perhaps show defunct channels?)
 

Offline Cliff Matthews

  • Supporter
  • ****
  • Posts: 1910
  • Country: ca
    • General Repair and Support
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #5 on: June 05, 2017, 01:45:37 pm »
I must be getting close. A few queries turned up requests like this:
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=eevblog
 

Offline jnissen

  • Regular Contributor
  • *
  • Posts: 63
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #6 on: June 05, 2017, 08:35:22 pm »
Welcome to 2017 Dave! I know the feeling as I have been into these little modules for the last year or two now. Amazing capability for only a few bucks.
 

Offline paulcav

  • Contributor
  • Posts: 37
  • Country: au
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #7 on: June 05, 2017, 11:48:42 pm »
you may be able to use an Iot website hosting service to store the data so that you can retrive the data  based on date, users etc.
 

Offline Rolo

  • Regular Contributor
  • *
  • Posts: 206
  • Country: nl
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #8 on: June 07, 2017, 07:43:54 am »
Good video, one detail is a bit confusing, at 7:21 you download the zip file from github but a few steps later you use the board manager to actually add the boards to the arduino IDE. In my experiance the zip file is not needed when using the board manager. 
No problem but can be confusing for all playing along at home.
 
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #9 on: June 07, 2017, 08:11:24 am »
People have spent their time and effort building Arduino compatible structures and data for a variety of hardware outside the general Arduino environment - and made available through Github.

It was my understanding that one such ZIP file provided several blocks of data and it was one of those that was downloaded and then imported into the IDE.  The board manager could then use this data.
 

Offline Barny

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: at
  • I'm from Austria, not Australia ;)
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #10 on: June 07, 2017, 09:36:13 am »
Yeah, but a machine I found on 127.0.0.1 has some really interesting stuff  :)
127.255.255.254 has damn good stuff too
 

Offline djacobow

  • Super Contributor
  • ***
  • Posts: 1151
  • Country: us
  • takin' it apart since the 70's
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #11 on: June 08, 2017, 12:10:40 am »
I've been playing the ard / esp / Rpi universe for awhile now, and it just continues to blow me away how cheap AND easy it is to build working, useful things with these tools. It still helps to really know what's going on under the hood, but even that's not a hard requirement, apparently. The new platform plugin feature in the Ard IDE is a major step forward, too.

If the Ard IDE people:

- handled multi-file dependencies intelligently (rather than recompile everything in the sketch, every time)
- added a reasonable text editor perhaps as a plugin (as an option)
- added some git integration (as an option)
- added some debug integration

then I think they could honestly take over a lot of "professional" development environments, whose main claim to professionalness is that they are huge, bloated, complex, and in general a PITA to get up and running. Sure, very large, complex projects maybe will never be Ard-friendly, but for me, I do a lot of embedded stuff in the 5-15 source files comprising the 200 - 5000 lines of code, and I can live with Arduino.

People correctly point out that a lot of the Ard libs are pretty crappy, but they are reasonable training wheels, and you don't have to use them.

I'm a fan.
 

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #12 on: June 09, 2017, 12:34:15 pm »
Is there a site somewhere that keeps a table comparing the capabilities of the different small MCU dev boards/ IOT boards? If not then that seems like an appropriate sticky thread here.

They seem like a great way to put all my old "legacy hardware" online. It would be convenient to be able to use the serial connectivity on a bunch of my devices wirelessly. (the ones that already have USB or RS232 serial connectivity.)
"What the large print giveth, the small print taketh away."
 

Offline jnissen

  • Regular Contributor
  • *
  • Posts: 63
Re: EEVblog #998 - How To Program ESP8266 WiFi With Arduino
« Reply #13 on: June 10, 2017, 04:55:46 am »
This is a fail list here:

https://www.postscapes.com/internet-of-things-hardware/#

I've run across several such sites and none of them are ideal. Based on the shear number of example projects the ESP8266 based boards easily outnumber the others. The main attractive thing is the low cost. I created some wifi water sensors I can place near my water heater/AC units for less than $10 each. The data is available online and if the sensor readings exceed a threshold i set I can get an SMS text message something is wrong. Amazing capability and I created the prototype in one evening using the Arduino IDE and commonly available libraries.

There are a lot of IOT sites that support various boards. Do your homework and check them out. I built the water sensor with Ubidots but there are many others that offer such services. http://www.ubidots.com

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf