My first Arduino prototype!

Tools and techniques used for preparation and assembly.
User avatar
NCC1966
Crafty Commodore
Crafty Commodore
Posts: 1286
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

My first Arduino prototype!

Postby NCC1966 » Thu Jun 23, 2016 7:20 pm

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: 1286
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

My SECOND Arduino prototype!

Postby NCC1966 » Fri Jun 24, 2016 7:11 pm

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: 610
Joined: Fri May 03, 2013 7:09 pm
Location: Vancouver, BC
Contact:

Re: My first Arduino prototype!

Postby Cubey Terra » Fri Jun 24, 2016 11:53 pm

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: 1286
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

Re: My first Arduino prototype!

Postby NCC1966 » Sat Jun 25, 2016 12:06 am

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
Rampaging Rear Admiral (LH)
Rampaging Rear Admiral (LH)
Posts: 1783
Joined: Fri Sep 28, 2012 12:46 pm
Location: Lincoln, Nebraska

Re: My first Arduino prototype!

Postby MEATLOAFr » Sat Jun 25, 2016 3:09 pm

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!!!

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

Re: My first Arduino prototype!

Postby NCC1966 » Sun Jun 26, 2016 5:03 pm

Image
Thanks,

Yan.

User avatar
Julien
Charismatic Commander
Charismatic Commander
Posts: 445
Joined: Sun Jun 23, 2013 7:30 am
Location: Belgium
Contact:

Re: My first Arduino prototype!

Postby Julien » Thu Jun 30, 2016 4:05 pm

That's great ! It really took you no time at all to learn how to use that thing !

User avatar
MEATLOAFr
Rampaging Rear Admiral (LH)
Rampaging Rear Admiral (LH)
Posts: 1783
Joined: Fri Sep 28, 2012 12:46 pm
Location: Lincoln, Nebraska

Re: My first Arduino prototype!

Postby MEATLOAFr » Fri Jul 01, 2016 12:09 am

NCC1966 wrote:Image



Image
If the world ends tomorrow, it's ALL YOUR FAULT!!!

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

Re: My first Arduino prototype!

Postby NCC1966 » Fri Jul 01, 2016 3:12 pm

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: 1286
Joined: Thu May 19, 2016 6:20 pm
Location: Brasil, SP

Re: My first Arduino prototype!

Postby NCC1966 » Fri Jul 01, 2016 3:16 pm

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.


Return to “Construction”

Who is online

Users browsing this forum: No registered users and 16 guests