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 @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
More…