SciFi Model Action

The Arduino Exchange => The Arduino Exchange => Topic started by: RossW on September 16, 2017, 02:59:30 pm

Title: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 16, 2017, 02:59:30 pm
Almost 5 years in the making, here's my TOS E warp engine lighting solution available to all who are willing to put it together themselves. I'm providing the Arduino code (thanks Gadgetron_3000 for your post on LEDFader library - that was the crucial missing part and convinced me to switch from PIC Microcontrollers to Arduino), PCB boards (which you'll use to order yourself from places like OSH Park in the U.S.), schematics, parts list, and photos of the completed set up.

This is free for individual modellers to use, but not for sale by anyone other than me. So, it's OK to put a set together for a friend if they're not comfortable with soldering SMD components, but please do not sell them.

While I would have preferred to use 1 board to light both nacelles, that would mean running 9 wires up the nacelle pylons (7 for this board and another 2 for the motor). Not impossible, but my pylons are already glued together so the Arduino logic board will fit in the nacelle (my rear caps are removable and held in place my small magnets). With the Arduino logic boards in the nacelle, you need to run 4 wires - the 5V/GND for the Arduino logic board, and +ve/-ve wires for the motor.

The Arduino logic board needs a regulated 5V power supply, so if you're using 9V for the port lights you'll need a 5V regulator board. I got mine from Pololu.com. It handles both the blinking LEDs (my board has 15 blinkies - 5 larger ones and 10 SMDs) and the 5 pulsing amber LEDs. I found that rectangular LEDs look the best but you could substitute 3mm or 5mm round ones if desired. The fade up/down time and intensity is randomly set in each iteration through the loop. The max intensity values in the Random() function were chosen after much experimentation so that the blinkies don't overwhelm the ambers, but also don't disappear. Same goes for each resistor value chosen for the LEDs - not too bright but not too dim. This is also affected by how you finish the two domes - for mine, I sprayed a very light coat of Tamiya Clear Orange in the inside of the outer dome (after gently frosting the insides), and a heavier coat on the spinning inner dome. The blades are Bare Metal Foil (Chrome) - black is too dark for this scale, IMHO.

You can use different coloured blinking LEDs between the port an starboard nacelles, either just by rearranging the ones I used or using different colour combinations. Just be careful with he series resistors and test with your completed clear domes.

The board in the photos has a 3-pin JST connector to provide power, and a small slider switch to control what makes the amber LEDs pulse - I have a separate board for controlling the motors and that also includes a separate chip to control the amber LEDs - but the schematics and parts list reflect a 2-pin JST connector to simplify things for everyone else, so go by the schematics and parts list.

Here's a YouTube vide of the whole shebang in action: https://youtu.be/BucR-Cdlbos (https://youtu.be/BucR-Cdlbos)

Arduino sketch:
Code: [Select]
/*

Copyright (c) 2017 Ross A. Waddell

Sketch is for personal use only.


Change:

  Board -> Ardunio Pro or Pro Mini
  Processor -> ATmega328 (5V, 16Mhz)
  Port -> (whichever one has "usb" in it; board needs to be connected)
  Programmer -> AVRISP mkII


http://scifimodelaction.com/sfmaforum/index.php?topic=6850.msg88253#msg88253

  5 LED Random Intensity and Time Fader:

    - Fades five LEDs to random intensities (between 0 to 255) at random
      durations (between 0 to 1.5 seconds).

    - The LEDFader.h library will be needed.  The download and instructions can be found
      here: https://github.com/jgillick/arduino-LEDFader.

    - Based on original Arduino sketch by Jeremy Gillick
      (http://mozmonkey.com/2013/10/arduino-fade-leds-without-blocking/).

*/

#include <LEDFader.h>              // Don't forget to include the LEDFader libraries folder
#include <Curve.h>

// Config for blinking coloured LEDs
// =================================
#define LED_NUM 5                  // Number of LEDs

// 5 pin blinking LED setup
LEDFader leds[LED_NUM] = {
  LEDFader(3),                     // PWM pin
  LEDFader(5),                     // PWM pin
  LEDFader(6),                     // PWM pin
  LEDFader(9),                     // PWM pin
  LEDFader(10),                    // PWM pin
};

unsigned long OffTimerLEDs[LED_NUM];


// Config for pulsing amber LEDs
// =============================
#define AMBER_LED_PIN 11           // Amber LEDs output pin (5 in pentagon shape)
#define FADE_UP_TIME 2500          // Time to power up (power first turned on)
#define PULSE_TIME 600             // Fade down/up pulse time
#define MAX_BRIGHTNESS 200//190         // Max brightness of amber LEDs (can go up to 255)   -> 190 works well
#define MIN_BRIGHTNESS 185//175         // Min brightness of amber LEDs to fade down to (pulse)   -> 175 works well
#define DIR_UP 1
#define DIR_DOWN -1

LEDFader amber_led;
int direction = DIR_UP;


void setup() {
  randomSeed(analogRead(0));

  amber_led = LEDFader(AMBER_LED_PIN);
  amber_led.set_curve(&Curve::exponential);
  amber_led.fade(MAX_BRIGHTNESS, FADE_UP_TIME);
}
 
void loop() {

  // Pulsing amber LEDs
  // ==================

  amber_led.update();

  // LED no longer fading, switch direction
  if (amber_led.is_fading() == false) {

    if (direction == DIR_UP) {
      // Last faded up, so now fade down
      amber_led.fade(MIN_BRIGHTNESS, PULSE_TIME);
      direction = DIR_DOWN;
    }
    else {
      // Last faded down, so now fade up
      amber_led.fade(MAX_BRIGHTNESS, PULSE_TIME);
      direction = DIR_UP;
    }
  }


  // Blinking coloured LEDs
  // ======================
 
  unsigned long currentMillis = millis();


  // Update all LEDs and start new fades if any are done
  for (byte i = 0; i < LED_NUM; i++) {
    LEDFader *led = &leds[i];
    led->update();
 
    if (led->is_fading() == false) {
      // This LED is not fading, start a new fade

      // LED has stopped fading down (hopefully, we are capturing this just as it has ended)
      // Set timer for how long LED should stay off (if not set already)
      if (led->get_value() == 0 && OffTimerLEDs[i] == 0) {
        int offTime = random(100, 350);

        OffTimerLEDs[i] = millis() + offTime;
      } 
 
      int duration = random(95, 700);             // Randomly set fade duration between 95 to 700 ms (0.7 s)
      // int duration = random(75, 700); -> alternate timings; use what best suits you
      // int duration = random(100, 750);
      // int duration = random(0, 750);
      // int duration = random(1000, 3000);
 
      if (led->get_value() == 0 && currentMillis > OffTimerLEDs[i]) {
        // Was fading down, so now fade up (but only if the elapsed time for the off value has been exceeded)
        OffTimerLEDs[i] = 0;
       
        byte intensity = random(7, 15);           // Randomly set brightness intensity between 7 and 15
                                                  // PWM: 0 (off) to 255 (maximum)
        // byte intensity = random(5, 15); -> alternate intensities; use what best suits you
        // byte intensity = random(15, 50);
        // byte intensity = random(0,75);
        // byte intensity = random(100, 255);

        led->fade(intensity, duration);
      }
      else {       
        // Was fading up, so now fade down
        led->fade(0, duration);
      }
    }
  }
}


Note - you need to grab the LEDFader library from GitHub as mentioned in Gadgetry_3000's post (link to that topic is in the code above).

Fritzing schematic:
(https://farm5.staticflickr.com/4408/36428510564_0374e6572d_c.jpg) (https://flic.kr/p/Xv4D3m)TOS E Warp Engines (Arduino Pro Mini) (https://flic.kr/p/Xv4D3m) by Ross the Boss (https://www.flickr.com/photos/rwaddell/), on Flickr

Arduino logic board:
(https://farm5.staticflickr.com/4332/36428511474_e7d6030592_c.jpg) (https://flic.kr/p/Xv4Dj3)Arduino_Logic_Board_Front (https://flic.kr/p/Xv4Dj3) by Ross the Boss (https://www.flickr.com/photos/rwaddell/), on Flickr

Nacelle disc:
(https://farm5.staticflickr.com/4402/36428510994_3a885f6c78_c.jpg) (https://flic.kr/p/Xv4DaL)Nacelle_Disc_Front (https://flic.kr/p/Xv4DaL) by Ross the Boss (https://www.flickr.com/photos/rwaddell/), on Flickr

All the files you need are in my Google Drive folder:
https://drive.google.com/open?id=0B-ikhAQea-PaU1dtTGxSa2pDQU0 (https://drive.google.com/open?id=0B-ikhAQea-PaU1dtTGxSa2pDQU0)

Happy modelling!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: Tritanium on September 16, 2017, 04:07:53 pm
I just went to the YouTube video and watched this in action.  My jaw is on the floor, Ross.  Let me be the first to say this is GENIUS.  Nice work!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 16, 2017, 04:46:48 pm
I just went to the YouTube video and watched this in action.  My jaw is on the floor, Ross.  Let me be the first to say this is GENIUS.  Nice work!

Thanks very much, Tritanium!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: Gadgetron_3000 on September 17, 2017, 10:48:10 am
Insanely cool and awesome!   8)

I don't believe there is a PCB solution better than yours.  Cool use of the Darlington transistor array.

You have set the bar so far up high!

Thanks for sharing your work.

:)
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 17, 2017, 12:46:13 pm
Insanely cool and awesome!   8)

I don't believe there is a PCB solution better than yours.  Cool use of the Darlington transistor array.

You have set the bar so far up high!

Thanks for sharing your work.

:)

Thanks very much, Gadgetron_3000. That means a lot to me coming from you. And I owe it all to you thanks to your post from earlier this year.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: khitomer on September 17, 2017, 06:20:15 pm
What can I say but WOW !!!!!!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 17, 2017, 07:02:45 pm
What can I say but WOW !!!!!!

Thanks khitomer!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: whb64 on September 17, 2017, 09:33:52 pm
I think you just set the new standard for this build.  I know I'll be picking your brains when I finally get around to building mine.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 17, 2017, 09:58:37 pm
I think you just set the new standard for this build.  I know I'll be picking your brains when I finally get around to building mine.

 ;)
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on September 18, 2017, 09:07:28 am
This is SO awesome!  I can't thank you enough for sharing all this information with us.  I'm going to order my boards today!

Thanks again,

-Rich
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 18, 2017, 09:50:24 am
This is SO awesome!  I can't thank you enough for sharing all this information with us.  I'm going to order my boards today!

Thanks again,

-Rich

You're welcome! And please update this thread once you get it all working - I'd love to see it.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on September 26, 2017, 07:51:51 am
Will do!

I was looking at the photos and videos in your Flikr link, looks like you drilled out those terrible inner dome shafts.  Do you have any more info on how you mounted those domes, and what motors you used?  I'd love to use stepper motors and mount them in the back of the bussard cap, like it looks like you did.

(EDIT): I found your posts about which motors you used (should have done a search before posting!   ::)  I'd still be interested in knowing how you mounted the inner domes, if I overlooked that info.

Thanks!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 26, 2017, 11:08:03 am
Will do!

I was looking at the photos and videos in your Flikr link, looks like you drilled out those terrible inner dome shafts.  Do you have any more info on how you mounted those domes, and what motors you used?  I'd love to use stepper motors and mount them in the back of the bussard cap, like it looks like you did.

(EDIT): I found your posts about which motors you used (should have done a search before posting!   ::)  I'd still be interested in knowing how you mounted the inner domes, if I overlooked that info.

Thanks!

I removed the inner dome shafts entirely, then used a jig to drill a hole dead centre for a 4/40 screw. This attaches to a DU-BRO 4/40 threaded coupler that I tapped a 4/40 thread in the top to accept the screw. The threaded coupler screws into a bearing I got from Electronic Goldmine, and then that attaches to the Faulhaber motor via a small piece of tubing.

Btw, I'm not using kit part #42 at all.

https://www.flickr.com/gp/rwaddell/7P1g78 (https://www.flickr.com/gp/rwaddell/7P1g78)

https://www.flickr.com/gp/rwaddell/24iSV1 (https://www.flickr.com/gp/rwaddell/24iSV1)

https://www.flickr.com/gp/rwaddell/6d4ab5 (https://www.flickr.com/gp/rwaddell/6d4ab5)

https://www.flickr.com/gp/rwaddell/7oM8rN (https://www.flickr.com/gp/rwaddell/7oM8rN)



Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on September 26, 2017, 12:16:09 pm
Very nice!  Is the motor physically mounted to the nacelle, or does the foam act as it's 'mount'?

Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 26, 2017, 12:44:18 pm
Very nice!  Is the motor physically mounted to the nacelle, or does the foam act as it's 'mount'?

I found a small foam roller at Michael's that's just the right diameter to fit snugly inside the nacelle, so it acts as the motor mount (and helps reduce noise). If any part of the motor touches a plastic part of the kit, that's where you'll get a lot of noise (the reason the PL lighting kit motor is so loud, IMHO).
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on September 26, 2017, 12:47:25 pm
Yup, I agree, I've noticed the motors I've tested get MUCH louder when attached to the plastic.  I love your solution.

Again, thanks so much for sharing this information!

-Rich
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on September 26, 2017, 01:18:58 pm
Yup, I agree, I've noticed the motors I've tested get MUCH louder when attached to the plastic.  I love your solution.

Again, thanks so much for sharing this information!

-Rich

You're most welcome!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on October 16, 2017, 08:39:25 am
I'm getting there, I still have to install the LEDs......

(https://lh3.googleusercontent.com/O-MBTIHGTikinSZZNtXtoZGFvZ5KkU0vprkxu8dCV6ViOQooFTiWAZ7DYdUh6VzUOcGJlh9-vcG9wOdPBhniviMLkbf2Qp_k5mT0PdA9SnOFWZD438YO13hzR2we0ID0lXyggVI0gOfyrMtO6e7q14JlfjtXCdiDvGvcc3NmrTub-jVGltsG72jTSfBDx5jhMfWRtDI53b3iJhi7OeFQFdke_etEnDADBExwoS5Io6sjry9CRbm4EiGP1PXOGjkEegvi-2-ym7W2oJ3NW3DXpnGfb-pEgIPHA7CHFHhoBIjUEboTH6xOcLmXXLTM72Smw6igKxqxnX6lGLIdpxnBo9JUmLxmMZkdiTwfgjcpjiKl_C8qE3g-aDQdKZbyGeTbfhjb7di8QDBNxJu9Aj5kcluXYv__sIeZvuR5DLj_gRUyl5PTGp8I9XgbLpSQbPBdUqxc0yzkO6wMNadg3HnMJXZQ_odX5kMgAs0Is9_6zF8PGKKqwY7s-GZVPR4Q0KZA4ZZ2lCBJqJD6YIIX28wEmlXdqLVDoYkTkM-SuxDzIX-Iti1IAEz7WWKLrCBX0IWxd_O1Ht774iXDGdaU2uYuV865A-iRqHyZhArapWbE6A=w800-h600-no)

(https://lh3.googleusercontent.com/w3MIR4vTxpVVangmiN7VceTq9wuxRLDuqarLLKuf_PKhYAdIY7_j3x7XPtPh9RagJagWaaTOUEb09bmRVFJA7Z3ZzBWXp6IhID-jgKQ_kj5Alf4hhy_A-tCsVBzhIOiZA3ge2DYCndSXtXxe7BkC6koU2_9U5v5-gr4flQQLCf3OB_wtJEOUfrZQKR4T3U3y05JqqcOCQPB--RcW5e143FShZOnmBv_SEfo55eQiDPC0SoOUM4IEIJSXME9yiLfzGX24eEnItUGAMA7__PHgYF9nGhmA8gmwd9OVOPecSTGxYMe5cuAqNK_HGah_DfLKRc_bGhHiIN4BlfRa5bXcYdIq-wHRV9lwnkBKLZjSc6KstL_elBYYfTIjHH4EZ1TCrC-RP-_XnLMncaeYKbddJ8JA3mWlWfcwdQwqJ8_M2Ly_6NQ9oUha2inJwT8p6Np0Hq6sbeMmfYyeRsbx8mkBYGK3OdFAbREirfSQ3DnkhGsNPpZUvb7jY-YHgwODLHOqCJZ08EN0Eq2x3vhRMs3t5f8j4V-BhPVNjlLPkWAG2G8eeFNNJhVvy4lxq8fmCenZtACOqVc-WYG-wrCnVpYUQx_Qk732OjRixKVBkY1Blg=w800-h600-no)
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on October 16, 2017, 09:18:41 am
I'm getting there, I still have to install the LEDs......

(https://lh3.googleusercontent.com/O-MBTIHGTikinSZZNtXtoZGFvZ5KkU0vprkxu8dCV6ViOQooFTiWAZ7DYdUh6VzUOcGJlh9-vcG9wOdPBhniviMLkbf2Qp_k5mT0PdA9SnOFWZD438YO13hzR2we0ID0lXyggVI0gOfyrMtO6e7q14JlfjtXCdiDvGvcc3NmrTub-jVGltsG72jTSfBDx5jhMfWRtDI53b3iJhi7OeFQFdke_etEnDADBExwoS5Io6sjry9CRbm4EiGP1PXOGjkEegvi-2-ym7W2oJ3NW3DXpnGfb-pEgIPHA7CHFHhoBIjUEboTH6xOcLmXXLTM72Smw6igKxqxnX6lGLIdpxnBo9JUmLxmMZkdiTwfgjcpjiKl_C8qE3g-aDQdKZbyGeTbfhjb7di8QDBNxJu9Aj5kcluXYv__sIeZvuR5DLj_gRUyl5PTGp8I9XgbLpSQbPBdUqxc0yzkO6wMNadg3HnMJXZQ_odX5kMgAs0Is9_6zF8PGKKqwY7s-GZVPR4Q0KZA4ZZ2lCBJqJD6YIIX28wEmlXdqLVDoYkTkM-SuxDzIX-Iti1IAEz7WWKLrCBX0IWxd_O1Ht774iXDGdaU2uYuV865A-iRqHyZhArapWbE6A=w800-h600-no)

(https://lh3.googleusercontent.com/w3MIR4vTxpVVangmiN7VceTq9wuxRLDuqarLLKuf_PKhYAdIY7_j3x7XPtPh9RagJagWaaTOUEb09bmRVFJA7Z3ZzBWXp6IhID-jgKQ_kj5Alf4hhy_A-tCsVBzhIOiZA3ge2DYCndSXtXxe7BkC6koU2_9U5v5-gr4flQQLCf3OB_wtJEOUfrZQKR4T3U3y05JqqcOCQPB--RcW5e143FShZOnmBv_SEfo55eQiDPC0SoOUM4IEIJSXME9yiLfzGX24eEnItUGAMA7__PHgYF9nGhmA8gmwd9OVOPecSTGxYMe5cuAqNK_HGah_DfLKRc_bGhHiIN4BlfRa5bXcYdIq-wHRV9lwnkBKLZjSc6KstL_elBYYfTIjHH4EZ1TCrC-RP-_XnLMncaeYKbddJ8JA3mWlWfcwdQwqJ8_M2Ly_6NQ9oUha2inJwT8p6Np0Hq6sbeMmfYyeRsbx8mkBYGK3OdFAbREirfSQ3DnkhGsNPpZUvb7jY-YHgwODLHOqCJZ08EN0Eq2x3vhRMs3t5f8j4V-BhPVNjlLPkWAG2G8eeFNNJhVvy4lxq8fmCenZtACOqVc-WYG-wrCnVpYUQx_Qk732OjRixKVBkY1Blg=w800-h600-no)

Awesome! So cool to see someone else use my boards! Keep us posted on your progress.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on October 16, 2017, 10:14:25 am
Awesome! So cool to see someone else use my boards! Keep us posted on your progress.

I certainly will.

I did notice a difference in the arduino boards, it seems to differ from the one in your photo in that there is now SW1 and there is a 2 lead connector instead of the 3 lead connector.  I see a couple small holes where SW1 would have been, I assume I leave those alone?

Thanks!
-Rich
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on October 16, 2017, 10:20:44 am
Awesome! So cool to see someone else use my boards! Keep us posted on your progress.

I certainly will.

I did notice a difference in the arduino boards, it seems to differ from the one in your photo in that there is now SW1 and there is a 2 lead connector instead of the 3 lead connector.  I see a couple small holes where SW1 would have been, I assume I leave those alone?

Thanks!
-Rich

You are correct, Rich - the one in my photos represent the original use with the code to pulse the amber LEDs being on a different board off ship. Since I got the pulsing working on the Arduino (along with the blinkies), you only need 2-lead connector to run the board (+5V & GND). The switch SW1 on my personal board is there to let me switch between the Arduino and the code from the off-ship board if I want.

BTW, those small holes are called "Vias" and they connect signals from one side of the board to the other (If you hold the board up to the light at an angle you can make out the traces). Nothing is done with those - you just leave them as-is.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: rmpitzer on October 16, 2017, 10:31:32 am
You are correct, Rich - the one in my photos represent the original use with the code to pulse the amber LEDs being on a different board off ship. Since I got the pulsing working on the Arduino (along with the blinkies), you only need 2-lead connector to run the board (+5V & GND). The switch SW1 on my personal board is there to let me switch between the Arduino and the code from the off-ship board if I want.

BTW, those small holes are called "Vias" and they connect signals from one side of the board to the other (If you hold the board up to the light at an angle you can make out the traces). Nothing is done with those - you just leave them as-is.

Great, thanks!  I'm sure I'll have more questions.  This is something totally new to me, I've never done any SMD soldering before, and consider myself almost legally stupid when it comes to electronics.  :P . I did purchase an SMD Practice Board from Amazon, and put that together and it actually worked, so I am hopeful I can manage to make this work too.   :)

-Rich
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on October 16, 2017, 10:40:02 am
You are correct, Rich - the one in my photos represent the original use with the code to pulse the amber LEDs being on a different board off ship. Since I got the pulsing working on the Arduino (along with the blinkies), you only need 2-lead connector to run the board (+5V & GND). The switch SW1 on my personal board is there to let me switch between the Arduino and the code from the off-ship board if I want.

BTW, those small holes are called "Vias" and they connect signals from one side of the board to the other (If you hold the board up to the light at an angle you can make out the traces). Nothing is done with those - you just leave them as-is.

Great, thanks!  I'm sure I'll have more questions.  This is something totally new to me, I've never done any SMD soldering before, and consider myself almost legally stupid when it comes to electronics.  :P . I did purchase an SMD Practice Board from Amazon, and put that together and it actually worked, so I am hopeful I can manage to make this work too.   :)

-Rich

Good luck! For soldering SMD components, I do this:

Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: Spencer on October 16, 2017, 11:29:06 am
Very very nice!

I had been toying around with something similar, but instead put a surface mount Attiny85 an the back of each board to run 5 random blinkers.

This looks MUCH nicer though!

Spencer
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on October 16, 2017, 11:58:16 am
Very very nice!

I had been toying around with something similar, but instead put a surface mount Attiny85 an the back of each board to run 5 random blinkers.

This looks MUCH nicer though!

Spencer

Thanks Spencer!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: MarkW on October 17, 2017, 03:15:06 pm
Ross, can you do a sound video to demonstrate how quiet these motors are?  I've seen small, quiet 60 RPM motors in action, but still haven't found any to buy.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on October 17, 2017, 03:27:16 pm
Ross, can you do a sound video to demonstrate how quiet these motors are?  I've seen small, quiet 60 RPM motors in action, but still haven't found any to buy.

https://youtu.be/ghhA6c6YIwI (https://youtu.be/ghhA6c6YIwI)

These are Faulhaber motors I got on eBay (they're used). At the RPM range needed for the TOS E, they're barely perceptible.

The lighting board here is a much older one than what I posted above, btw. And I balanced out the intensity so you can see the coloured blinkies.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: MarkW on October 17, 2017, 03:56:36 pm
Very nice!  The original kit ones are terrible.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on October 27, 2017, 08:39:42 pm
BTW, I will soon be posting my board and code for the main TOS E board that controls the blinking running lights (saucer), the strobes on the rear sides of the secondary hull, and the warp engine motor speed controller - all in one! Just need to get the prototypes back from the PCB house and do a video or two.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: Gadgetron_3000 on November 01, 2017, 01:13:22 am
I will soon be posting my board and code for the main TOS E board that controls the blinking running lights (saucer), the strobes on the rear sides of the secondary hull, and the warp engine motor speed controller - all in one! Just need to get the prototypes back from the PCB house and do a video or two.

I can't wait to see what you came up with!

Thanks again for sharing your work with all of us.  :)
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on November 01, 2017, 08:08:49 am
I will soon be posting my board and code for the main TOS E board that controls the blinking running lights (saucer), the strobes on the rear sides of the secondary hull, and the warp engine motor speed controller - all in one! Just need to get the prototypes back from the PCB house and do a video or two.

I can't wait to see what you came up with!

Thanks again for sharing your work with all of us.  :)

Thanks Gadgetry_3000! The truth is, I owe this all to you and your posts.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on November 18, 2017, 07:15:34 pm
As promised, here is a preview of my custom motor control circuit board that lets you set the motor speed and direction (in case you wire up one or both motors so that they do not spin in the direction you want, or you want them to spin in the same direction instead of the usual opposite). In addition, the Arduino Pro Mini code includes the blinking saucer/running lights and secondary hull strobes, and also provides the +5V power for the nacelle circuit boards.

https://youtu.be/hNSNiDlSsSk (https://youtu.be/hNSNiDlSsSk)

I will be doing a separate post later on that has all the code, schematic and board design details.
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: Gadgetron_3000 on November 18, 2017, 07:57:10 pm
As promised, here is a preview of my custom motor control circuit board that lets you set the motor speed and direction (in case you wire up one or both motors so that they do not spin in the direction you want, or you want them to spin in the same direction instead of the usual opposite). In addition, the Arduino Pro Mini code includes the blinking saucer/running lights and secondary hull strobes, and also provides the +5V power for the nacelle circuit boards.

https://youtu.be/hNSNiDlSsSk (https://youtu.be/hNSNiDlSsSk)

I will be doing a separate post later on that has all the code, schematic and board design details.

So smooth!

This project keeps getting better and better!

:)
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on November 18, 2017, 08:38:26 pm
As promised, here is a preview of my custom motor control circuit board that lets you set the motor speed and direction (in case you wire up one or both motors so that they do not spin in the direction you want, or you want them to spin in the same direction instead of the usual opposite). In addition, the Arduino Pro Mini code includes the blinking saucer/running lights and secondary hull strobes, and also provides the +5V power for the nacelle circuit boards.

https://youtu.be/hNSNiDlSsSk (https://youtu.be/hNSNiDlSsSk)

I will be doing a separate post later on that has all the code, schematic and board design details.

So smooth!

This project keeps getting better and better!

:)

Thanks again!
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: MarkW on November 18, 2017, 10:52:59 pm
What is the treated/nominal spied of the motor?
Title: Re: TOS E Warp Engine Lighting Effect - Custom Solution
Post by: RossW on November 19, 2017, 10:41:27 am
Quote
What is the treated/nominal spied of the motor?

That is a good question. The reason I cannot program a nominal speed is because this is a DIY project for modelers to put together themselves, with their own motors. Also, to make the speed control as simple as possible the Arduino code is always reading from a trim pot and converts the 0-5V analog reading to a PWM value between 0-255. So, no nominal speed; modelers would have to run it next to a clip from their show to get what they want.

[As an aside, this is the 3rd attempt at responding to Mark s post; turns out this site cannot handle contractions, or more specifically single quotes - all text disappears after a quote on save]

[Second aside - I accidentally edited Mark s post; how am I able to modify another person s post?]