Spaghetti bowl up for peer review

Discussion in 'The Projects Forum' started by Edmunds, Jul 3, 2014.

  1. Edmunds

    Thread Starter Active Member

    Sep 27, 2010
    85
    0
    Dear friends,

    I am continuing my ventures into model car control arena and I am now working on a "control module" for my train/car layout. The control module needs to detect the presence of the car on any of four approaching lanes and be able to read infrared number to recognise the type of vehicle for inputs. That makes for 8 inputs. There is a servo diverting the car to the left or right or letting it to continue straight on any of four approaching lanes - 4 outputs. There is an infrared stop LED to stop the car on the red or give-way situation - 4 more outputs. There is a slow down and blinker right or blinker left commands diode, positioned just before the servo - slow down is switched with a jumper and blinkers occupy 8 further outputs. On exit from the intersection, there is an LED saying full speed and any blinkers off - the full speed command is switched with a jumper and blinkers off is just always on - does not take any outputs.

    Then, there are crossing control functions.

    Traffic light to start with. 6 outputs to control the normal red-yellow-green in both directions. And two aux traffic light outputs for things like arrows, pedestrian traffic lights and what not. 8 more outputs. 14 in total.

    Some crossing "exits" do not allow trucks to enter - 4 more outputs for DIP switch on the control board to select which are those. Some roads are OK for small trucks, but not for "long vehicles". 4 more. On some roads emergency vehicles should not be allowed when on duty. 4 more. And one more switch position for the unforeseen. 16 in total.

    Then there are layout control functions - how do you make all the cars ho sleep? By telling the cars to go and park in charging stations. One or more roads on each crossing are ok for cars with low battery and in case of layout shutdown signal. 8 more inputs with 4 more for aux function for routing vehicles with a specific IR address. 12 inputs in total plus a serial input to the MCU from the layout "command station". The actual infrared commands come from "another place", so they are switched with optocouplers.

    This makes a crazy number of inputs/outputs needed. I read up on multiplexing/demultiplexing and multiplexer/demultiplexer ICs. So this is my first attempt at them and I would appreciate your feedback.

    I have split off a "control unit" for each approaching lane containing the servo, sensors and connections to IR LEDs via 10-wire connection. So the attached PNG is only of the central unit. The brain behind serving all the inputs/outputs is a PICAXE-20M2 with 08M2 as a slave running the servos. I spent much time drawing all the connections and will spend MUCH more trying to fit this on any sort of decent looking PCB so I would be extremely grateful for some peer review here if I'm on the right track and there are no obvious mistakes. I did this in Eagle and any advice, how I should have done this as opposed to how I have done this is highly appreciated. This is not easy to work with as it is :).

    Thank you,

    Edmunds
     
    • ICCU.png
      ICCU.png
      File size:
      155.1 KB
      Views:
      53
  2. Edmunds

    Thread Starter Active Member

    Sep 27, 2010
    85
    0
    OK, before anyone starts to answer...
    I take the question off, until I figure out something about shift registers. I just realised a multiplexer will help switch ONE input or output at any given time. This is not suitable. At all :).

    Back to drawing board.

    Edmunds
     
  3. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    5,435
    1,305
    Wow! That's a wall of text, followed by a wall of schematic!

    What was the question again? "Sorry sir I wasn't paying attention!" ;)
     
  4. Brevor

    Active Member

    Apr 9, 2011
    279
    54
    where is the is the spaghetti bowl ?
     
  5. Dodgydave

    Distinguished Member

    Jun 22, 2012
    4,980
    744
    Parmesan anyone....
     
  6. Edmunds

    Thread Starter Active Member

    Sep 27, 2010
    85
    0
    Let me rephrase :).

    Is there a combined shift-in and shift-out register? I need to control 4 inputs and 3 outputs via serial line. Would be very happy to find a SO16 or even smaller package.

    Thank you,

    Edmunds
     
  7. Bernard

    AAC Fanatic!

    Aug 7, 2008
    4,172
    397
    Another case for a pot full of digital comparators, multiplexers & shift registers. There are all kinds of shift registers, serial in , serial out or parallel out, parallel load- serial out etc.
    A bit more inf might help
     
Loading...