Search found 284 matches

by Raythegreat
Mon Oct 16, 2023 8:27 pm
Forum: General help (FrSky Taranis radio)
Topic: LUA and openTx
Replies: 3
Views: 7206

Re: LUA and openTx

Hi Kilrah,

Thank you.
This helped a lot.
I added a return 1 at the end of my script and I don't have the script syntax error anymore and the script worked.
My question now is what is the best way to guaranty a one-time script? With a return other than 0 or something else?

Ray
by Raythegreat
Mon Oct 16, 2023 4:06 am
Forum: General help (FrSky Taranis radio)
Topic: LUA and openTx
Replies: 3
Views: 7206

Re: LUA and openTx

Hi all, I'm struggling with lua scripts. Here is a problem I have. I wrote a lua script and I can run it successfully in the telemetry page and from any screen display. No error messages whatsoever and the script works well. But if I try to run the script from the SD card using with the execute comm...
by Raythegreat
Fri Oct 13, 2023 11:41 pm
Forum: General help (FrSky Taranis radio)
Topic: LUA and openTx
Replies: 3
Views: 7206

LUA and openTx

Hi, I'm building a motor thrust meter setup and would like to automate the entire process using my Taranis X9D+ (openTx), an Rx+ ESC + Lipo and LUA scripts. Can anyone can help me about about how to control the throttle using LUA? I studied the LUA manual and could not find a clear solution. Of cour...
by Raythegreat
Fri Sep 29, 2023 9:47 pm
Forum: General help (FrSky Taranis radio)
Topic: Glitches on my servos (USM)
Replies: 11
Views: 6247

Re: Glitches on my servos (USM)

Hi Bob, Unfortunately, I don't have another servo like these ones. It's a complicated job to de-install a servo and make a jig to intercept the data signal. This plane is grounded until I have more info. So according to Mike B, RF ACCST V2 should not be the culprit unless servo cables contaminate th...
by Raythegreat
Fri Sep 29, 2023 4:04 am
Forum: General help (FrSky Taranis radio)
Topic: Glitches on my servos (USM)
Replies: 11
Views: 6247

Re: Glitches on my servos (USM)

Hi Kilrah, Yes good idea as always. I should check the voltage at the servo itself with a scope Unfortunately I don't have a real scope. Maybe I can use the Arduino made scope. It's going to be difficult to check the voltage at the servo itself since wires are inside the wing. I would need to open t...
by Raythegreat
Sat Sep 23, 2023 1:53 am
Forum: General help (FrSky Taranis radio)
Topic: Glitches on my servos (USM)
Replies: 11
Views: 6247

Re: Glitches on my servos (USM)

Mike, Thanks again Mike, From what I have experienced with this plane (only 4 flights), only glitches were seen on the roll axis. A glitch on the rudder is pretty hard to see. As for the elevator, I don't think I saw something as bad as the roll problem. Please also note I only see that behavior wit...
by Raythegreat
Fri Sep 22, 2023 9:35 pm
Forum: General help (FrSky Taranis radio)
Topic: Glitches on my servos (USM)
Replies: 11
Views: 6247

Re: Glitches on my servos (USM)

Hi Mike, Thank you for your response. I have an AeroStar 60A ESC with a built in 5V 5Amps BEC. Battery is 3300mAh 4S. I checked the Rx voltage and it's a solid 5 volts even when I move all my four digital servos together (2 AIL, RUD, ELE). So there is no voltage drop on the RX. I determined that wit...
by Raythegreat
Thu Sep 21, 2023 5:28 pm
Forum: General help (FrSky Taranis radio)
Topic: Glitches on my servos (USM)
Replies: 11
Views: 6247

Re: Glitches on my servos (USM)

Thanks Bob. In my case I don't think it's caused by servo wires close together. I suspect more the RF link losing a frame, something like that. The USM are very sudden and cause a quick unwanted rolls (in this airplane). I've been suspecting this for a while but now with the digital servos, the USM ...
by Raythegreat
Thu Sep 21, 2023 4:04 am
Forum: General help (FrSky Taranis radio)
Topic: Glitches on my servos (USM)
Replies: 11
Views: 6247

Glitches on my servos (USM)

Hi, I flew today and I'm almost sure my plane got servo glitches or (USM) unintentional servo movements. The plane rolled suddently about 20 degrees. Quick correction after that. BUT it happened 3 to 4 times in flight. I have digital servos so they are fast to respond to glitches. SO: I have a Taran...
by Raythegreat
Mon Sep 11, 2023 11:21 pm
Forum: General help (FrSky Taranis radio)
Topic: LUA scripts not seen by openTx
Replies: 1
Views: 1854

Re: LUA scripts not seen by openTx

OK I found the problem.

The script filename needs to be 6 or less characters. I forgot that detail.

Ray
by Raythegreat
Mon Sep 11, 2023 9:23 pm
Forum: General help (FrSky Taranis radio)
Topic: LUA scripts not seen by openTx
Replies: 1
Views: 1854

LUA scripts not seen by openTx

Hi all, I'm experimenting with LUA scripts and have a few problems/questions. In my SCRIPTS/TELEMETRY directory I have 3 scripts files: snake.lua, test2.lua and switch_test.lua The script switch_test.lua is not seen by the openTX Taranis+ system. I have the latest firmware version and lua is enabled...
by Raythegreat
Thu Sep 07, 2023 8:53 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Thank you Mike,

Very helpful.
OUFFF... it's a good thing you gave me this info, I was violating this timing a lot.

I will try to make this work.

Thank you
Ray
by Raythegreat
Thu Sep 07, 2023 3:11 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, Thank you for the source code. So if I understand , I can't use some of the Arduino library or simply the delay function? Example: No Serial.print(number); This might complicate things for me. If it's only delay, then you provided the solution. Where in your loop() function is safe to inser...
by Raythegreat
Thu Sep 07, 2023 1:44 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, I have a strange problem related to the compiler and the SportToHub files. When I add in any very simple function the Arduino function delay(1000); to generate a one second stop or delay, the compiler generates errors. I have no idea why. Once I comment this line the compiler has no errors ...
by Raythegreat
Mon Sep 04, 2023 9:55 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Kilrah, Yes, my charger does it also but most chargers give notoriously bad values. Some chargers are good but I have never seen or owned one that gives real good values. Try the manual way and compare with your charger. You'll need a good multimeter and a know load. 1- Get a know resistor load. ...
by Raythegreat
Mon Sep 04, 2023 8:11 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Got it Mike. It seems to work very well and in real time when the balance cable is connected. But if there is zero volts coming in, the mechanism you described occurs. The arrays are not refreshed. So I will carry on with my code. I don't need to read 0 when not connected. Also it does not look like...
by Raythegreat
Mon Sep 04, 2023 3:40 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, I tried to study your code but it's a little to complicated for me. :oops: Please note I did not change TX_HUB_PIN to 5 yet. First I want to make sure I can read all the lipo individual cells from the balance cable. I was able to display on the serial monitor my 3S lipo cells. But there is ...
by Raythegreat
Sun Sep 03, 2023 11:14 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, Got it. I will try this: 1- With TX_HUB_PIN to 1, I will store the lipo cells values in global variables. Do two reads, one without load and one with load. 2- Put TX_HUB_PIN to 5. 3- Serial.print my Rin numbers after a few calculations. 4- Put back TX_HUB_PIN to 1. I won't try to send data ...
by Raythegreat
Sun Sep 03, 2023 6:40 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Mike,

Just one more question (I hope the last one) :D :

Can I use the Arduino Serial.print function in your loop() function to display my calculations after the reading the voltages?
I tried to debug with Serial.print(value); and nothing came out on the serial monitor.

Thanks,
Ray
by Raythegreat
Sun Sep 03, 2023 6:12 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike,

Wow! this works great now Mike.
Thank you very much for your support and this great software.

I should be able to generate the rest of the C code to read all the cells individually and calculate their own Rin.

Thank you again,
Ray
by Raythegreat
Sat Sep 02, 2023 11:18 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Oups, here is the picture
Don't worry about the data pin, it is well inserted.

Ray
20230902_191027.jpg
(799.58 KiB) Not downloaded yet
by Raythegreat
Sat Sep 02, 2023 11:16 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Mike,
Picture of my setup attached.
by Raythegreat
Sat Sep 02, 2023 11:07 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, Thanks again for your great support. It almost works. When lipo is not connected and all cells are at 0 volt, I do see 0.00 on the monitor. When lipo is connected to the FLVSS cell # 1 reads 3.83V and the monitor displays ^C.15 continuously. Not sure how that happens, your code seems to be ...
by Raythegreat
Sat Sep 02, 2023 8:30 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, This works. :D I see hello on my serial monitor. Great. So now I have to connect the FLVSS and see it I can print on the serial monitor the voltage values. right? If I can print them, then I will be able to apply my math equations to get the internal resistance of each cell. Mike, the C cod...
by Raythegreat
Sat Sep 02, 2023 1:42 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, OK this last directive worked! No more compilation errors. Now I have to find a way to read the character strings coming out from IO5. At this time I don't know how to do this but I'll do some work to find a way. So if I find a way to read IO5, will I be able to get the voltages from FLVSS?...
by Raythegreat
Fri Sep 01, 2023 2:47 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, Thanks for your support and patience. I did 100% what you said and still have the following error messages for the compiler below. I also included my directory SportToHub (pdf file) C:\Users\Raymond\AppData\Local\Temp\arduino\sketches\BD9F3EFA0E150E620CEF1CFC82F5B6D4\sketch\SportToHub.ino.c...
by Raythegreat
Thu Aug 31, 2023 12:07 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi Mike, I'm sorry but I'm confused. I'm new with Arduino so I'm learning. What do I need to do with these? SportToHub.ino SportToHub.cpp Aserial.cpp Aserial.h This is what I did: I used Aserial.cpp as the source file to compile and included header Aserial.h and Arduino.h in the Aserial.cpp file. Th...
by Raythegreat
Wed Aug 30, 2023 12:26 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

MikeB, These are the error messages I got just now in my last compilation. wiring.c.o (symbol from plugin): In function `__vector_16': (.text+0x0): multiple definition of `millis' C:\Users\Raymond\AppData\Local\Temp\arduino\sketches\63499F4BF97F76C5FF78FCC760617D29\sketch\Aserial_ray.ino.cpp.o (symb...
by Raythegreat
Wed Aug 30, 2023 12:11 am
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi MikeB, Yes I'm using the Arduino IDE (UNO). I will retry a compilation. I think I made a mistake, it is the aserial.h that is not seen. Don't know exactly why because it was in the working directory. I will investigate. I will try to understand more the C code. Your last post will help. Thanks, Ray
by Raythegreat
Mon Aug 28, 2023 10:44 pm
Forum: General help (FrSky Taranis radio)
Topic: Reading LiPo sensor FLVSS with Arduino Uno
Replies: 38
Views: 21964

Re: Reading LiPo sensor FLVSS with Arduino Uno

Hi MikeB, I tried to compile the aserial.cpp and it does not compile since I don't have the arduino.h. Where can I get this file? But also this aserial.cpp program code is too heavy for me to follow so I have a few more questions. I tried :-) You said the data should be coming out from D5. So does t...

Go to advanced search