Icon microphone.png YEY! We reached 1000 article count
Thank you for all the help! And let's make this count higher [read more ...]
 

Tag Sensor

From LBPWiki

Jump to:navigation, search
Tag Sensor
Tag Sensor.png
Type: Gadgets
 
Category: Sensors
 
Obtained from: Tutorials
 
Tutorial: Advanced Sensors 1
 
No. inputs: 0
 
No. outputs: 1

A tag sensor is a sensor gadget that detects specific tags in proximity of a tweaked range with matched tag colour and label. A tag sensor will ignore any tags which have been switched off.

Use and Behavior

The Tag Sensor can be placed on any object or microchip. It has no input port, and a single output port.

Digital Signal Output

  • Icon no.png - The digital signal output is normally off when there are fewer matching tags than the Icon count.png within the trigger range.
  • Icon yes.png - The digital signal output will normally be on when there are at least the Icon count.png within the trigger range.

Analog Signal Output

The tag sensor outputs an analog signal depending how the "Output Value" tweak is set.

Icon tag closeness.png
  • Closeness: In this mode the tag sensor outputs an analog signal depending on the distance to the nearest tag in the range, as a scale percentage of the distance the tag is in between the maximum and minimum ranges. If a sensor's Icon minimum range.png "Minimum Detection Range" is set to at least 0.1, the sensor's output will scale evenly over the entire distance of the sensor range, and only reach 100% when the tag is at 0.1 of the sensor. However if a sensor's Icon minimum range.png "Minimum Detection Range" is set to exactly 0.0, the sensor will instead output 100% any time a matching tag is within 1/4 of the Icon maximum range.png Maximum Detection Range, and the signal will approach 100% as a tag approaches that 1/4 range threshold. Once the distance between sensor and tag is less than Icon minimum range.png "Minimum Detection Range" then the sensor outputs off/0%. If the Icon count.png "Number of tags required" tweak is set to more than 1, it will detect the closest available tags to produce a set of that size, and yield the distance to the furthest of those. The analog signal output is always positive.
Icon tag signal.png
  • Signal Strength: In this mode the tag sensor will instead output the analog value of a tag in sensor range, with the output signal ignoring the closeness of the tag. If the Icon count.png "Number of tags required" tweak is set to some value N, it will return the analog value of the Nth strongest signal in range. For example, if set to require three tags, and there are four tags in range with values of 40%, 30%, 20%, and 10%, the sensor would return 20% (the third strongest value). By the same logic, under the default setting of N=1, the sensor just returns the strongest signal in range. If there is a tie (for example +10% and -10%) it will use the closer one.

Behavior Inside Microchip

Tag sensors inside microchips ignore all the tags in the entire microchip and will only detect those outside the microchip. This effect works through multiple levels of circuit boards too.

Tweaks

 Icon minimum range.png 

Minimum Detection Range: (0.0 - 5000.0)
Sets the inside edge of the trigger area.

 Icon maximum range.png 

Maximum Detection Range: (0.0 - 5000.0)
Sets the outside edge of the trigger area.

 Icon range angle.png 

Trigger Angle Range: (0.0 - 360.0)
Sets the angle of the trigger area. Rotate the gadget to change the orientation that angle.

 Icon same layer.png 

Same Layer: ("Yes" Yes • "No" No)
If yes that matched tag need to be on the same layer as the gadget.

Count

 Icon count.png 

Number of Tags Required: (1 - 100)
Determines the number of tags that must be within the trigger area to activate the gadget.

Tag Type

 Icon label.png 

Tag Colour and Label:
Set the colour and label that the tag sensor senses. Tags that don't match this description will be ignored.

Output

 Icon invert.png 

Invert Output: ("Yes" Yes • "No" No)
If Yes, the signal output will be inverted, in same nature as NOT Gate do.

 Icon output value.png 

Output Value: ("Closeness" Closeness • "Signal Strength" Signal Strength)
Set the analog signal behaviour

Visuals

 Icon all players required.png 

Electronics and Cable Visibility: ("Not    visible" Not Visible • "Switch     visible" Switch visible • "Switch and cables     visible" Switch and cables visible)
Determines if the gadget and/or wires will be visible to players.