BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

ESP32 Internal Sensors

#1

I took delivery of 4 x Wemos ESP-WROOM-32’s a few days ago.


Since then I’ve been trying to find out as much as I can about ESP-WROOM32’s and I’m surprised to find they actually have 4 cores not 2, plus internal “Hall” and “Temperature” sensors.

Yes, two completely free sensors to play with. :heart_eyes:

So after a day or two of Googling and my very limited understanding of coding I’ve finally managed to access both internal sensors and display the values on my phone via the Blynk app.

I’m so pleased with myself I’ve cracked open a beer. :beers:

Edit. Forgot to add the code … :joy:

#define BLYNK_PRINT Serial

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>


char auth[] = "";
char ssid[] = "";
char pass[] = "";

int measurement = 0;

#ifdef __cplusplus
extern "C" {
#endif
uint8_t temprature_sens_read();
#ifdef __cplusplus
}
#endif
uint8_t temprature_sens_read();

BlynkTimer timer;

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);

  timer.setInterval(1000L, myTimerEvent);
}

void myTimerEvent()
{
  measurement = hallRead();
  Blynk.virtualWrite(V5, measurement);
  Blynk.virtualWrite(V6, (temprature_sens_read() - 32) / 1.8);
}

void loop()
{
  Blynk.run();
  timer.run();
}
3 Likes

#2

Don’t try to do anything more complex than that with the ESP32 :slight_smile:

0 Likes

#3

That simple little sketch took me two days. If it were any more complex I’d be “pushing up daisy’s” before I managed to finish … :joy:

Why, do they explode ? :wink:

0 Likes

#4

Yes… they are flaky and untested… cannot possibly do anything more with them at all… :stuck_out_tongue_winking_eye:

https://www.youtube.com/watch?v=1t9CtKxPi9o

@Shadeyman PS that hall sensor seems to work best from under the board… silly place to put it :face_with_raised_eyebrow:

There is also built in capacitive touch sensor capability on some of the pins :slight_smile:

2 Likes

#5

That’s right.

Someone asked me today what I thought of them and I told him I have 3 that I never use.
Did some work with one of them about 6 months ago but it will be some time before I work on them again.

0 Likes

#6

I’ve just started messing around with that, haven’t quite got it yet but i’ll get there …

Mine have an 18650 cell attached to the rear so its definitely a silly place … :persevere:

I’m fascinated by them, why are you not keen on them?

0 Likes

#7

You have my address :stuck_out_tongue:

2 Likes

#8

When they released the MCU “nowt worked”.

0 Likes

#9

There’s not much out there for them at the moment, not that I can find anyway. But it is getting better, stuff appearing all the time. They’re the “new kid on the block” hopefully support for them will catch up with demand soon.

0 Likes

#10

This guy is doing some interesting stuff with ESP32… I am looking forward to seeing if that little camera module you are sending me will work like in one of his videos… might not be the right type though… will see.

1 Like

#11

That’s true but what would I do with 999,980,000 PCB’s I have for the Mini?

1 Like

#12

How about this? :wink:

1 Like

#13

That’s it… I am moving…

0 Likes

#14

They are bare PCB’s.

0 Likes

#15

Haven’t posted it all off yet, just waiting for a couple of extra bits to be delivered. :wink:

:joy:

If anyone can make use of them Gunner can …

0 Likes

#16

Barmaids deliver? Must be nice… cold beer and Arduino boards, home delivered :stuck_out_tongue:

1 Like

#17

@gunner I still have your address and GPS fix :slight_smile:
In my dreams I ordered a board for each ESPproMon token (1bn) but I have only released 20K to the Exchange. At just over $1 a piece my portfolio was up about $100m this week until BTC crashed earlier today with the news of a major Exchange “hack” and some SEC FUD.

At the bottom I was probably down $300m+ on the week but BTC has rallied to be just 6% down in the last hour so maybe -$100m. “Hack” looks to have been contained and transactions are being reversed as we “speak”.

0 Likes

#18

Where do you store that many boards ?

0 Likes

#19

I store them at @Gunner’s place :slight_smile:

1 Like

#20

:joy::joy:

0 Likes