<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M0138: VOXL FPV ESC - No Current Readings When Calibrating]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/alex-kushleyev" aria-label="Profile: Alex-Kushleyev">@<bdi>Alex-Kushleyev</bdi></a> I was hoping you could help me figure out why I am not seeing current readings when calibrating the ESC.</p>
<p dir="auto">SW Setup:<br />
<a href="https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/dev/voxl-esc-tools/firmware/modalai_esc_firmware_m0138_1_v0_39_RC11_17d64675.bin" rel="nofollow ugc">FW Build - m0138_1_v0_39_RC11</a></p>
<p dir="auto">HW Setup: Connected directly to J1 on the M0138 ESC with a UART adapter to a PC running Ubuntu 22.04. ESC externally powered by batteries.</p>
<p dir="auto"><strong>Issue Summary:</strong><br />
No calibration data is being displayed when running <strong><a href="http://voxl-esc-calibrate.py" rel="nofollow ugc">voxl-esc-calibrate.py</a></strong></p>
<p dir="auto"><strong>Steps to Reproduce:</strong></p>
<ol>
<li>Connect M0138 to motors, battery and via J1 to a PC with a UART to USB adapter</li>
<li>Run:</li>
</ol>
<pre><code>./voxl-esc-calibrate.py --id 0 --pwm-min 10 --pwm-max 95
</code></pre>
<p dir="auto"><strong>Actual Results:</strong><br />
<img src="/assets/uploads/files/1713195507243-no_current_esccalibration-resized.jpg" alt="No_Current_ESCCalibration.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Expected Results:</strong></p>
<ul>
<li>My expectation for <a href="http://voxl-esc-calibrate.py" rel="nofollow ugc">voxl-esc-calibrate.py</a> would be to output the current data after the calibration test.</li>
</ul>
<p dir="auto"><strong>Questions / Comments:</strong></p>
<ul>
<li>I saw some discussion within the forum that for some of the ESCs current sensing is setup for all 4 channels and the output of the current is a total current measurement for all 4 channels.  Does the M0138 measure current individually on each channel or as a combined measurement of all 4 channels?</li>
<li>As a follow up to the last question, I tried to run calibration on each channel individually and did not see any current readings. Is there a way to run the calibration for all motors at once such as the spin test with running id <code>255</code>? I attempted to pass this argument and it failed: <code>./voxl-esc-calibrate.py --id 255 --pwm-min 10 --pwm-max 95</code></li>
<li>Do I need to configure anything in FW to read current?</li>
</ul>
<p dir="auto">Any help would be greatly appreciated!</p>
]]></description><link>https://forum.modalai.com/topic/3331/m0138-voxl-fpv-esc-no-current-readings-when-calibrating</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 13:28:52 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/3331.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Apr 2024 15:58:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M0138: VOXL FPV ESC - No Current Readings When Calibrating on Mon, 15 Apr 2024 18:52:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blue" aria-label="Profile: blue">@<bdi>blue</bdi></a> , i just fixed (a few days ago) the calibration script (on <code>voxl-esc</code> dev branch) to plot the total current for M0138 in the calibration procedure, however, yes you still need to run the calibration test using ID2. This is because ID2 measures the total current and it only sends back the data if the feedback is requested from it. If you are running a test on a single ESC which is not ID2, then ID2 is not asked to send any data back, this allows for 4x the feedback rate for that single ESC that is being tested.</p>
<p dir="auto">So on M0138 if you want to see the current output, you should use ID2 for testing:</p>
<pre><code>./voxl-esc-calibrate.py --id 2 --pwm-min 10 --pwm-max 95
</code></pre>
<p dir="auto">Currently, the current ( <img src="https://forum.modalai.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=68ea69aeb78" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> ) is not used for anything in the calibration procedure, but it is good to look at it to make sure it follows a smooth curve as the power ramps up.</p>
<p dir="auto">Thanks, I try to add as much data to plot as possible because it is often easier to spot issues by looking at the plots. By the way, it seems your data time scale is kind of coarse (seems like 14-15hz). Sometimes this can happen if your USB-to-serial adapter buffers too much data.. are you using a PC or VOXL for this test? if you are using FTDI, this may be helpful to test out : <a href="https://granitedevices.com/wiki/FTDI_Linux_USB_latency" rel="nofollow ugc">https://granitedevices.com/wiki/FTDI_Linux_USB_latency</a></p>
<p dir="auto">You should be able to get really nice plots when using 2Mbit baud rate and <code>--cmd-rate 1000</code> or even <code>2000</code> helps catch any small spikes or anomalies.</p>
<p dir="auto">In your calibration test that you originally posted (where the current was reported zero), it looks like towards the end, the top left curve (commanded motor voltage vs rpm) starts curving up a bit more, that can suggest that the motor is not operating optimally at that point. I am not sure which motor / propeller you are testing, but sometimes it helps to adjust the ESC commutation advance from 0 to 20 or so (esc param <code>&lt;param name="timing_advance"        value="20"/&gt;</code>). You could try that and see if the high end shape of the curve does not curve up as much.</p>
<p dir="auto">Alex</p>
]]></description><link>https://forum.modalai.com/post/16269</link><guid isPermaLink="true">https://forum.modalai.com/post/16269</guid><dc:creator><![CDATA[Alex Kushleyev]]></dc:creator><pubDate>Mon, 15 Apr 2024 18:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to M0138: VOXL FPV ESC - No Current Readings When Calibrating on Mon, 15 Apr 2024 18:08:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alex-kushleyev" aria-label="Profile: Alex-Kushleyev">@<bdi>Alex-Kushleyev</bdi></a> all good to go! Great work on this plotting feature, it is excellent <img src="https://forum.modalai.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f4af.png?v=68ea69aeb78" class="not-responsive emoji emoji-android emoji--100" style="height:23px;width:auto;vertical-align:middle" title=":100:" alt="💯" /></p>
<p dir="auto"><img src="/assets/uploads/files/1713204386280-voxl_esc_m0138_spin_test_results.png" alt="VOXL_ESC_M0138_Spin_Test_Results.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.modalai.com/post/16265</link><guid isPermaLink="true">https://forum.modalai.com/post/16265</guid><dc:creator><![CDATA[blue]]></dc:creator><pubDate>Mon, 15 Apr 2024 18:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to M0138: VOXL FPV ESC - No Current Readings When Calibrating on Mon, 15 Apr 2024 17:53:14 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/alex-kushleyev" aria-label="Profile: Alex-Kushleyev">@<bdi>Alex-Kushleyev</bdi></a> please disregard this. I just read through a post <a href="https://forum.modalai.com/topic/3318/motor-issues-when-running-esc-calibration/5">here</a> that mentions the current measurement on the calibration script is not currently working. It also states that M0138 only has current monitoring on <code>id 2</code></p>
<p dir="auto">I will run spin test command below for now to capture current via <code>id 2</code>:</p>
<pre><code>./voxl-esc-spin.py --id 2 --power 40 --ramp-time 2.0 --timeout 2.5 --enable-plot 1 --cmd-rate 250
</code></pre>
]]></description><link>https://forum.modalai.com/post/16264</link><guid isPermaLink="true">https://forum.modalai.com/post/16264</guid><dc:creator><![CDATA[blue]]></dc:creator><pubDate>Mon, 15 Apr 2024 17:53:14 GMT</pubDate></item></channel></rss>