Welcome, %1$s. Please login or register. - Did you miss your activation email?

Login with username, password and session length
 

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Members Model Gallery / Re: My Reliant 1/537 final build.
« Last post by Shawn McClure on December 13, 2018, 10:41:47 pm »
Thank you so much Lain.

Shawn
22
The Arduino Exchange / Re: Need some newbie help!
« Last post by simi on December 13, 2018, 07:31:28 pm »
Well, here's the 2 sketches combined.  The 2 flickering LEDs are on pins 5 and 6, while the others are on whatever you had before.  Didn't actually test this, but it did compile :). And it's not the prettiest code in the world.   Also, since this sketch that you're using has only 3 pins (I would recommend using a pin/LED) are you having 1 or 2 of the arduino pins driving MORE than one LED?  If so, that's OK as long as the resistors are high enough to keep the amp below 20mA.  Or you can use a pin/LED with lower resistors (but still keep each pin at or under 20mA).  Lemme know on that....also - the flickering rate for the "candle" effect in the code below can be changed somewhat by changing the 50 millis to some higher or lower value.  Also, you can change the random number to something more definitive.  And lastly, the controlEngines() method you can change to something that makes sense for you sketch (ie, controlDamage or something like that).  That's if you want.  I just copied the the code I used to have a random nacelle flicker with red LEDs.


class Flasher
{
  // Class Member Variables
  // These are initialized at startup
  int ledPin; // the number of the LED pin
  long OnTime; // milliseconds of on-time
  long OffTime; // milliseconds of off-time

  // These maintain the current state

  int ledState; // ledState used to set the LED
  unsigned long previousMillis; // will store last time LED was updated
  // Constructor - creates a Flasher
  // and initializes the member variables and state
  public:
  Flasher(int pin, long on, long off)
  {
    ledPin = pin;
    pinMode(ledPin, OUTPUT);
    OnTime = on;
    OffTime = off;
    ledState = LOW;
    previousMillis = 0;
  }

  void Update()
  {
    // check to see if it's time to change the state of the LED
    unsigned long currentMillis = millis();
    if((ledState == HIGH) && (currentMillis - previousMillis >= OnTime))
    {
      ledState = LOW; // Turn it off
      previousMillis = currentMillis; // Remember the time
      digitalWrite(ledPin, ledState); // Update the actual LED
    }
    else if ((ledState == LOW) && (currentMillis - previousMillis >= OffTime))
    {
      ledState = HIGH; // turn it on
      previousMillis = currentMillis; // Remember the time
      digitalWrite(ledPin, ledState); // Update the actual LED
    }
  }
};
Flasher led1(7, 100, 10);
Flasher led2(8, 450, 2000);
Flasher led3(4, 400, 400);

const int STARBAORD_ENGINE_LIGHT_PIN = 5 ;
const int PORT_ENGINE_LIGHT_PIN = 6 ;

long engineCurrentMillis = 0 ; //timer for the engine lights
long engineMillis = 0 ; // timing variable for the Engines

void setup()
{
  pinMode( STARBAORD_ENGINE_LIGHT_PIN, OUTPUT ) ; 
  pinMode( PORT_ENGINE_LIGHT_PIN, OUTPUT ) ;
}

void loop()
{
  led1.Update();
  led2.Update();
  led3.Update();
  //random flicker
  controlEngines() ;
}

void controlEngines()
{
  engineCurrentMillis = millis() ;
 
  if( engineCurrentMillis-engineMillis >50 )// change this value to get different flickering rates
  {
    analogWrite( STARBAORD_ENGINE_LIGHT_PIN, random(255) ); //randomly set LED level from  0-255
    analogWrite( PORT_ENGINE_LIGHT_PIN, random(255) );//randomly set LED level from  0-255
    engineMillis = millis() ;
  }
}
23
The Arduino Exchange / Re: Need some newbie help!
« Last post by simi on December 13, 2018, 07:16:56 pm »
Hey - it looks like you have pins that conflict between the 2 sketches.  That could probably be resolved.  The other minor issue with the candle sketch is its use of the delay function.  That's will throw a little bit of a monkey in the wrench if you try to combine the 2 sketches.  Basically, a delay stops ALL processing until it completes.  There are other methods to get around this too.  Question on the candle sketch - Can  you compare it (try running this) and see which one "looks" better for you situation.  These use pins 5 and 6 (controls 2 LEDs).  The sketch below is a bit easier to combine with the other -but try it out.  If you really like the candle one you got - could be updated to work.


const int STARBAORD_ENGINE_LIGHT_PIN = 5 ;
const int PORT_ENGINE_LIGHT_PIN = 6 ;

long engineCurrentMillis = 0 ; //timer for the engine lights
long engineMillis = 0 ; // timing variable for the Engines

void setup()
{
  pinMode( STARBAORD_ENGINE_LIGHT_PIN, OUTPUT ) ; 
  pinMode( PORT_ENGINE_LIGHT_PIN, OUTPUT ) ;
}

void loop()
{
  //random flicker
  controlEngines() ;
}

void controlEngines()
{
  engineCurrentMillis = millis() ;
 
  if( engineCurrentMillis-engineMillis >50 )// change this value to get different flickering rates
  {
    analogWrite( STARBAORD_ENGINE_LIGHT_PIN, random(255) ); //randomly set LED level from  0-255
    analogWrite( PORT_ENGINE_LIGHT_PIN, random(255) );//randomly set LED level from  0-255
    engineMillis = millis() ;
  }
}


24
Members Model Gallery / Re: My Reliant 1/537 final build.
« Last post by TK Iain on December 13, 2018, 02:15:41 pm »
Absolutely stunning!
25
Members Current Projects (WIP) / Re: 1/537 Enterprise
« Last post by WeeMoe on December 13, 2018, 09:16:34 am »
How did you manage to get the nacelles so straight?
26
Members Current Projects (WIP) / My 1/350 Enterprise Refit build.
« Last post by Shawn McClure on December 13, 2018, 08:34:57 am »
Hi guys,

Started this two years ago but ended up remodeling my house.  Anyway,  here is the beginning and what I have to date.   The first thing I did was start modifying the bridge.


ACD1E2CE-91EB-4718-A669-7196A926CD79 by Shawn McClure, on Flickr

58AB894F-7814-4B0D-80A8-E78B6856D629 by Shawn McClure, on Flickr

17050619-475C-4F2A-A600-C3DEE695F70E by Shawn McClure, on Flickr

I then added the paragraphics to back of the B/C deck.

AF24584D-5365-4DD6-B23B-0F4416619164 by Shawn McClure, on Flickr

I proceeded to remove the phasers to lower them down.  This could have gone better.

377B079E-B611-4185-A8EB-BCBCE0409BCA by Shawn McClure, on Flickr

C30FD3B6-300D-46C2-B728-7D770DADC7B0 by Shawn McClure, on Flickr

3A3274DE-7B1A-4831-958A-A6389816BA45 by Shawn McClure, on Flickr

Two years later I primed the saucer.  Here she is with the modified bridge.

27FAAB12-5ED5-4F86-8314-96F1B8B862C2 by Shawn McClure, on Flickr

7BA5774E-CC47-45FB-B2E2-85E33E32D946 by Shawn McClure, on Flickr

2AD979A5-8EE4-44DB-9D74-56176DDB82C4 by Shawn McClure, on Flickr

4001B472-FEFB-4AC3-A508-9EDA66ABDF5E by Shawn McClure, on Flickr

I'm currently adding the wiring to the saucer.  At least I was until my soldering stating fried..  grrrrrr.  Another one is on the way.

2934AE97-814B-4587-9373-455A8A01254F by Shawn McClure, on Flickr

42EA9F5D-29FC-4D15-B46B-4BBBE41F4CB0 by Shawn McClure, on Flickr

I added the paragrahics to the secondary hull.

7F52D55F-487F-49C0-8C5B-34E577FBF686 by Shawn McClure, on Flickr

Here is the beginning of the officers lounge. 

4AB4B9DB-8297-4E76-9B80-FF44770FD4F3 by Shawn McClure, on Flickr

I added the decal from HDA to the paragrahics for the rec deck.

53EBC7DC-DDE0-493B-BAE5-074CA48039DF by Shawn McClure, on Flickr

2130F8C6-92C7-42DF-814C-94A4DAA9CAD3 by Shawn McClure, on Flickr

50737D1A-A5D5-4F16-B918-CEB9C2F1EC35 by Shawn McClure, on Flickr

And finally I added part of the lights to the upper saucer.

B0BF39D3-D773-429A-A16C-C4345FFAD024 by Shawn McClure, on Flickr

That's about it for now.  Thanks for looking.

Shawn

27
Members Current Projects (WIP) / Re: My Reliant 1/537 AMT kit
« Last post by Shawn McClure on December 13, 2018, 08:08:33 am »
I got the end of my Reliant build.  Here is that link:

http://scifimodelaction.com/sfmaforum/index.php?topic=7648.0

Shawn
28
Members Model Gallery / My Reliant 1/537 final build.
« Last post by Shawn McClure on December 13, 2018, 08:04:56 am »
Well here she is folks.  Finally got her finished.  I had a mirror made and build the rest of the base myself.  the video has dialog from the movie but it's kind of hard to hear.   You have to click into this first picture to go see the video.

Reliant final build by Shawn McClure, on Flickr

Here are the pictures.

CE706127-D3FC-4F51-A98C-EFDB052E7787 by Shawn McClure, on Flickr

17C1DC70-22D2-469C-BFD0-095C07201DE8 by Shawn McClure, on Flickr

749ECAF1-CBAA-4A87-B864-E4AC76247F46 by Shawn McClure, on Flickr

F18F14ED-0CAD-439D-8B66-F0FF8AF0B492 by Shawn McClure, on Flickr

1CC21E94-C363-48D1-A16B-0CD421171926 by Shawn McClure, on Flickr

0FD9E542-D3CF-44F1-8D5C-E895637B1659 by Shawn McClure, on Flickr

F35487EA-E428-4CC4-9A82-ECF3B8F7888C by Shawn McClure, on Flickr

1ED5C232-0EC3-4F33-8774-8B36FD31F873 by Shawn McClure, on Flickr

959F5F98-C0F0-4A88-A8BD-CCCCABF7C7A3 by Shawn McClure, on Flickr

Photons firing.

5A8E1C33-5FCB-4C4C-B443-5C3FE9D7A76A by Shawn McClure, on Flickr

E2B41780-5336-4591-8298-53E7C9A8F953 by Shawn McClure, on Flickr

Display base graphics.

B8BAD410-8FDE-4C2C-9E4F-526ECE2D12B0 by Shawn McClure, on Flickr

391FE4D0-CCD7-40D9-B724-56CC6123E864 by Shawn McClure, on Flickr

CAC158C6-1F06-4646-B815-C61DE4D1C171 by Shawn McClure, on Flickr


Impulse engines Engaging.

CAE189D1-BF4D-41F0-B5D8-2A5BEE20B01D by Shawn McClure, on Flickr

This goes to warp drive later as seen in some of the pictures below.

79FA26F4-FCD4-4066-99A0-9A3882ABFE67 by Shawn McClure, on Flickr

4F3B322D-1CF3-4A98-8AFB-14A07C1F201B by Shawn McClure, on Flickr

DC5352C3-96D2-443D-A35A-F409937EA6D9 by Shawn McClure, on Flickr


That's about it.  Thank you for looking.

Shawn
29
Thank you very much Madhatter.   I'm really happy with how she turned out.

Shawn
30
Members Current Projects (WIP) / Re: New parts for the 1/350 Refit Enterprise
« Last post by jwood314 on December 12, 2018, 11:49:13 pm »
THANKS! Let's see if he will blow it up to 1:290ish for me!  More to come.
Pages: 1 2 [3] 4 5 ... 10



Enterprise © Bloc