oUVTronHM Object

Main Index
Object List
Back to top of page Description:
 An Object that reads a Hamamatsu UVTron Flame Detector.

The Hamamatsu UVTron Flame Detector can detect a cigarette lighter flame from 5 meters.  This detector is useful for finding combustion sources, candles and flames.  It operates in the spectral range of 185 to 160 nm.

 The following table lists the size and availability of the oUVTronHM Object.
 ObjectSizeDescriptionA1A2B1B2C1
oUVTronHM6 BytesReads a Hamamatsu UVTron Flame detector.xxx
Back to top of page Operation:
 

The oUVTronHM Object handles all the necessary I/O timing requirements to read the UV photon level from a Hamamatsu UVTron Flame Detector (UVTron).  It is expecting that a Hamamatsu UVTron Flame Detector is attached to the I/O line specified by the IOLine property and will read the photon count from the UVTron.

The oUVTronHM Object monitors the I/O line specified by IOLine property.  As long as the Operate property is 1, the oUVTronHM Object will continually update its Level property with the UV photon reading.  This photon count is then converted into a value and stored in the Level property.  The Level property is updated with the UV photon reading each time a new pulse is received from the UVTron.

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

The Timer property is an instance of the oCycleTimeL object which is created when the oUVTronHM Object is.  The oUVTronHM Object uses the timer object to read the signal generated by the UVTron.  Modifying any of the properties of the oCycleTimeL instance will affect the oUVTronHM Object's operation.  See the oCycleTimeL Help for more detail on how the oUVTronHM reads the UVTron's signal.

Back to top of page Properties:

The following table lists the properties of the oUVTronHM Object:

Property

Description

Level
A value that indicates the Ultra Violet Photon level.
Object Class: oByte Value Range: 0 - 255
Data Type: Numeric Default Value: 0
LevelDescription
0The UVTron is indicating a that UV Photon are not being detected.
1 - 254The UVTron is indicating a medium UV Photon reading.
255The UVTron is indicating a strong UV Photon reading.
Detected
A value that indicates that Ultra Violet Photons have been detected.
Object Class: oLogic Value Range: 0 - 1
Data Type: Numeric Default Value: 0
OperateConstantDescription
0cvFalseUltra Violet Photons have not been detected.
1cvTrueUltra Violet Photons have been detected.
IOLine
A value that specifies which I/O Line is connected to the UVTron.
Object Class: oIOLine Value Range: 0 - 31
Data Type: Numeric Default Value: 0
Some I/O Lines have special purposes.  Be sure to see oIOLine help file for details.
Operate
A value that selects whether or not the UVTron is being read.
Object Class: oOperate Value Range: 0 - 1
Data Type: Numeric Default Value: 0
OperateConstantDescription
0cvOffThe UVTron is not being read.
1cvOnThe UVTron is being read.
Timer
The I/O function object used to read the UVTron.
Object Class: oCycleTimeL Value Range: 0 - 255
Data Type: Numeric Default Value: 0
Address
Returns a pointer to the address of the oCounter Object instance.
Object Class: oAddress Value Range: 0 - 127
Data Type:Pointer (Read Only) Default Value: Address of Object

Back to top of page Examples:
 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.State = A.Level
    C.State = A.Detected
  Loop
End Sub 
Back to top of page 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

Back to top of page Related Items:

 The following table lists objects with related functions
 ObjectDescriptionA1A2B1B2C1
oCDSReads a CdS Cell.xxx
Back to top of page Version History and Bug List:
 Firmware Ver B1: Introduced.

Bugs: No known bugs.


ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.