sunfounder / pico_4wd_car

13 stars 10 forks source link

delay #1

Open davidmoshal opened 1 year ago

davidmoshal commented 1 year ago

Hi, awesome, 4wd kit works fine, minor problems with mixed up commands (forward backward, etc). But, the major issue is the delay between sending commands from the app, and the car responding. I imaging the the arduino websocket server is pretty fast, so is the problem on the python side??

KazW commented 10 months ago

If you want something with less lag, you can attach an ELRS ESP-based receiver to UART 0, and attach an ELRS transmitter to your computer via USB and run them in airport mode after updating their firmware to 3.3.0. This gives you bi-directional serial with almost no lag, but expect to lose reliability with the signal/data when the voltage drops. This also gives you a few km of range instead of the few 10s of meters you'll get with the onboard WiFi.

Having said that, you'll need to be comfortable building out a python app on your computer to control the car, and writing a simple protocol that will handle some missing bytes and re-transmitting them.