View Code? Open in Web Editor
NEW
An undergraduate major project with ESP32-camera module and a Flask webclient
License: MIT License
Python 30.38%
C++ 18.71%
C 2.67%
CSS 0.14%
HTML 48.10%
esp32-selfdrivingcar's Introduction
๐ Hi, Iโm @Balaji-Ganesh
๐ Iโm interested in OpenCV and Machine Learning projects
๐ฑ Iโm currently learning OpenCV, Algorithms and their core-theme of working
๐๏ธ Iโm looking to collaborate on Self Driving car
๐ซ How to reach me - mail me
esp32-selfdrivingcar's People
Contributors
Watchers
esp32-selfdrivingcar's Issues
Esptool didnโt receive any byte of data or a successful slip packet . This error usually implies some kind of a hardware issue. This may be because the hardware is not working properly at all, the RX/TX serial lines are not connected, or because there is some problem with resetting into the download mode .
Tried uploading via earlier worked computers, but no use.
Description
Getting the error Error: sent 1002 (protocol error); no close frame received with websockets
while running the camera feed from ESP32 to web.
Note
Not getting this error at all the time, but some times.
The above error was displayed in middlware's console.
Solutions found
StackOverflow - WebSocket Closes with Protocol Error 1002
Extracted conclusion: Need to change the ESP32 websockets from synchronous to asynchronous. But earlier when using AsyncWebServer as in HashIncludeElectronic's reference, got the issue in bridging. Try once again, with this setup.
Need
Currently middleware with FastAPI and python-socketio is being
as a server -- for Flask WebApp.
as a client -- for ESP32.
Fewer times, connection to ESP32 is breaking.
Current setup (of ESP32)
The ESP32 is configured to connect to mobile hotspot.
Hence, each time it connects, (most possibly)get the different IP address.
Possible issues that raise out (When becomes a client)
Need to upload the code to ESP32 by updating the assigned IP of computer, in each setup of environment to run/test.
Solutions
Use a router and assigning static IP addresses to the computer and ESP32.
This solves repeated uploading to ESP32.
Python will be like the middleware between both ESP32 and web app.
In the next iterations, the middleware can be configured to make some image processing.
Capture the navigation controls from the Web-app using the navigation buttons set.
Also try adding feature of sending via keyboard keys.
Regarding interval... currently go with some less value, later make it dynamic.