Giter Site home page Giter Site logo

Comments (22)

dgatf avatar dgatf commented on August 15, 2024

Bug fixed

Please try again

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

Ok i test.

thanks

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

I,

not better

best

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

I just reread the readme and there may be some problem with the RX and arduino with USB port.

I have this model and the ESC is only plugged into the RX0 port. Is it well connected?

https://www.amazon.fr/gp/product/B0722YYBSS/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Yes, that's the problem. The serial signal from the esc is not strong enough for a serial port shared with usb on the arduino board

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

is there a solution ?

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Yes. I've added more flexibility to use software serial with any serial interface. Now you should be able to select softwareserial for the ESC. This can be done as you are using XBUS. With smartport this wouldn't be feasible as software serial is required for smartport to invert the serial signal

Update line 30 from config.h:

#define ESC_SERIAL softSerial and connect ESC serial to pin 7 (PIN_SOFTSERIAL_RX)

Not much tested yet... let me know

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

I,

Thanks ok, i test today with D7.

best

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

Hello,

sorry, I couldn't test yesterday because i work.

I used the version from yesterday. I welded in D7, modified line 71.

So I no longer have the tirests but I now have a value of 0 everywhere.

If it is worth testing, can you give me the line to modify on today's version?
cordially

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Modify line 30 in config.h:

#define ESC_SERIAL softSerial

The reason behind is that ESC serial uses 3.3v logic level whereas your Arduino board is 5v. Thus a 3.3v (8mhz) board is recommended. There are versions of Pro Mini and Pro Micro for 3.3v (8mhz). Also Pro Mini 5v (without USB) usually works well

As a workaround you can try with the software serial (by modifying config.h as explained before) which usually gives better results with this issue

from msrc.

dgatf avatar dgatf commented on August 15, 2024

To verify that the ESC can be read with your board you can use the sniffer.ino sketch (under tools) and connect ESC data to pin 10, ESC GND to GND and see the debug on the serial monitor at 19200 baud

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

Good evening,

I tested without success. I don't know how to use the debug.

So, is this model the right one?

https://www.amazon.fr/Microcontrôleur-ATmega328P-développement-compatible-Arduino/dp/B01DUSDQQ8/ref=sr_1_2?__mk_fr_FR=ÅMÅŽÕÑ&dchild=1&keywords=arduino+mini+3.320&qid=4444+mini+3.320&qid=

Thank you

from msrc.

dgatf avatar dgatf commented on August 15, 2024

I tested without success

Download and flash the latest code

Check that ESC data is connected to pin 7

Check that line 30 in config.h is:

#define ESC_SERIAL softSerial

I don't know how to use the debug.

Also connect ESC GND to Arduino GND

Enable ESC debug mode in config.h uncommenting line 107:

#define DEBUG_ESC

Open Serial Monitor in Arduino IDE at 115200bps. Check the output. You should see something like this:

DEBUG
V0.8.0
PN: 40 RPM: 123456.00 Volt: 11.94 Curr: 2.85 tempFET: 35.59 tempBEC: 35.59

So, is this model the right one?

Yes, but I recommend to try debug mode before, to discard any other issue

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

i,

On serial monitor, i have only :

⸮⸮⸮⸮�⸮
DEBUG
V0.8.0

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Then if the connections are ok, definitely your board is not reading the ESC. Go buy the Mini 3.3v. Note you'll need a USB-TTL programmer

I'm still surprised that is not working even with softwareserial. You could also post a picture of the connections to check if everything is ok

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

IMG_5811

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Ok, looks good. Last check...

Upload the sketch under tools folder sniffer

Be sure you change the pin in line 10:

#define PIN_SNIFFER 7

Connect the ESC to the Arduino and open a serial monitor at 19200bps and check the output. If there is no output, absolutely sure your board is not reading the ESC

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

Ok,

INIT
20:13:19.993 -> ⸮��⸮��⸮⸮��⸮�⸮⸮⸮⸮⸮��⸮�

Nothing else

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Which firmware version is installed in your ESC? You may try with another version. See post

Some firmware versions may not be sending telemetry

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

I have the 160A HV with the latest firmware.

On the other hand, when I connect my ESC to my receiver, I have the RPMs.

thanks

from msrc.

dgatf avatar dgatf commented on August 15, 2024

Just check it doesn't have the VBAR in the title of the firmware version. See post

On the other hand, when I connect my ESC to my receiver, I have the RPMs.

For this to work the esc has to be connected to the receiver and armed... Do you have telemetry with the Arduino?

from msrc.

J-charles-C avatar J-charles-C commented on August 15, 2024

Good evening. The firmware for Vbar does not exist for my esc. I order the arduino in 3.3v. thanks

from msrc.

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.