oUVTronHM Object
An Object that reads a Hamamatsu UVTron Flame Detector.
Description:
 An Object that reads a Hamamatsu UVTron Flame Detector.

The oUVTronHM Object reads the current level of photons being detected by a Hamamatsu UVTron Flame Detector and returns a value based on this reading.  The reading ranges from 0 when no photons are being detected to 255 at maximum detection level.  A flag value is also provided that is on when a flame is detected and off when no flame is detected.

Operation:
 

The oUVTronHM Object handles all the necessary I/O timing requirements to read the UV photon level from a Hamamatsu UVTron Flame Detector.  As long as the Operate property is 1, the oUVTronHM Object will continually update its Value property with the UV photon reading. 

The oUVTronHM Object monitors the I/O line specified by IOLine property.  It is expecting that a Hamamatsu UVTron Flame Detector is attached to that I/O line and will read the photon count from the UVTron.  This photon count is then converted into a value and stored in the Value property.  The Value property is updated with the UV photon reading each time a new pulse is received from the UVTron.

When photons are being received, the NonZero property is set to 1 and the Value property is set to a value from 1 to 255 which indicates the level of photon activity.  As photon activity increases, the Value property increases. When the UVTron is not receiving UV photons, the Value property will be set to 0 and the NonZero property will be cleared to 0.

Storage size & Availability:
 

The following table lists the size and availability of the oUVTronHM Object and its variations:

ObjectSizeFirmware VersionCompiler Version
oUVTronHM6 BytesB.1.04.00
Properties:
 

The following table lists the Properties of the oUVTronHM Object:

PropertyDescription
Address

Returns a pointer to the address of the oUVTronHM Object instance.

Data-Type: Address, Read-Only

Data-Range: 0 - 127

IOLine

A value that specifies the physical I/O Line to use.

Data-Type: Byte

Data-Range: 0 - 31

NonZero

A value that indicates that the UVTron is detecting UV photons.

Data-Type: Bit, Flag

Data-Range: 0 - 1

The following table lists the values of the NonZero Property:
NonZeroConstantDescription
0cvFalseThe UVTron is not detecting photons.
1cvTrueThe UVTron is detecting photons.

Operate

A value that specifies whether or not the data is updated.

Data-Type: Bit, Flag

Data-Range: 0 - 1

The following table lists the values of the Operate Property:
OperateConstantDescription
0cvFalseThe properties are not updated.
1cvTrueThe properties are updated each time the UVTron sends a pulse.

Value

A value that indicates the photon count.

Data-Type: Word, Default

Data-Range: 0 - 255

Example:
 In the following example, the oUVTronHM Object is used.
'This program reads the intensity 
'of a flame with an oUVTronHM 
'Object and outputs the value 
'on I/O lines 8 - 15.

Dim A As New oUVTronHM
Dim B As New oDio8
Dim C As New oDio1

Sub Main()
  A.IOLine = 1
  A.Operate = cvTrue
  B.IOGroup = 1
  B.direction = cvoutput
  C.IOLine = 23
  C.Direction = cvoutput
  Do
    B=A
    C=A.NonZero
  Loop
End Sub 
Connections:
The oUVTronHM uses 1 I/O line and 2 power lines.  The I/O line can be any 1 I/O line of the OOPic's 31 I/O lines.  The UVTron requires a 5 Volt power supply that is capable of handling roughly 30mA of continuous output.
Hamamatsu UVTron Flame detector
PinNameDescriptionI/O NameOOPic
I/O Line
-GndGround G
+PowerVoltage Regulator Input V
1 Active High Out  
2 Active Low OutIOLineAny
3 Open Collector Out.  
O Voltage Regulator Out  
G Ground  
I Voltage Regulator Input  
O Voltage Regulator Out +5