Oscillator Component: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Created page with "{{Items infobox | image = Oscillator.png | imagewidth = 65 | type = electrical | noreq = yes | cost = 100 | deconstructor = Yes | fabricator = Yes | fabricatorskill = electric...")
 
m (Minor edit)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Items infobox
{{Version|1.3.0.2}}{{Main|Wiring Components}}{{Items infobox
| image = Oscillator.png
| description = Sends out a periodic, oscillating signal.
| imagewidth = 65
| type = electrical
| noreq = yes
| cost = 100
| deconstructor = Yes
| fabricator = Yes
| fabricator = Yes
| fabricatorskill = electrical
| fabricatorskill = electrical
| fabricatorskilllevel = 20
| fabricatortime = 10
| fabricatortime = 10
| fabricatormaterials = {{Hyperlink|FPGA Circuit}}
| deconstructor = Yes
| deconstructortime = 10
| deconstructortime = 10
| fabricatorskilllevel = 20
| deconstructormaterials = {{Hyperlink|FPGA Circuit}}
| fabricatormaterials = {{Hyperlink|Tin}}{{Hyperlink|FPGA Circuit|20}}
 
| deconstructormaterials = {{Hyperlink|Tin}}{{Hyperlink|FPGA Circuit|20}}
| baseprice = 100
| outpostmultiplier = 1
| cityunbuyable = true
| citymultiplier = 1
| researchmultiplier = 1.25
| militarymultiplier = 1
| minemultiplier = 1
| engineeringmultiplier = 0.9
| minleveldifficulty = 15
 
| outpostminavailable = 1
| cityminavailable = 1
| researchminavailable = 1
| militaryminavailable = 1
| mineminavailable = 1
| engineeringminavailable = 1
 
<!-- Technical -->
| identifier = oscillator
| category = Electrical
| tags = smallitem, logic
}}
}}


The '''Oscillator''' is an electrical component used to provide a signal that changes over time.
The '''Oscillator''' is an electrical component used to provide a signal that changes over time.
* Frequency is in [https://en.wikipedia.org/wiki/Hertz Hertz] (Hz), 1 Hz is once per second, 0.5 Hz is once every 2 seconds and so on.
* The wave type may be set on the component by sending a number into set_outputtype.
{|
! Input || Wave || Description
|-
| 0 || Pulse || periodically sends out a signal of 1.
|-
| 1 || Sawtooth || sends out a periodic wave that increases linearly from 0 to 1.
|-
| 2 || Sine || sends out a sine wave oscillating between -1 and 1.
|-
| 3 || Square || sends out a signal that alternates between 0 and 1
|-
| 4 || Triangle || sends out a wave that alternates between increasing linearly from -1 to 1 and decreasing from 1 to -1.
|}


It is most commonly used in tandem with a [[Subtract Component]] for timers or countdowns.
<small>Hover over pins to see their descriptions</small>
{{Connection panel
{{Connection panel
|panelfor = Oscillator Component
|input1=Set_Frequency
|input1=Set_Frequency
|input1tt=Sets the frequency of the oscillator, in Hz (Hertz).
|input1tt=Sets the frequency of the oscillator, in Hz (Hertz).
Line 29: Line 60:
}}
}}


[[Category:Electrical Components]]
{{Electrical Nav}}
 
{{Components Nav}}

Latest revision as of 22:10, 18 April 2024

Data is up-to-date
Last updated for version 1.3.0.2
Last mentioned in changelog 0.15.9.0
The current game version is 1.4.6.0

Main article: Wiring Components


Oscillator Component

Sends out a periodic, oscillating signal.
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Store
Minimum Difficulty 15%
Base Price 100 mk
Outposts
OutpostOutpost Buy Sell
Habitation OutpostHabitation 100 mk 30 mk
ColonyColony N/A 30 mk
Research OutpostResearch 125 mk 37 mk
Military OutpostMilitary 100 mk 30 mk
Mining OutpostMining 100 mk 30 mk
Medical MerchantMedical Merchant N/A 30 mk
Engineer MerchantEngineer Merchant 90 mk 27 mk
Armory MerchantArmory Merchant N/A 30 mk
Children of The HonkmotherClown Merchant N/A 30 mk
The Church of HuskHusk Merchant N/A 30 mk
Technical
Identifier oscillator
Categories Electrical
Tags smallitem, logic

The Oscillator is an electrical component used to provide a signal that changes over time.

  • Frequency is in Hertz (Hz), 1 Hz is once per second, 0.5 Hz is once every 2 seconds and so on.
  • The wave type may be set on the component by sending a number into set_outputtype.
Input Wave Description
0 Pulse periodically sends out a signal of 1.
1 Sawtooth sends out a periodic wave that increases linearly from 0 to 1.
2 Sine sends out a sine wave oscillating between -1 and 1.
3 Square sends out a signal that alternates between 0 and 1
4 Triangle sends out a wave that alternates between increasing linearly from -1 to 1 and decreasing from 1 to -1.
Connection Panel for Oscillator Component
Hover over pins to see their descriptions.
Set_Frequency
Set_Outputtype
Sets the frequency of the oscillator, in Hz (Hertz).
Sets the output type of the oscillator (0=pulse, 1=sine, 2=square).
Signal_Out
The output of the component.
Requires: Screwdriver
v·d·e·h
Electrical Components
Alarms
Detectors
Interactable
Wiring Components
Misc