Search found 6 matches

by paulvha
Mon Feb 25, 2019 9:23 am
Forum: ESP32 Arduino
Topic: Any software serial library for ESP32 can be used to receive data?
Replies: 6
Views: 15429

Re: Any software serial library for ESP32 can be used to receive data?

Thanks. Timing is very critical indeed for softserial. I have not seen any software serial work correct on 115K on any platform.(Uno, ESP8266, mega2560, ESP32 etc). Maybe only for sending. All is depending on how fast the code is working, the system is handling interrupts and the system load. Person...
by paulvha
Sun Feb 24, 2019 9:43 am
Forum: ESP32 Arduino
Topic: Any software serial library for ESP32 can be used to receive data?
Replies: 6
Views: 15429

Re: Any software serial library for ESP32 can be used to receive data?

Try this one https://github.com/paulvha/ESP32

it is based on the Jdollar library but it needed a large number of fixes before it worked. Make sure to read the readme!
by paulvha
Sun Feb 17, 2019 2:27 pm
Forum: ESP32 Arduino
Topic: read from i2c failed 80 percent chance, after couple reboot it works
Replies: 7
Views: 12478

Re: read from i2c failed 80 percent chance, after couple reboot it works

The issue is clock-stretch as mentioned before. That is not implemented in the ESP32 with the Arduino IDE as it uses the hardware I2C. I run into the same problem with an SCD30 and could not get it to work. In order to overcome I have taken the I2C from the ESP8266 and made it work on an ESP32. It i...
by paulvha
Tue Jan 01, 2019 1:41 pm
Forum: ESP32 Arduino
Topic: Arduino (IDE) not showing correct memory for global variables
Replies: 5
Views: 11233

Re: Arduino (IDE) not showing correct memory for global variables

I may have misunderstood and maybe still do..
I compiled a empty sketch and your sketch. I do see a difference in memory BUT in percentage it is a wash...

Code: Select all

	        Empty sketch	your sketch	
	        bytes	perc	bytes	perc
program mem	173740	13,26%	177840	13,57%
global  mem	13272	4,05%	14528	4,43%
by paulvha
Fri Dec 28, 2018 5:14 pm
Forum: ESP32 Arduino
Topic: Arduino (IDE) not showing correct memory for global variables
Replies: 5
Views: 11233

Re: Arduino (IDE) not showing correct memory for global variables

I am not from Expressif, but I am not surprised. Even if you do NOT include anything in a sketch, the compiler always includes a number of variables by default (e.g. from different default .h files). Some of these are needed for house-keeping ( pointers in memory, background task etc etc) Compile an...
by paulvha
Thu Dec 27, 2018 2:44 pm
Forum: ESP32 Arduino
Topic: HardwareSerial question
Replies: 4
Views: 15602

Re: HardwareSerial question

A write() / print() will directly write in to the UART FIFO. No extra buffer. It will check whether there is place the FIFO, otherwise it will hold/wait until there is. Instead of using a hardwareserial, you could consider softwareserial. That will perform it's own bit-banging and does not wait for ...