Notifications
Clear all

InqPortal - An ESP8266 IoT, Application, Web Server

95 Posts
8 Users
23 Likes
3,006 Views
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@byron It is I2C

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
byron
(@byron)
Noble Member
Joined: 4 years ago
Posts: 1026
 
Posted by: @zander

It is I2C

you are a pedant 😀 

This post was modified 11 months ago by byron

   
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 12 months ago
Posts: 1017
Topic starter  
Posted by: @zander

@inq I could maybe look this up, but why not get the answer from the author.

I have a BME280 which as you likely know does Hum/Temp/Pres. The pins are labelled a little different, but my magic decoder thinks it goes like this.

BME280 to ESP8266

Vin to 3.3V

G to G

SCK to D1

SDO to D2

Does that make sense?

That's a loaded question... The BME280 can be used with I2C or SPI protocols.  So you have to choose the right library and configure it accordingly to how you wire it.  BMP/BME break-out boards vary greatly.  Some have different number of pins 4 to 7 pins.  

The four pins ones I used in the past have VIN, GND, SCL, SDA which is for I2C and they go to D1 = SCL and D2 = SDA.  I "think" SCK and SDO are SPI interface... Those are pins on the other side of the board.

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, Access Point Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 12 months ago
Posts: 1017
Topic starter  

When I got parts for my students doing the weather station, I wanted to use BME since they do humidity, pressure and temperature.  This time around they're expensive... over $14 in 10pcs quantities.

I got the BMP280 and AHT10 for a $1 and $1.70.

 

Point... don't let the smoke out.

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, Access Point Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@inq You and @will will be a good pair for finding the least expensive solution. Unfortunately I seem to always find the opposite.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2286
 

@zander 

Thanks (I think 🙂

Experience is what you get when you don't get what you want.


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@inq The only remainig pins are CS and SDI. CS is chip select and SDI is to send data TO the BME280 so that leaves Clock which on the 280 is SCK and Data Out which is SDO. Once I resolve the boards problem I will wire this up.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 12 months ago
Posts: 1017
Topic starter  
Posted by: @will

@zander 

Thanks (I think 🙂

I'm not sure... I think we're being accused of being tight-wads.  😉 

 

I used to buy from China direct and wait a month (or two).  I still have fifty or so ESP-01S becoming fine-wine, I got for about $0.79 each.  Now... Amazon 2 day rules!  At my age, I might forget what I bought them for if I buy from China.

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, Access Point Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2286
 
Posted by: @inq

I'm not sure... I think we're being accused of being tight-wads.  😉 

Oh ... I'm sure 🙂

Experience is what you get when you don't get what you want.


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@inq I know what you mean, it is not uncommon to get a surprise at the post office for me.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@inq Now that my computer is working again, I want to get this weather station going. In my board selector it has NodeMCU8266 0.9 (ESP-12 Module) and NodeMCU 1.0 (ESP-12E Module). My board has no info like that, all I can see is 8266MOD. What do you think I should pick?

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@inq I am stumped. For a first time test I am using the Adafruit test sketch for the BME280. I have no idea what pins to use on the ESP8266. I am guessing the clock pins go together (SCK to CLK) but where does the SDO go? There is NO pin information in the sketch.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2286
 

@zander 

https://lastminuteengineers.com/bme280-esp8266-weather-station/

Experience is what you get when you don't get what you want.


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4440
 

@will I wired it like that and still nothing, plus now I just got another error that I am seeing for the first time. I think it's time for a drink and a break. I am getting too old for this nonsense.

Screen Shot 2022 04 14 at 16.00.24

 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2286
 

@zander 

Better make it a double ! That's a very mystic message; I wonder who thought it would be useful to a programmer trying to find out what's wrong ?

Experience is what you get when you don't get what you want.


   
ReplyQuote
Page 2 / 7