Replies

  • I found this great website to help you compare products and brands: http://www.nauticexpo.com/boat-manufacturer/navigation-light-398.html

  • I just use this controller on my quad, with the really high vis LED's:

    http://www.braincube-aero.com/index.php?main_page=product_info&....

    Runs off a single channel. Simples. Warning: it's heavier than you might think.

  • You could use an unused servo channel for this. In them Mission planner there is a special waypoint type (DO_SET_SERVO) which can change a servo channel output on APM (that way, it would also be possible to change the lights directly from the Transmitter).

     

    I am using an ATtiny85(~$3) to switch some additional stuff. I am only switching LEDs, you probably would need a FET to switch more powerful lights.

    Example ATtiny85 code:


    /**
    * Read PPM signal
    *
    * Decode r/c receiver PPM servo signal and turn lights on
    * according to servo position.
    *
    * $Id$
    */

    // from which pin to read.
    #define PIN_PPM  0
    #define PIN_POS1 3
    #define PIN_POS2 4

    // the length of the pulse (in microseconds) or 0 if no pulse 
    // started before the timeout (unsigned long)
    unsigned long duration, lastgood = 0;
    int position= 0;

    void setup() {
      pinMode(PIN_PPM, INPUT);
      pinMode(PIN_POS1, OUTPUT);
      pinMode(PIN_POS2, OUTPUT);
      digitalWrite(PIN_POS1, LOW);
      digitalWrite(PIN_POS2, LOW);
      //Serial.begin(115200);
    }

    void loop() {
      duration = pulseIn(PIN_PPM, HIGH, 20000);
      if (duration == 0) {
        duration = lastgood;
      } else {
        lastgood = duration;
      }
      
      position = map(lastgood, 1000, 2000, 0, 2);
      if (position > 0) {
        digitalWrite(PIN_POS1, HIGH);
      } else {
        digitalWrite(PIN_POS1, LOW);
      }
      
      if (position > 1) {
        digitalWrite(PIN_POS2, HIGH);
      } else {
        digitalWrite(PIN_POS2, LOW);
      }
    }

    Best

    -S

    AVR 8 Pin 20MHz 8K 4A/D - ATtiny85
    Atmel's itty-bitty ATtiny85 8-Bit Processor. 8K of program space, 6 I/O lines, and 4-channel 10 bit ADC. Runs up to 20MHz with external crystal. Pack…
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
yesterday
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
Nov 23
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
Nov 23
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…
Nov 23
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…