Difference between revisions of "Component: Dual Potentiometer - Trimmer (EBM006) (EBM Modules)"

From Flowcode Help
Jump to navigationJump to search
 
(6 intermediate revisions by the same user not shown)
Line 16: Line 16:
  
 
==Component Source Code==
 
==Component Source Code==
 +
 +
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EBM006v1.fcfx FC_Comp_Source_EBM006v1.fcfx]
  
 
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EBM006v1.fcfx FC_Comp_Source_EBM006v1.fcfx]
 
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EBM006v1.fcfx FC_Comp_Source_EBM006v1.fcfx]
  
 
==Detailed description==
 
==Detailed description==
 +
 +
 +
 +
 +
 +
  
  
Line 40: Line 48:
  
 
==Examples==
 
==Examples==
 +
 +
 +
 +
 +
 +
  
  
Line 61: Line 75:
  
  
==Macro reference==
 
  
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPotentiometer2'''
 
|-
 
| colspan="2" | Read Potentiometer 2 as a byte or integer. 
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" | Mode
 
|-
 
| colspan="2" | 0 = read as byte, 1 = read as int. 
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
  
  
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPotentiometer1'''
 
|-
 
| colspan="2" | Read Potentiometer 1 as a byte or integer. 
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL
 
| width="90%" | Mode
 
|-
 
| colspan="2" | 0 = read as byte, 1 = read as int. 
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
  
  
  
  
==Property reference==
 
  
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-6-icon.png]]
 
| width="90%" | Channel 1
 
|-
 
| colspan="2" |  
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-6-icon.png]]
 
| width="90%" | Channel 2
 
|-
 
| colspan="2" |  
 
|-
 
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Settings
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
 
| width="90%" | VRef voltage
 
|-
 
| colspan="2" | +Vref voltage x 10mV Default 500 = 5V 
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
| width="90%" | VRef option
 
|-
 
| colspan="2" | Defines what is used as the ADC Vref source. 
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
| width="90%" | Conversion speed
 
|-
 
| colspan="2" | Clock setting to set how fast the ADC peripheral is driven. 
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
 
| width="90%" | Aquisition cycles
 
|-
 
| colspan="2" | Number of micro seconds to wait for the ACD input to charge before starting the analogue sample. 
 
|}==Macro reference==
 
  
 +
 +
==Macro reference==
 +
 +
===ReadPotentiometer1===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPotentiometer2'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPotentiometer1'''
 
|-
 
|-
| colspan="2" | Read Potentiometer 2 as a byte or integer. 
+
| colspan="2" | Read Potentiometer 1 as a byte or integer. 
 
|-
 
|-
 
|-
 
|-
Line 162: Line 106:
  
  
 +
===ReadPotentiometer2===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPotentiometer1'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPotentiometer2'''
 
|-
 
|-
| colspan="2" | Read Potentiometer 1 as a byte or integer. 
+
| colspan="2" | Read Potentiometer 2 as a byte or integer. 
 
|-
 
|-
 
|-
 
|-
Line 178: Line 123:
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
 
 
  
  

Latest revision as of 13:09, 7 February 2023

Author Matrix TSL
Version 1.1
Category EBM Modules


Dual Potentiometer - Trimmer component

This board provides two rotary potentiometers. This component directly interfaces with the EBM006 Dual Trimmers sensors board.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_EBM006v1.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_EBM006v1.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

ReadPotentiometer1

Fc9-comp-macro.png ReadPotentiometer1
Read Potentiometer 1 as a byte or integer. 
Fc9-bool-icon.png - BOOL Mode
0 = read as byte, 1 = read as int. 
Fc9-s16-icon.png - INT Return


ReadPotentiometer2

Fc9-comp-macro.png ReadPotentiometer2
Read Potentiometer 2 as a byte or integer. 
Fc9-bool-icon.png - BOOL Mode
0 = read as byte, 1 = read as int. 
Fc9-s16-icon.png - INT Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-6-icon.png Channel 1
 
Fc9-type-6-icon.png Channel 2
 
Fc9-conn-icon.png Settings
Fc9-type-14-icon.png VRef voltage
+Vref voltage x 10mV Default 500 = 5V 
Fc9-type-16-icon.png VRef option
Defines what is used as the ADC Vref source. 
Fc9-type-16-icon.png Conversion speed
Clock setting to set how fast the ADC peripheral is driven. 
Fc9-type-14-icon.png Aquisition cycles
Number of micro seconds to wait for the ACD input to charge before starting the analogue sample.