Giter Club home page Giter Club logo

msrc's People

Contributors

dgatf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msrc's Issues

HW V4 EscC always 0

EscC is always 0.

image

Hobbywing Platinum V4 80A
Arduino Mini 3.3V/8MHz
RadioMaster TX16S
OpenTX 2.3.14

Inclusion of number of Sats locked onto please

Hi Daniel - any chance that you could add in the number of satelites fixed onto into the data stream either transmitted as SATS or as TMP2 please. The GPS widget that I was hoping to try using uses the number of satelites to start GPS logging etc.

Cheers,
Mike

BST (TBS Crossfire)

Hello, please do you plan to add also a BST (TBS Crossfire) telemetry protocol? It would be very helpful for me and probably also for other FPV fans not using FC.

Airspeed Bug

Found a small bug in Xbus.cpp.
Airspeed should look like this, speed written in lower case and a semicolon was missing at the end.

#if CONFIG_AIRSPEED
    static uint16_t maxAirspeed = 0;
    airspeed.update();
    uint16_t airSpeed = round(*airspeed.valueP());
    xbusAirspeed.airspeed = __builtin_bswap16(airSpeed);
    if (airSpeed > maxAirspeed) 
    {
        maxAirspeed = airSpeed;
        xbusAirspeed.maxAirspeed = __builtin_bswap16(airSpeed);
    }

Can the GPS speed be converted from KTS to KM/H

Can the GPS speed be converted from KTS to KM/H, and what is the current GPS refresh rate? Is it possible to increase the refresh rate to 10HZ per second!
Greetings from eastern countries, best wishes!
Thanks !

Not Working with castle ESC

I am trying to use it on a Talon 90, Horus X12 Express, I have some issues with the sensors not reading correctly, using with a 6s setup Voltage varies between 24,23,22v. When the motor is running i get values jumping all over the place like, 13, 18, 16 ,25,23, all at the same throttle input. I am somewhat new to Opentx so i dont know what i can do to fix this issue.Also i am using an arduino nano is what i had on hand for this project. I can try to help solve this issue

Syntax error if #define CONFIG_ESC_PROTOCOL PROTOCOL_CASTLE

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Pololu A-Star 328PB, 5V, 16MHz"

sketch\srxl.cpp: In member function 'void Srxl::send()':

srxl.cpp:78:40: error: 'xbusEsc' was not declared in this scope

     memcpy(buffer + 3, (uint8_t *)&xbusEsc, sizeof(xbusEsc));

                                    ^~~~~~~

sketch\srxl.cpp:78:40: note: suggested alternative: 'Xbus_Esc'

     memcpy(buffer + 3, (uint8_t *)&xbusEsc, sizeof(xbusEsc));

                                    ^~~~~~~

                                    Xbus_Esc

xbus.cpp:4:16: error: 'Xbus_Esc Xbus::xbusEsc' is not a static data member of 'class Xbus'

Xbus_Esc Xbus::xbusEsc;

            ^~~~~~~

sketch\xbus.cpp: In static member function 'static void Xbus::i2c_request_handler()':

xbus.cpp:56:36: error: 'xbusEsc' was not declared in this scope

     memcpy(buffer, (uint8_t *)&xbusEsc, sizeof(xbusEsc));

                                ^~~~~~~

sketch\xbus.cpp:56:36: note: suggested alternative: 'Xbus_Esc'

     memcpy(buffer, (uint8_t *)&xbusEsc, sizeof(xbusEsc));

                                ^~~~~~~

                                Xbus_Esc

sketch\xbus.cpp: In member function 'void Xbus::update()':

xbus.cpp:128:5: error: 'xbusEsc' was not declared in this scope

 xbusEsc.RPM = __builtin_bswap16(esc.read(CASTLE_RPM));

 ^~~~~~~

sketch\xbus.cpp:128:5: note: suggested alternative: 'Xbus_Esc'

 xbusEsc.RPM = __builtin_bswap16(esc.read(CASTLE_RPM));

 ^~~~~~~

 Xbus_Esc

exit status 1

'xbusEsc' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Example code for xbus

Hi, I need to convert an analog signal from a temperature sensor to the xbus port of my spektrum receiver. I will use a little Trinket 3v as arduino board.
Do you have an example code in order to understand how to use functions from xbus.h?
I'm a liitle bit lost at the moment ^^

Thank you

HW V4 EscA completely off.

Heli spooled up on the ground.
EscA shows around 133A.
Current clamp shows around 10A.
EscA is completely off.

Hobbywing Platinum V4 80A
Arduino Mini 3.3V/8MHz
RadioMaster TX16S
OpenTX 2.3.14

Spektrum X-bus -- Hobbywing HV V4 issue

Hello,

I uploaded the firmware and the arduino is pafaitement recognized in the telemetry in "auto-config".

In config.h I have activated "#define CONFIG_ESC_PROTOCOL PROTOCOL_HW_V4_HV".

however, when I plug the "hobbywing rpm" wire into my Arduino, I have no data going back.

cordially

XBus won't work with Teensy fix

In xbus.h etc use i2c_t3.h in place of wire.h tested with Teensy LC and 3.2 and AR8020T

#if defined(__MKL26Z64__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#include <i2c_t3.h>
#else
#include <Wire.h>
#endif

In xbus.cpp line 125 change to this

#if defined(__MKL26Z64__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#if CONFIG_ESC_PROTOCOL != PROTOCOL_NONE && CONFIG_ESC_PROTOCOL != PROTOCOL_PWM && CONFIG_ESC_PROTOCOL != PROTOCOL_CASTLE
    ESC_SERIAL.begin(19200);
    ESC_SERIAL.setTimeout(ESCSERIAL_TIMEOUT);
#endif
    Wire.begin(I2C_SLAVE, XBUS_AIRSPEED, XBUS_BATTERY,I2C_PINS_18_19, I2C_PULLUP_EXT, 400000);//Begin mask XBUS_AIRSPEED  end mask XBUS_BATTERY 
    Wire.onRequest(i2c_request_handler);
    I2C0_RA = XBUS_RPM_VOLT_TEMP << 1;
#endif

328P, Ibus protocol and GPS

I am on NANO 328p in USB, GPS BN220 and flysky receiver.
I noticed 2 problems with the GPS.
As soon as I define "GPS true" in config.h, all the sensors are at zero in my telemetry. (In ibus.cpp, when I put // in front of the LAT, LON and ALT lines, the other sensors work again) Could the problem come from the "IBUS_TYPE_S32" format?
Moreover when I connect the Tx GPS on the PIND7, my card is blocked. Do you think of a solution?
Merci

rpm limited ?

I am using an Arduino Pro Mini 3.3V/8Mhz with voltage1 and rpm sensors configured.
Rpm signal goes from a HW phase sensor to pin 8.
Rpm telemertry works up to about 2000 rpm, above 2000 rpm it drops to zero.
The signal on pin 8 is still there (about 1700 Hz).

I am running the same configuration with an 5V/16Mhz Arduino Pro Mini without problems.
Is the 3.3V/8Mhz too slow (I cannot believe that) ?

FPort support

Any chance to get FPort2 protocol supported ? That being bidirectional would allow to use a single board both for telemetry and ppm demux (obviously with limitations related to available pins)

APD ESC and Jeti telemetry

I have an APD F120X ESC and Jeti radio and ATmega328. I want to decode the telem using PWM over a single wire. Can you help me with this diagram? I'm not sure about 5V and ground lines. Thanks kindly!

APD ATmega2

Problem with "IBUS_TYPE_S32"?

Thank you for your work.
The last code is better (less latency) however the telemetry for LAT, LON and ALT blocks the feedback from all sensors. When I comment out the first 3 gps sensors in IBUS.cpp, the telemetry works again. A problem with "IBUS_TYPE_S32"?

Comment
GPS with comment
GPS without comment

Project won't fit on arduino pro mini.

Hi,
I tried to compile your project and arduino says, that project won't fit... it's 106% of capacity. Arduino Mini Pro here 5V 16MHz 328P. I don't need so many fancy features (specific temperature sensors), so can I shrink it down easily without heavy modifications?
Thanks in advance,
Vit

Get HW version info from ESC

I saw that for Hobbywing there is a start-up sequence of the data being sent for my HW v4 130A
I get the following sequence: 9B 3 E8 1 B 41 1E 92 0 21 21 B9

Is it possible to determine the ESC version based on the initial package load being send?

Problem when read RPM from the tachometer socket of a CDI petrol engine

Hello,

I tried to read the signal from the tachometer socket of the CDI of an RC petrol engine.
On the oscilloscope, It is normal square wave signal with 35% duty cycle and 5vpp signal.
The useful frequency range goes from 7 hz to 370 hz approximately (420 rpm to 22,200 rpm).
From 250hz upwards msrc sends the right value in telemetry, below 250hz (15.000rpm) approximately the value always drop to 0 rpm.
Why?

Settings: Multipl: 1, Blade: 1

Is the system set up for a higher frequency range produced by the ESCs?

Is a hw fequency multiplier necessary?

Thank you
Rosario

No GPS fix and output

I have connected a BN220 to an Arduino Pro Mini (3.3V).
The TX pin of the BN220 is connected to pin RX0 of the arduino. VCC is connected to VCC and GND to GND.
I enabled debug in MSRC.
My output is continuously:
14:17:26.886 -> 14:17:26.886 -> 3 RMC: 14:17:26.886 -> 4 VTG: 14:17:26.886 -> 1 GGA: 7(6)00, 14:17:26.886 -> 2 GLL: 14:17:26.886 -> 3 RMC: 14:17:26.886 -> 4 VTG: 14:17:26.886 -> 1 GGA: 14:17:27.123 -> 3 RMC: 14:17:27.161 -> 4 VTG: 14:17:27.198 -> 1 GGA: 7(6)00, 14:17:27.375 -> 2 GLL: 14:17:28.128 -> 3 RMC: 14:17:28.166 -> 4 VTG: 14:17:28.204 -> 1 GGA: 7(6)00, 14:17:28.349 -> 2 GLL: 14:17:29.166 -> 3 RMC: 14:17:29.166 -> 4 VTG:
Watching the GPS leds, I do not notice a GPS fix.
Can I troubleshoot somehow the Arduino Pro Mini has the correct code and whether GPS to Arduino connectivity is all ok?

Add support for old frsky telemetry protocol

Hi,

I've got back into the hobby after letting it sit for 10 years.
I've got old frsky receivers with the pre-sbus telemetry protocol.
Any chance to get support for that?

BR,
Markus

How I can add a third Voltage Sensor

Hi,
I want use 3 voltage sensor.
May I add a new sensor (how) on A4 or A5 or A6 input on Arduino Pro Mini with a resistive partitor?

if it is not possible in the current configuration, is it possible to replace it in place of T2?

I hope this is the right place to ask the question

Thank for your attention
Rosario

Jeti Ex, no telemetry

Hello Daniel,
came across a link to your sensor on RC Network.
Since I fly Jeti, I wanted to build a sensor with 2 voltage measurements as a start.
So Arduino Pro Mini 3.3V, 8MHz flashed with the configured SW and plugged into the RX.
The sensor does not appear in the telemetry selection of the transmitter.
To exclude a defect on the Arduino board, I have then aud the board a sketch of RCT
which works. Do you have a tip that the sensor works?
Actually I wanted to use the sensor with an ESC. But I am not yet so far.
I am still relatively inexperienced in Arduino history.

Jürgen

S-port over a single GPIO

Just thought I'd mention that you can get MSRC's S-port working over a single GPIO if you set PIN_SMARTPORT_RX and PIN_SMARTPORT_TX to the same pin. Works great and simplifies the circuit just a bit.

Hope this helps.

HW Platinum/Flyfun, innacurate voltage and current

Next test:
Voltage and current values can be trimmed to a usable accuracy by adjusting the divisor and ampGain in escHW4.h useful accuracy by adjusting the divisor or ampGain. Remaining measurement deviations probably come from the ESC.
I can't measure RPM at the moment, but it could be correct. After further fine tuning of the coefficients
I will test the combination in flight.
Attached is a short LOG file.

jeti_log_1.txt

No data Kontronik Jive

Issue: No telemetry data Kontronik Jive.

TX: Frsky X10S Express
RX: X4R (Smartport)

I have Smartport running, configured it with the lua script to use the Kontronik Protocol.
That works.. got all sensors discovered.

Connected the Jive to RX0 of my Nano.

I see there is data coming in.. but not passed thru to smartport..

I know the telemetry port works, because I use a Jlog S32 logger to read out it's telemetry.

Am I missing something?

I also tried a Pro Mini 328 @ 3.3v 8Mhz as suggested but nothing..
Smartport YES - Kontronik readings NO

msrc_gui_win.exe bug

When using msrc_gui_win.exe to select the altimeter to generate Config, the "I2C_" field is missing, which will cause a compilation error.

English is not good, hope you can understand

Lua Script

HI,
My radio is Radiomaster, receiver X8R Fr sky.
Board Arduino Pro Mini Atmega 328P
I have problem. I run lua script and all time is connecting on screen.
What I do wrong?

Robert

BMP280 and Ibus

I quickly tested the "BMP280 module 3.3V (6 pins, I2C/SPI)" with GPS and voltage.
I have 3 additional sensors which appear TEMP1, 00Gp and Vspd).
Temp1 displays 40° and the others are at 0.
GPS and voltage are OK.
I connected the BMP280 to the arduino nano at 3.3v, GND, A4 and A5. Did I forget something?

FSIA6B and LAT / LON

It's not really important but with the IA6B receiver, the GPS LAT and LON telemetry is at 0.
With the FSiA10B everything is ok.

1644829786052

HobbyWing V4 120A LV gives not date when motor off

You are right, only when the motor is is running the ESC is transferring data.

ESC-XBus.txt

That is not right, but the format is different when the motor is stopped.
I took your sniffer and as you can see in the logfile there are two different data lines if the motor is not runnig and only one if the motor is running.

HW_120A_V4.txt

Maybe you could optimize the data processing?

Lua script doesn't work on Horus

Fails on line 307 "lcd.drawText(410, 220, config.i2c1Address, getFlags(17))" with error "bad argument #3 to 'drawText' (string expected)" (and other couple of lines)...

current scale

I want to connect a current sensor to A6.
The current scale of the sensor is 19.1A/V.
I have entered a scale of 19.1 in OpenTX.
Then I tested msrc by applying voltage to pin A6.

These were the measurements:
1V 0.7A (expected 19.1A)
2V 1.4A (expected 38.2A)

I had to enter a scale of 484 to get the correct current displayed.

Arduino Pro Mini 3,3V/8MHz
Sensors HW3, current
Radiomaster TX16S
OpenTX 2.3.11

Teensy 3.2 Castle / Smartport

Hello,
on teensy 3.2 (master branch) after enabling Castle Smartport isn't working anymore, and for example the current sensor activated before is also lost.. So you also can't change it back via lua script.

Thanks
Christian

No data via XBUS on AR8020T

The final goal is to use a HW V4 120A LV with the AR8020T, everything with the latest firmware.

I use an ATmega328P Arduino Pro Mini 3.3V.

#define RX_PROTOCOL RX_XBUS
/* Sensors */
#define CONFIG_ESC_PROTOCOL PROTOCOL_HW_V4_LV

I tried with

/* Use library I2C_T3 for Teensy LC/3.X */
//#define I2C_T3_TEENSY

or without, but nothing works.

So I tried without the ESC connected and

#define SIM_SENSORS

but I still receive no ESC data at my transmitter. The AR8020T internal altitude, BEC voltage and Flight Log are working.

Smartport, GPS, voltage and BMP280

I just tested this configuration. There are several remarks:

  • Gspd to KTS

  • Vspd inconsistent value

  • Absence of BMP280 vario

  • Absence of ALT BMP280

  • GPS coordinates ok

  • Voltage ok

  • Galt ok

  • hdg ok
    1644686957973

bad quantization of analog "Curr" sensor ?

Hi, when i try to use "Curr" with an analog signal on ADC pin20 (on my TeensyLC) i get really bad quantization setps, like only a few steps for 0-100%..
BUT when i simply swap the pins in the MSRC code at constants.h (pin20 and 26 in my case) to use the current sensor on the Airspeed-input instead of the Current-input it is quantisizing fine like it should.

I mean without any hardware change.

any idea if that could be a bug beside the hardware which is working good with [email protected] Smartport, HobbyWing ESCv4, BMP280, 2xTemp analog.
For the current - since the Hobbywing 40A ESC has no built in shunt - I now use 1mOhm shunt resisor with a LM358N as diff-amp placed in the GND Cable, 0-40A equals 0-1.6V and it is working good, no bad noise with 1u and 220n caps, nice level shifing on a scope. Shunt is ok i guess.
btw: my ACS711EX hall current sensor was not usable because of far to heavy noise on the signal line on my try

AND: Great project!! everything is working superb after dealing with many many issues but that was perhaps all my fault and mainly Pololu 5V related

regards

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.