Search found 18 matches

by Edje11
Fri Nov 08, 2019 3:38 pm
Forum: ESP32 Arduino
Topic: open drain output
Replies: 4
Views: 16193

Re: open drain output

eowesi wrote:
Wed Nov 06, 2019 11:13 am
My first question is: Does all digital pins support open drain?
No.
It's all in the datasheet described.
by Edje11
Fri Nov 08, 2019 3:36 pm
Forum: ESP32 Arduino
Topic: Wire two Dallas ds18b20
Replies: 5
Views: 9297

Re: Wire two Dallas ds18b20

You have to en bale the parasit power mode for the ds18b20 in Arduino.
by Edje11
Thu Oct 24, 2019 7:48 pm
Forum: ESP32 Arduino
Topic: ESP32 RS485driver hardwareserial ModbusMaster
Replies: 23
Views: 44607

Re: ESP32 RS485driver hardwareserial ModbusMaster

Modbusmaster works fine with RS485 on a Esp32.
Have a look for the tip and tricks: http://evertdekker.com/?p=1307
You have to set the fucntions preTransmission() and postTransmission() correct, see the above sample
by Edje11
Thu Oct 24, 2019 7:42 pm
Forum: ESP32 Arduino
Topic: [SOLVED]Receiving no data from Serial2
Replies: 7
Views: 14513

Re: Receiving no data from Serial2

Isn't it that RXD2 gpio 16 and TXD2 gpio17?
by Edje11
Fri Mar 15, 2019 9:49 pm
Forum: ESP32 Arduino
Topic: esp32 does not read analogue values
Replies: 6
Views: 23276

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: 8137

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: 6607

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: 25885

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: 8805

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: 5191

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 .