My first Arduino prototype!

LEDs, fiber optics, etc - everything needed to "Make it Glow"
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1281
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

My first Arduino prototype!

Post by NCC1966 »

Thanks to our mate Julien I got aware of a simple, smart and cheap thing called "Arduino" that now I can say is a MUST if you are thinking about to play with starships lighting!

After a few minutes browsing web I already was ordering one of those cards plus a few extra components (a breadboard and some wiring) that didn't cost me more than $10...

Today I picked it in my PO Box, ran for home, plugged it to my computer and in about 15 minutes (no kidding!) I had running what should be the first prototype of my 1/600 TOS Enterprise nacelles rotating effect!



My plan is to use 6 or 8 LEDs (depending on the diameter of the nacelle tip) mounted in a circular array.

:mrgreen:
Thanks,

Yan.
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1281
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

My SECOND Arduino prototype!

Post by NCC1966 »

Today I worked on a second prototype, this time trying to simulate navigation lights:

From the left to right:

1) Short pulse
2) Quick regular flash
3) Slow regular flash
4) Fading — very useful for deflectors, warp nacelles and charging photon torpedoes (no TOS)!

:mrgreen:

Of course the heart of this project is the program. All the parameters such as flash speed, duration of pulses, etc, can be easily adjusted by changing simple parameters and re-uploading the program to the card.

Last edited by NCC1966 on Sat Jun 25, 2016 1:04 pm, edited 1 time in total.
Thanks,

Yan.
User avatar
Cubey Terra
Can-Do Captain (CW)
Can-Do Captain (CW)
Posts: 699
Joined: Fri May 03, 2013 7:09 pm
Location: Vancouver, BC
Contact:

Re: My first Arduino prototype!

Post by Cubey Terra »

Hey, maybe you can put an MP3 decoder module and amplifier on that and have your ship play Star Trek them music!
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1281
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

Re: My first Arduino prototype!

Post by NCC1966 »

Cubey Terra wrote:Hey, maybe you can put an MP3 decoder module and amplifier on that and have your ship play Star Trek them music!
This is a hell of a good idea! It would be nice if I could find a controllable module to play some effects too, such as phasers and photon torpedoes!

:mrgreen:
Thanks,

Yan.
User avatar
MEATLOAFr
Velutinous Vice Admiral
Velutinous Vice Admiral
Posts: 2624
Joined: Fri Sep 28, 2012 12:46 pm
Location: Omaha, NE

Re: My first Arduino prototype!

Post by MEATLOAFr »

NCC1966 wrote:
Cubey Terra wrote:Hey, maybe you can put an MP3 decoder module and amplifier on that and have your ship play Star Trek them music!
This is a hell of a good idea! It would be nice if I could find a controllable module to play some effects too, such as phasers and photon torpedoes!

:mrgreen:
That would make it so cool I'd wet my pants in pleasure
If the world ends tomorrow, it's ALL YOUR FAULT!!!
Custom Decals, and Vinyl Cutting services available
ABLE TO PRINT DECALS IN WHITE
NOW ABLE TO 3D PRINT SMALL SCALE MODELS (ANYCUBIC PHOTON & MONO X) have STL, will print!!
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1281
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

Re: My first Arduino prototype!

Post by NCC1966 »

Image
Thanks,

Yan.
User avatar
Julien
Charismatic Commander
Charismatic Commander
Posts: 474
Joined: Sun Jun 23, 2013 7:30 am
Location: Belgium

Re: My first Arduino prototype!

Post by Julien »

That's great ! It really took you no time at all to learn how to use that thing !
The Belgian Builder
User avatar
MEATLOAFr
Velutinous Vice Admiral
Velutinous Vice Admiral
Posts: 2624
Joined: Fri Sep 28, 2012 12:46 pm
Location: Omaha, NE

Re: My first Arduino prototype!

Post by MEATLOAFr »

NCC1966 wrote:Image


Image
If the world ends tomorrow, it's ALL YOUR FAULT!!!
Custom Decals, and Vinyl Cutting services available
ABLE TO PRINT DECALS IN WHITE
NOW ABLE TO 3D PRINT SMALL SCALE MODELS (ANYCUBIC PHOTON & MONO X) have STL, will print!!
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1281
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

Re: My first Arduino prototype!

Post by NCC1966 »

Julien wrote:That's great ! It really took you no time at all to learn how to use that thing !
Yah, Julien, it was surprisingly more cool and easier than I supposed!

:)

I confess that when I opened up the package and looked at that small board I thought: "Yah, sure, another electronic funky stuff that I won't be able to put to work..."

I thought that it wouldn't even be recognized by USB (then you can see as I am incredulous these days). But then things started to happen one after other. When I ran the first "Hello world" small code that makes an onboard SMD LED flash I literally say a light by the end of the tunnel. From there it was just a few minutes until I hook a few LEDs in the breadboard and type in the code!

It never was so gratifying!

:mrgreen:
Thanks,

Yan.
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1281
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

Re: My first Arduino prototype!

Post by NCC1966 »

To whose has interest, here it goes the code to make the rotating brussards:

/*
Sequential flash
Hook leds at the pins 6-9-10-11
each one in series with a 330R resistor
if you want more leds, just hook them
*/

int tleds = 4; // the quantity of leds you are using
int pointer = 0;
int zz = 0;
int MyLed[] = {6,9,10,11}; // the output ports (pins) where your leds are hooked

// the setup routine runs once when you press reset:
void setup() {
// initialize ports
for (zz=0;zz<=tleds-1;zz++)
pinMode(MyLed[zz], OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
for (zz=0;zz<=tleds-1;zz++)
digitalWrite(MyLed[zz], LOW);
digitalWrite(MyLed[pointer], HIGH);
pointer++;
if (pointer > tleds-1)
pointer = 0;

// change the delay value in ms to adjust speed;
// the bigger the number the slower the speed
delay(120);
}


:)
Thanks,

Yan.
Post Reply

Return to “Lighting”