Go Down

Topic: Star Trek Computer Help (Read 8816 times) previous topic - next topic

jameskirk

Is there anyone who can finish giving me a little help on this Star Trek project i'm doing???
Thank You

MAS3

So where are you now ?
Do you have an actual piece of code yet ?
If so, post it.
What else do you need to know that hasn't been addressed yet ?
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

jameskirk

I don't have any code yet... Osgeld has given me a schematic... I don't know anything about writing code for these yet...
Thank You

jameskirk

Here is the Schematic that he did for me...
http://cheesefactory.us/filecenter/STAR%20TREK%20COMPUTER.pdf

MAS3

So now you need to know how to address the TLC5916 shift register in your program.

I think you should have a peek at the shiftout page in the reference section here.
Remember that the schematic offers you 24 bits width because there are 3 x 8 bits shift registers in series.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

jameskirk

I'll try looking at this page; but I' really new to this to understand it all...
Thank You

1ChicagoDave


Here is the Schematic that he did for me...
http://cheesefactory.us/filecenter/STAR%20TREK%20COMPUTER.pdf


If I remember, you wanted a few different groups of LEDs, right?  Is that ALL of them...the 24 in schematic?

Which ones are going to which group?

Which need to be controlled by switches?

No more help from Osgeld?

This may not be very helpful right now, but....
Looks like your gonna need to 'shiftOut' 24 bits at a time to turn LEDs on/off.  That's a series of 24 1's & 0's....in the same order as the lights. '1' for on, '0' for off.

With this arrangement, the "easiest" way to approach it (I use that term loosely) would probably involve a lot of bit wise operations. 
http://arduino.cc/en/Reference/BitwiseAnd

Use "random" to generate 24 random bits to produce your random pattern...

Assign a certain bit location to each switch -
00000001 for right most switch on
00000010 for the next one on
00010000 for the far left switch on

Then, 'add' or 'subtract' that bit to/from the random pattern depending on if that light should be on or off.

Do you have the hardware put together yet?

If so, find some shift register examples, load 'em up, see what they do. Then, play with them to make them do what you need.

Good luck!

jameskirk

#52
Sep 16, 2013, 02:36 am Last Edit: Sep 16, 2013, 02:39 am by jameskirk Reason: 1
Thank You I'll try...
Osgeld is having internet problems...

1ChicagoDave

Ahhh, that sucks....for you.   :smiley-roll-blue:

Well, start simple. Just try turning all LEDs on.  Then off.
Then try to turn just one LED on. Figure out how to control which one goes on.

From there, try using just one switch to turn them all on/off. Then just one on/off. Again, trying to control which one goes on/off.

Maybe even just start with trying to control JUST ONE of the shift registers. Doesn't matter which.

Play with it. Set a small goal, meet it, modify it, meet the new goal. You'll have it mastered in no time.

Oh, save often and use LOTS of comments in your code. Describe every change you made, why you made it, what you want (or thought) it would do...  It doesn't take long to forget what you were trying to do, or why something seemed like a good idea at the time.  :smiley-red:
Plus, you might have to post code here for help. Comments will help us figure out what you were thinking too!

If you make any major changes to code, save it under a slightly different file name. That way you can quickly go back to a previous (hopefully working!) version if you have to.

And...have fun with it!


1ChicagoDave


jameskirk

No not any progress like I said really new at this...

michinyon

A real random pattern would probably not be useful.   Those blinking lights on the old space age computers
actually meant something.   Just something that was not very obvious.

fungus


No not any progress like I said really new at this...


Maybe time for a status update...

(with photos?)
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Paul__B


A real random pattern would probably not be useful.   Those blinking lights on the old space age computers actually meant something.   Just something that was not very obvious.


Excellent point.  Write some sequences for them.  Very occasional chases, some bar graphs, slow flashes with periodic blank periods, bursts, alternations between areas, sometimes symmetric patterns.

Otherwise just boring and blurs in the distance.

jameskirk

can you will you show me some examples to try???
Thank You

Go Up