Difference between revisions of "HANcoder/Training Material/AutomaticLightControlSystem/7"

From OpenMBD
Jump to: navigation, search
Line 5: Line 5:
  
 
==Part 7: Creating a control system==
 
==Part 7: Creating a control system==
Modern cars are often equipped with various comfort features. One of these comfort features is the automatic engagement of the lights when it turns dark or drive through a tunnel.
+
 
On the sensor shield, you’ll find there is an LDR sensor next tot he potentiometer. This sensor puts out an analog signal, depending the the amount of light that’s being picked up by the lightsensor.
+
Modern cars are often equipped with various comfort increasing features. One of these features is the automatic engagement of the lights when it turns dark. On the sensor shield, you’ll find an LDR sensor next tot he potentiometer. This sensor sends out an analog signal that is dependent on the amount of light that’s being picked up by the light sensor.
Use HANtune to see the signal that the sensor puts out. Determine the point where you want the lights to turn on use Simulink to make a control system accordingly. Use the knowledge that you’ve gained over the past chapters to choose and connect the right function blocks. Don’t hesitate to look back at the previous chapters.
+
 
Tip: The following function blocks can come to good use and are all available in the Library Browser under Simulink Commonly Used Blocks.
+
Use HANtune to read the LDR sensor value and determine at which sensor value you'd want the lights to turn on. Use the knowledge that you’ve gained during the past parts of the tutorial to make the model of the light control system in Simulink. Don’t hesitate to look back at the previous chapters.
 +
 
 +
Tip: The following function blocks can come to good use and are all available in the Library Browser under Simulink => Commonly Used Blocks.
  
 
[[File:p1figure24.PNG|100px]]  
 
[[File:p1figure24.PNG|100px]]  
Line 23: Line 25:
  
 
''Figure 26 Constant Block''
 
''Figure 26 Constant Block''
 
 
When you’re done putting together a working control system, show both the Simulink model and the working system to the assessor.
 
When you’re done with the assignment, detach the Olimexino from the laptop and carefully take off the sensor shield. Now, put the sensor shield with the sensors and LED back into the envelope, along with the user log.
 
 
  
  
  
 
[[HANcoder/Examples/AutomaticLightControlSystem/6| '''<<<Go back to part 6''']]
 
[[HANcoder/Examples/AutomaticLightControlSystem/6| '''<<<Go back to part 6''']]

Revision as of 12:24, 13 November 2017

<<<Go back to part 6


LED Control System Part 7

Part 7: Creating a control system

Modern cars are often equipped with various comfort increasing features. One of these features is the automatic engagement of the lights when it turns dark. On the sensor shield, you’ll find an LDR sensor next tot he potentiometer. This sensor sends out an analog signal that is dependent on the amount of light that’s being picked up by the light sensor.

Use HANtune to read the LDR sensor value and determine at which sensor value you'd want the lights to turn on. Use the knowledge that you’ve gained during the past parts of the tutorial to make the model of the light control system in Simulink. Don’t hesitate to look back at the previous chapters.

Tip: The following function blocks can come to good use and are all available in the Library Browser under Simulink => Commonly Used Blocks.

P1figure24.PNG

Figure 24 Relational Operator Block


P1figure25.PNG

Figure 25 Switch Block


P1figure26.PNG

Figure 26 Constant Block


<<<Go back to part 6