Notifications
Clear all

Displaying additional information on the webpage from DBW's "Build an ESP32CAM Robot Car"

3 Posts
2 Users
2 Likes
489 Views
(@leonardo1123)
Trusted Member
Joined: 2 years ago
Posts: 56
Topic starter  

Hey there!

I'm making a lot of great progress with my robot car. After getting some simpler examples working, I have now moved on to this Dronebot article!

I've managed to get it working and streaming. Since I haven't finished configuring my robot controls, I haven't fine-tuned the control aspect, but I'm comfortable with both adding more components of which there are examples already in the code, and configuring the control aspect of the code. 

One thing for which I didn't notice an example was a display of values being calculated or read by the car. Say for example I take the framerate (which is being written to the serial monitor), how would I instead (or in addition) send it to the webpage to be viewed by the user?

I have experience with web development, but not on this low of a level. Any and all help would be greatly appreciated, as has been appreciated all the help I've gotten already. 🙂

Fortune Favors the Bold


   
Ron reacted
Quote
Topic Tags
(@leonardo1123)
Trusted Member
Joined: 2 years ago
Posts: 56
Topic starter  

The part that's tripping me up is I can't find an example in the current code of a value on the server being updated by the esp32. Start/stop for stream is a server-side handled event, it doesn't check if the stream actually started or not. 

So I know how to put the text "FPS: xxxx" into the HTML portion of the app, I'm confused as to how to procedurally update it from the esp32. 

Fortune Favors the Bold


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4537
 

@leonardo1123 I don't know or understand the linge very well, but if you look in the examples section of the IDE you will find client and server examples which should help I imagine

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
Leonardo1123 reacted
ReplyQuote