modelPiezoSpeaker
Piezo speaker that records its output to a WAV file
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Period | sampleInterval | 1e-4 | Sample interval |
| String | filename | "speaker.wav" | |
| Modelica.Units.SI.Voltage | vRef | 5 | Reference voltage |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | p | Positive electrical pin | |
| Modelica.Electrical.Analog.Interfaces.NegativePin | n | Negative electrical pin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Arduino.Internal.WavRecorder | wavRecorder | Arduino.Internal.WavRecorder(filename) | |
| Modelica.Electrical.Analog.Basic.Resistor | resistor |
Contents
| Name | Description |
|---|---|
| sampleMeprotected |