Giter VIP home page Giter VIP logo

Comments (3)

Gabrielerusso avatar Gabrielerusso commented on July 18, 2024

I wanted to export the imu data to esp32, but I found that when I accidentally touched the motor, the serial port data stopped sending. At this time, the vesc indicator turned from blue to green(driving mode). Is this a normal phenomenon? What can I do to use the serial port while the motor is running?

Yes you can use the serial port while running, for example the BLE module runs on the second "uart". A common communication problem while using the motor is due to Electromagnetic interference (EMI), noise and bad grounding, following some tips:

  • Make sure the ESC and esp32 are properly grounded and that there is some sort of filtering cap on the ESP.
  • Adapt UART Baud to wire lenght, wire kind and place them far away from phase wires.
  • Possibly choose twisted pair if length is greater than 10/20cm, shielded cables if greater distances.
  • USE CANBUS

I'm not familiar with the balance app and imu, you need to check if there is some exclusion rule in the use of one or another, but i don't think so as uart has it's own hardware interface in the ic.

from bldc.

t812206236 avatar t812206236 commented on July 18, 2024

@Gabrielerusso

If it is due to emi and noise, I should be able to receive some scattered information instead of receiving nothing at all.

Besides, there is another point that can be explained: when rotating the wheel, the vesc enters the driving mode(balancing app), When the rotation stopped, I did not receive the serial port information until the indicator light returned to blue.

So I firmly believe that balancing app was blocking my serial communications while it was running.

I will try to use the can protocol, the can bus module is on the way

from bldc.

t812206236 avatar t812206236 commented on July 18, 2024

I checked it again and it was electromagnetic interference, but strangely enough the Bluetooth was totally fine, so I turned it off first, it wasn't a firmware problem

from bldc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.