packageClock2
Model of a pendulum clock with alarm
Information
This package includes the implementation of a pendulum clock with alarm. A complete description of the system and its implementation using the CD++ environment can be found here
The clock is guided by the oscillation of a pendulum, and counts the minutes and hours.
It also has an alarm system that is checked and activated when required.
The clock and the alarm can be configured using the input ports.
Simulation
The Clock system is implemented in the testClock model. Three variables have been included to facilitate the observation of the results.- hour shows the position of the hour hand.
- min shows the position of the minutes hand.
- alarm shows the activation of the alarm.
- hour shows the position of the hour hand.
- min shows the position of the minutes hand.
Contents
| Name | Description |
|---|---|
| Pendulum | |
| Control | |
| Alarm | |
| Hours | |
| Minutes | |
| Motor | |
| HandsControl | |
| AlarmControl | |
| Clock | |
| testClock | |
| ClockNoAlarm | |
| testNoAlarm |