2
\$\begingroup\$

 I am attempting to implement this tail light design first by using a state diagram. The car has 4 tail lights on each side, making a total of 8. They behave accordingly when the following inputs are implemented.

Below is the state diagram I have attempted to make for it so far. Obviously the goal is to have a minimal cost design. I have the state diagram so that when the inputs 111 or 000 are implemented, it stays within the "on" state. I am wondering if what I have done so far is the correct way to be going about it.

enter image description here

\$\endgroup\$
1
  • 3
    \$\begingroup\$ minimum cost is probably a microcontroller with three inputs and 8 outputs. ruggedised to survive in an automobile environment. \$\endgroup\$ Commented Feb 10, 2018 at 19:23

2 Answers 2

1
\$\begingroup\$

Obviously the goal is to have a minimal cost design.

In low-volume designs, engineering cost dominates.

In automotive and other high-reliability markets, post-marketing failures may be very costly too due to recall/warranty costs.

Schools sometimes do the students a disservice by implying that "least gates = lowest cost". When those gates are made by the billion, they cost very little. So, the suggestion to use an MCU will often give you the lowest cost possible, as long as you can "code your way out of a box" so to speak. MCUs aren't universally the best solution to every problem, but they do fit a wide variety of application needs very well.

\$\endgroup\$
0
\$\begingroup\$

This looks like homework, so I will not give a full answer showing the state arches.

First note that minimum cost has multiple meanings. It can be in terms of:

  • Price of the components
  • Number of logic gates
  • Number of flip-flops or latches
  • Number of transistors (may included resistors, capacitors, etc.)
  • Some weighted combination of the above
  • Sometimes other factors...

The right and left set of tail lights are mirror outputs of each other. Each has only 5 states: All_OFF, OUTERMOST_ON, HALF_ON, INNERMOST_OFF, ALL_ON

Figure out the state diagram for the left or the right (pretend the other side doesn't exist for now). Then figure out the other side. You should notice all you need to do is swap L and R connections; keep the outputs in teams of innermost/outermost (or have bit index mapping to the convention).

It is possible to cover both sets of tail-lights with one 5-state FSM using only 3 flops. This can by done by putting combinational logic between the FSM and final output that can force the output to all-on/all-off. In practice this should not be done on a real vehicle as the output could glitch when input changes. 8-flops (one for each output) is the minimum needed to prevent glitches; plus some possible flops for a counter. This would result in two FSM (may or may-not share a counter if implemented) with identical behavior (different input/output hookup). Automotives likely has additional requirements for safety and reliability.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.