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
RT @knightsautoteam: Hi @diyrobocars, we are Orlando's first Autonomous racing club and would love your support. We are hosting our first K…
Friday
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Jan 16
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Jan 16
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Jan 16
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
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
Nov 28, 2021
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…
Nov 26, 2021
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…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
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, 2021
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, 2021
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, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
More…