Skip to content

example added - voltage graph from remote probe#21

Open
piotrcurious wants to merge 16 commits intoArminJo:masterfrom
piotrcurious:master
Open

example added - voltage graph from remote probe#21
piotrcurious wants to merge 16 commits intoArminJo:masterfrom
piotrcurious:master

Conversation

@piotrcurious
Copy link

this is a working practical example.
esp32 is used as AP
esp8266 is used as a voltage probe.

esp32 uses bluedisplay to display a graph of data collected from esp8266.
node sends packets using UDP multicast so other nodes in the system can see them (there can be more devices using the data, f.e. additional display or relay)
esp32 collects the data from last 24h and displays them in a graph over bluedisplay protocol using bluetooth.

bluetooth and wifi coexistence works with low packet rate and low display update rate. if you increase it too much things start to choke. with full hd display 5 second display update rate and 10 second per packet rates are ok.

The system works completely independent of the internet and it does not disturb wifi of a phone (so one can view the graph while still being connected to wifi and the internet on the phone)

it is just example and more options can be added f.e. to allow rotating the solar panel by pressing buttons , enabling some devices or relays or simply sending commands inside the esp32 AP wifi network (so other devices can hear them)

another example of simple battery voltage monitor
moved labels to the right as left side is covered up with phone display rounded corners 
added last datapoint line
optimized graph display so after plotting each line goes into the buffer, and on each main loop iteration only a chunk of lines are sent over to bluedisplay. 
this allows main loop to repeat more often and frequency of event checks is not disrupted
only one graph can be buffered for now. 
this makes display more interactive and reduces bluetooth bandwidth usage as graph data is sent only once per update (usefull for bt/wifi coexistence).
this ensures whole buffer is drawn in a looping sequence of pseudorandom order
added define to allow compilation either on 3.0.0 or 2.0.6
@piotrcurious
Copy link
Author

added another example to edit array by using touch.
It probably could be better factored to use classes.

@ArminJo ArminJo force-pushed the master branch 6 times, most recently from 67224c9 to 9b5149e Compare October 9, 2024 21:17
@ArminJo ArminJo force-pushed the master branch 3 times, most recently from d678e9f to 145a2b9 Compare November 25, 2024 15:26
@ArminJo ArminJo force-pushed the master branch 4 times, most recently from 10ebbae to 2b969ef Compare December 4, 2024 14:16
@ArminJo ArminJo force-pushed the master branch 10 times, most recently from 72ca965 to 695f502 Compare March 2, 2025 15:17
@ArminJo ArminJo force-pushed the master branch 3 times, most recently from 92e38c8 to 2589ba2 Compare March 5, 2025 01:59
@ArminJo ArminJo force-pushed the master branch 4 times, most recently from 1f32e7f to b23547d Compare March 22, 2025 08:57
@ArminJo ArminJo force-pushed the master branch 6 times, most recently from dc8cb48 to 3523214 Compare March 28, 2025 07:07
@ArminJo ArminJo force-pushed the master branch 3 times, most recently from 21381d6 to bc07a96 Compare August 29, 2025 06:56
@ArminJo ArminJo force-pushed the master branch 2 times, most recently from afae7db to d1136ba Compare January 4, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant