|
Post by dave on Jun 10, 2020 17:33:34 GMT
This is a good starter.
Getting Started
|
|
|
Post by dave on Jun 10, 2020 17:41:03 GMT
ESP32 Camera
|
|
|
Post by dave on Jun 14, 2020 16:49:54 GMT
ESP32 two way communication. randomnerdtutorials.com/esp-now-two-way-communication-esp32/my next project, to get two way communication from bungalow to fish pond controls. Temperature Depth Pumps Waterfall Edit /followup, This works, but requires 4k7 pullup resistors to 3.3v line. Line of site is ok, 15M via various obstacles is a bit hit and miss. perhaps needs a proper 2.4 aerial.
|
|
|
Post by dave on Jun 20, 2020 15:40:24 GMT
Hit a brick wall. Above program passes information in both directions. I'm trying to pass additional information, ie. 4 flags of 1 bits, 2 flags of 4096 bits. I'm STUCK....
|
|
|
Post by c3po on Jun 21, 2020 11:35:57 GMT
?? Payload is limited to 250 bytes ??
|
|
|
Post by dave on Jun 21, 2020 12:06:39 GMT
16 bytes gives 0 to 4095 ??
So should have enough bandwidth.
I need to sit down and work out how to add the extra data to send and receive.
btw the aerial add-on was easy to do.
|
|
|
Post by c3po on Jun 21, 2020 14:21:02 GMT
Dave I will have a proper look - difficult to sometimes "climb into" someone elses prog However as an aside are you using a reserved word 'temp' as it's highlighted orange typedef struct struct_message { float temp; float hum; float pres; } struct_message;
If you forget all the clever sensor reading etc and just set the float variables hard coded (i wunder if this is a prob) to a value do they message ok
eg float incomingTemp=1.11; float incomingHum =2.22; float incomingPres =3.33;
And is this example any good - very similar/same as yours - worth loading and then substituting your parameteres later once working?
|
|
|
Post by dave on Jun 21, 2020 14:34:33 GMT
Air Temperature, humidify, pressure from the bme sensor.
Sensor probes are connected to Analog In pins and trimmed with 3 pots on another 3 AI.
I've found some programs, but they want to use the home wifi signal. Possible but not preferable.
No rush at the moment.
Yes, that example leads to the program I'm using. will explore the multiple setup.
|
|
|
Post by dave on Jun 28, 2020 15:25:24 GMT
After a lot of hair loss, I can send and receive 6 pieces of data, Temp/pres/humid/data1/data2/data3.
The default numbers is to 2 decimal places, is there a magic setting that set to no decimal places?
|
|
|
Post by dave on Jun 29, 2020 7:48:58 GMT
display.print(incomingTemp, 0); = 0 decimal points display.print(incomingTemp, 2); = 2 decimal points
|
|
|
Post by dave on Jul 18, 2020 17:27:39 GMT
Transferring extra data from board to board. Was surprised how many ADC pins are disabled when using the wifi. Will need a nano ADC pins to complete the project.
|
|
|
Post by c3po on Jul 19, 2020 8:48:27 GMT
Analog to Digital Converter -If using WiFi only pins on ADC1 are available
Overview The ESP32 integrates two 12-bit SAR (Successive Approximation Register) ADCs supporting a total of 18 measurement channels (analog enabled pins). The ADC driver API supports: ADC1 (8 channels, attached to GPIOs 32 - 39), and ADC2 (10 channels, attached to GPIOs 0, 2, 4, 12 - 15 and 25 - 27). However, the usage of ADC2 has some restrictions for the application:ADC2 is used by the Wi-Fi driver. Therefore the application can only use ADC2 when the Wi-Fi driver has not started. Some of the ADC2 pins are used as strapping pins (GPIO 0, 2, 15) thus cannot be used freely.
|
|
|
Post by dave on Jul 19, 2020 10:54:51 GMT
My brain hurts....
edit: re-read, now makes sense...
|
|
|
Post by dave on Jul 29, 2020 7:40:25 GMT
Project 'Fish Pond' has progressed, a bit. ESP32 - ESP32 exchanging 2 way information. 10 Bytes. Is there a 'simple' program to transfer, both ways, EPS32 and Mega via TX/RX pins. Watched you-tube video's and getting bogged down. most show the ESP8266.
|
|
|
Post by c3po on Jul 29, 2020 7:45:19 GMT
Dave are you still after a solution
I have esp32 >> serial to Nano >> UHF TX - Range 1.5km
Do you need any serial code?
|
|