Replies

          • hello Glenn, I know this is an old post, but did you by chance look into this any more?  It seems a whole lot more straightforward to invert the output signal and send directly from the PX4.

  • This weekend I bought a Teensy 3.1 from the Arduino booth at the maker faire I was flying drones on :)

    Yesterday I wired it to my OpenRLSng but failed to get telemetry info on my Taranis. So I just wanted to check some things:

    1. The Teensy flashes every second while it is starting up and is solidly lit when active so it seems, is this the correct behaviour?
    2. What is the baud rate the Teensy outputs the SmartPort telemetry? I guessed it was 57600 and setup my OpenRLSng TX accordingly.
    3. I also have a MinimOSD connected to my APM and with the Teensy connected too I see the OSD values update at a much higher rate than normally, is this because the Teensy "pulls" the telemetry faster?
    4. I setup my OpenLRSng RX with the telemetry function set to "yes" (options are no/yes/SmartPort/FrSky). I figured that Teensy already speaks SmartPort and therefore it should be transmitted verbatim, right?
    5. I have the signal inverter mod done on my OpenLRSng TX module as per these instructions. Do I still need this?

    I have made across-post of this on the OpenLRSng thread at RCGroups too and will share the answers. Thanks!

    3701698337?profile=original

    • very cool, i have been meaning to get my LRS project going... thanks for posting

  • Hello Rolf.

    Thanks for a great job, I'm very impressed.
    I have taken the liberty to change some of the code so Fuel can be read as a percentage.
    I do not know if it has use to anyone other then me, but I like to see how much I have left in the battery. 

    In "MavLink_FrSkySPort"

    // Message # 1 SYS_STATUS
    uint16_t ap_voltage_battery = 0; // 1000 = 1V
    int16_t ap_current_battery = 0; // 10 = 1A
    int16_t ap_battery_remaining = 0; // new

    ***

    ap_voltage_battery = Get_Volt_Average(mavlink_msg_sys_status_get_voltage_battery(&msg)); // 1 = 1mV
    ap_current_battery = Get_Current_Average(mavlink_msg_sys_status_get_current_battery(&msg)); // 1=10mA
    ap_battery_remaining = mavlink_msg_sys_status_get_battery_remaining(&msg); // new

    if(ap_battery_remaining<=0) // new
    {
    ap_battery_remaining=0; // new
    }

    ***

    In "FrSkySPort"

    case 19:
    FrSkySPort_SendPackage(FR_ID_FUEL,ap_battery_remaining); //new, the other line with FR_ID_FUEL is deleted
    break;

    It works with me, and I do not think it affects any of the other code.

    • I will most definitely uset his feature as I like to know the usage of the battery as well.


      Thanks for doing so.

  • I've got my Teensy to work! ...thank you Rolf and others ;)

    I've noticed one small issue. The Teensy does not always kick in after plugging main battery. Often, after I plug in main battery, I have to disconnect and reconnect Teensy from S.Port or disconnect and reconnect X8R from APM (I'm using CPPM converter).

    Also, the X8R has A1 built in analog voltage sensor providing the voltage that powers the X8R. So in case where Teensy is powered from X8R A2 is always same as A1.

    • A2 is coming from Teensy analog port A0, if this port is not connected then you will get a random value as A2.

      else if connected you will have 0V = 0 to 3.3V = 255 these values are then scaled at the Taranis to show a representation of the voltage.

      • Rolf I have a couple of questions about this reply.  First I am running an apm 2.6 with the teensy 3.1 board hooked to my Frysky 8XR receiver using my Taranis Transmitter.  My telemetry is working fine but my battery voltage (CEL and CELS) is showing .2 amps low.  Is there anyway to correct this or should I just work around this issue. (not a big deal...better lower than higher)

        My A2 reading on the Taranis is  jumping all over.  When I disconnect teensy it goes back to normal.  You mention that A2 voltage comes from pin A0, My A0 pin is not wired into anything.  How would I go about connecting and correcting it.

      • I understand. All I'm saying is that voltage on A1 and A2 is going to show the same value if Teensy is powered from X8R. 

        Any thoughts on the power-on issue I'm seeing? Almost always, after powering the main battery I have to unplug and replug Teensy from X8R to start it working. If I don't is seems "dead" ... no LED won't blink at all.

  • This is really cool. Thanks so much for creating this and all the helpful posts. I just received my Teensy today and hope to tinker with it this weekend. Took a couple of images of the board with my digital microscope here at work for anyone to use as reference, etc...

    3701694543?profile=original

    3701694718?profile=original(stitched images, 50x magnification)

    teensy_front_50x.jpg

    teensy_back_50x.jpg

    https://storage.ning.com/topology/rest/1.0/file/get/3701694543?profile=original
This reply was deleted.

Activity

DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
20 hours ago
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Thursday
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Wednesday
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Wednesday
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Wednesday
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…