+ Reply to Thread
Results 1 to 4 of 4

Thread: Binary Clock?

  1. #1
    Wirererer timas's Avatar
    Join Date
    Apr 2007
    Location
    Vennesla, Norway
    Posts
    151

    Thumbs up

    Any one have a idea on how to make binary clocks in wire?

    tried but could only get the 10x hour right...

    Binary clock how they work

    some have a idea? im out

    If you'd been listening you'd know that Nintendos! pass trough everything! - Colonel Jack. O'Niel
    Good news everyone!
    I have invented a device that makes your read this in your head, in my voice.

  2. #2
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default

    Any one have a idea on how to make binary clocks in wire?

    tried but could only get the 10x hour right...

    Binary clock how they work

    some have a idea? im out [/b]
    Well, calculate seconds, minutes and hours as you usually do

    Seconds = floor(Time) % 60
    Minutes = floor(Time / 60) % 60
    Hours = floor(Time / 3600)

    And the simplest way I can come up with to extract binary data using the expression gate is not very short but here it goes

    Seconds1 = Seconds % 2
    Seconds2 = floor(Seconds / 2) % 2
    Seconds3 = floor(Seconds / 4) % 2
    Seconds4 = floor(Seconds / 8) % 2

    etc.. I think that is correct

  3. #3
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    i may do a binary gate set with like:
    decoders and encoders
    1->2
    2->4
    3->8
    and viceversa
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  4. #4
    Wire Amateur Neotracer's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    75

    Default

    here a simple true binary clock i quikly made:
    use the the code that syranide has posted:

    Code:
    N@OSTime
    I@OSTimer
    O@Hours Minutes Seconds
    Seconds = floor(OSTimer) % 60
    Minutes = floor(OSTimer / 60) % 60
    Hours = floor(OSTimer / 3600)
    then you need to wire the chip to a OStimer similar.
    moreover you need my Dec->Bin Converter (Inspired by Syranide and tomb332):

    Code:
    N@Dec<->Bin
    I@DecI P0I P1I P2I P3I P4I P5I P6I P7I
    O@DecO P0O P1O P2O P3O P4O P5O P6O P7O Bin
    DecO = 0
    P0I -> DecO += 1;
    P1I -> DecO += 2;
    P2I -> DecO += 4;
    P3I -> DecO += 8;
    P4I -> DecO += 16;
    P5I -> DecO += 32;
    P6I -> DecO += 64;
    P7I -> DecO += 128;
    P0O=0
    P1O=0
    P2O=0
    P3O=0
    P4O=0
    P5O=0
    P6O=0
    P7O=0
    Bin=0
    (floor(DecI/128) % 2) -> P7O = 1, Bin += 1;
    Bin = Bin*10
    (floor(DecI/64) % 2) -> P6O = 1, Bin += 1;
    Bin = Bin*10
    (floor(DecI/32) % 2) -> P5O = 1, Bin += 1;
    Bin = Bin*10
    (floor(DecI/16) % 2) -> P4O = 1, Bin += 1;
    Bin = Bin*10
    (floor(DecI/8) % 2) -> P3O = 1, Bin += 1;
    Bin = Bin*10
    (floor(DecI/4) % 2) -> P2O = 1, Bin += 1;
    Bin = Bin*10
    (floor(DecI/2) % 2) -> P1O = 1, Bin += 1;
    Bin = Bin*10
    (DecI % 2) -> P0O = 1, Bin += 1;
    you need 3, one for hour, minute and second.
    wire DecI from the first to Hour DecI from the secound to minute ...
    connect Indicators or whatever to P0O to P4O for hours.
    connect Indicators or whatever to P0O to P5O for minutes and seconds.
    P0O is bit 2^0 = 1
    P1O is bit 2^1 = 2
    P2O is bit 2^2 = 4
    ....
    by the way "Bin" gives the binary code. for example 10 on DecI will Output:
    P3O=1 P1O=1 other will stay 0 and Bin will be 1010.
    The chip can do the oposite to. if P0I to P7I get non 0 DecO will output the Decimal

    (First row = Hour (16 on left site) ,Secound = Minutes and vertical = seconds (32 on upper end))
    Es gibt genau 10 Typen von Menschen auf der Welt. Welche die Binär verstehen und Welche die nicht.
    (german)
    STOP USING BMP FILES! USE JPEG FOR YOUR SAKE!!

+ Reply to Thread

Similar Threads

  1. 7 bit binary adder!
    By dpidcoe in forum Finished contraptions
    Replies: 9
    Last Post: 03-13-2009, 10:55 AM
  2. Binary Clock with CPU
    By Aut in forum Finished contraptions
    Replies: 7
    Last Post: 12-06-2008, 08:54 AM
  3. Character-2-binary converter
    By thundertibor in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 06-25-2008, 01:48 PM
  4. binary conversion
    By GUN in forum Ideas & Suggestions
    Replies: 7
    Last Post: 01-27-2008, 06:51 PM
  5. Number to binary converter
    By Evil-Pidgeon in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 13
    Last Post: 07-04-2007, 05:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots