Saturday, November 27, 2010

Spectral light stimulation myopia treatment instrument lighting controller design (1)

Spectral light stimulation myopia treatment instrument is based on the light spectrum around the eyes and the eyes of point so as to achieve the purpose of treating eyes myopia.

1 technical requirements

According to the pertinent data demonstrated that light spectra using red, green, and blue light are time irritate eyes and eye around the point, General requirements is: Red weak (lit 1 s), medium (lit 1 s), strength (s-1), stop, 3 S, cycle 3 rain; red (bright 1 S, off 1 s), red (bright 1 S, off 1 s), blue (light 1 S, off 1 s) loop 1.5 rain; red (bright 0.3 s), green (light 0.3 s), blue (light 0.3 s) loop 1.5 min.

2 controller ASM flowchart

According to the above requirements you can draw the controller ASM flowchart shown in Figure 1.

System in the State TO (0000), received the MF command, s1 = 1, the control signal CLR = 1, the clock signal is cleared to zero, start timer, enter the T1.

Circulation: TI (0001), bright red weak; when a time t = 1 S, S2 = 1 status signals, control signal CLRl = 1 S 1, zero, enter T2 (0010) State, in bright red light; when a time t = 1 S, T3 (0011) status, strong bright light; when a time t = 1 S, T4 (0100), red light; when time t = 3 S, status signals S3 = 1, the control signal CLR2 = 1,3 s zero; in this case if the time t < 3 min into T1 (0001)-State cycle; if t ≥ 3 rain, status signals S4-1, enter the T5, control signal CLR = 1, the clock signal is cleared to zero.

Cycle 2: T5 (0101) status, strong bright light; when a time t = 1 S, status signals S2-1, control signal CLRl = 1, 1 zero, enter S T6 (0110) status, the red light; when time t = 1 S, enter T7 (0111) status, strong bright light; when a time t = 1 S, enter T8 (1000), the red light; when time t = l S, enter T9 (1001), blue light intensity light; when time t = 1 S, enter T10 (1010), blue lights off 1 S; in this case if the time t < 1.5 min into T5 State cycle; if t ≥ 1.5 min, status signals S5 = 1 into T11, control signal CLR = 1, the clock signal is cleared to zero.

Cycle III: T11 (1011) State, red light, when a time t = 0.3 S, status signals S6 = 1, the control signal CLR3 = 1, 0.3 S zero, enter T12 (1100), green light; when time t = 0.3 S, T13 (1101), blue lights 0.3 S; in this case if the time t < 1.5 min, enter .Tll State cycle; if t ≥ 1.5 rain, status signals s5 = 1, access TO State.

Controller design you can use the ASM method, according to the ASM picture out state transition table, write the driven equations and equations, and then use the output triggers, data selector and decoders for design.

You can also use MDS method, because the State more and more, input variables, using MDS method is more convenient.

Figure 3 controller MDS status

According to the ASM pictures out of the MDS status diagram, as shown in Figure 2.

No comments:

Post a Comment