Search found 14 matches

by Edje11
Fri Mar 15, 2019 9:49 pm
Forum: ESP32 Arduino
Topic: esp32 does not read analogue values
Replies: 5
Views: 1327

Re: esp32 does not read analogue values

Don't set your ADC channel as input

Code: Select all

pinMode(sensor, INPUT);
by Edje11
Thu Mar 07, 2019 9:15 am
Forum: ESP32 Arduino
Topic: Wire doesn't work with ESP32 / 8266
Replies: 6
Views: 784

Re: Wire doesn't work with ESP32 / 8266

2N7000 is not suitable for level shifting. The required gate voltage is to high.
https://forum.arduino.cc/index.php?topic=564390.15
by Edje11
Fri Mar 01, 2019 10:28 pm
Forum: ESP32 Arduino
Topic: Payload issue
Replies: 3
Views: 455

Re: Payload issue

Payload is a pointer to the payload, by using the variable again will be overwritten try something like this. char *mypayload = payload; if (strcmp(topic, Blinds_Topic) == 0) { setRelay(payload); mqttClient.publish(Blinds_Feedback_Topic, 1, false, mypayload); Serial.println("Publishing Feedback");
by Edje11
Sun Feb 17, 2019 3:26 pm
Forum: ESP32 Arduino
Topic: How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?
Replies: 2
Views: 1234

Re: How do I set CPU speed of NODEMCU ESP32-S to 240MHz in Arduino IDE?

Cpu clock is fixed to 240Mhz in the Arduino ide.
by Edje11
Wed Jan 30, 2019 6:53 pm
Forum: ESP32 Arduino
Topic: Heltec wifi kit32, hardware serial
Replies: 4
Views: 737

Re: Heltec wifi kit32, hardware serial

This works fine for me:

Code: Select all

HardwareSerial Pzemserial(2);
#define RXD2 16 //Gpio pins Serial2
#define TXD2 17
Pzemserial.begin(9600, SERIAL_8N1, RXD2, TXD2);
by Edje11
Thu Jan 24, 2019 10:44 pm
Forum: ESP32 Arduino
Topic: ESP32 interfaced with currnet sensor acs712 on rtos platform
Replies: 2
Views: 410

Re: ESP32 interfaced with currnet sensor acs712 on rtos platform

Keep in mind that the asc712 works on 5V and the Esp32 on 3.3V So if you feeding the sensor with 5V you have to reduce the output to the 3.3V scale with a voltage divider. What current are you measuring AC, DC? If you want to measure energy consumption please have a look at my blog for the Pzem-016 .
by Edje11
Sat Jan 12, 2019 1:55 pm
Forum: ESP32 Arduino
Topic: ESP32 and AT24C08 EEPROM
Replies: 1
Views: 298

Re: ESP32 and AT24C08 EEPROM

Hi,

Be sure you have the eeprom in the correct voltage range. You nedd the one that can work from 2.7V.
Here is some code that should work. https://playground.arduino.cc/code/I2CEEPROM
by Edje11
Tue Jan 08, 2019 8:43 pm
Forum: ESP32 Arduino
Topic: esp32 + ws2801 - Need help.
Replies: 8
Views: 843

Re: esp32 + ws2801 - Need help.

Keep in mind that your led's stips require 5V power supply.
by Edje11
Sun Jan 06, 2019 2:46 pm
Forum: ESP32 Arduino
Topic: i2c display garbage
Replies: 4
Views: 702

Re: i2c display garbage

The screenupdate sub needs to run on core 1. The code below solved my problem. :D #include <U8x8lib.h> #if CONFIG_FREERTOS_UNICORE #define ARDUINO_RUNNING_CORE 0 #else #define ARDUINO_RUNNING_CORE 1 #endif U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); TaskHandle_t ScreenUpdateHan...
by Edje11
Fri Jan 04, 2019 12:13 pm
Forum: ESP32 Arduino
Topic: i2c display garbage
Replies: 4
Views: 702

Re: i2c display garbage

Hi Thanks for your reply, First I used a library from Thingpulse https://github.com/ThingPulse/esp8266-oled-ssd1306 After that I changed to U8x8lib that's from the same maker as U8g2lib.h. Also tested the Graphicstest.ino from the U8g2lib, same problem. All the above lib's working fine until you put...

Go to advanced search