Pages: 1 2 3 [4] 5   Go Down
Author Topic: Star Trek Computer Help  (Read 7236 times)
0 Members and 1 Guest are viewing this topic.
New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

The Netherlands
Offline Offline
Edison Member
*
Karma: 44
Posts: 1504
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

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

New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

The Netherlands
Offline Offline
Edison Member
*
Karma: 44
Posts: 1504
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Chicago
Offline Offline
Sr. Member
****
Karma: 5
Posts: 456
With every answer comes more questions.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank You I'll try...
Osgeld is having internet problems...
« Last Edit: September 15, 2013, 07:39:16 pm by jameskirk » Logged

Chicago
Offline Offline
Sr. Member
****
Karma: 5
Posts: 456
With every answer comes more questions.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!

Logged

Chicago
Offline Offline
Sr. Member
****
Karma: 5
Posts: 456
With every answer comes more questions.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Making any progress...?
Logged

New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Faraday Member
**
Karma: 57
Posts: 2775
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 142
Posts: 5296
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Maybe time for a status update...

(with photos?)
Logged

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

NSW Australia
Offline Offline
Faraday Member
**
Karma: 78
Posts: 3173
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

New Columbia Pa.
Offline Offline
Newbie
*
Karma: 1
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 2 3 [4] 5   Go Up
Jump to: