Component: Current Sensor (ACS7xx) (Electrical): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (16 intermediate revisions by 4 users not shown) | |||
| Line 14: | Line 14: | ||
==Current Sensor (ACS7xx) component== | ==Current Sensor (ACS7xx) component== | ||
ACS7XX range of +/- 5, 20, 30, 50, 100, 150 & 200A current sensors | ACS7XX range of +/- 5, 20, 30, 50, 100, 150 & 200A current sensors | ||
==Detailed description== | ==Detailed description== | ||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
| Line 41: | Line 21: | ||
==Examples== | ==Examples== | ||
A simple example shows how to use a ASC712 to measure current range of +/- 5A. | |||
The component type can be changed within its properties. | |||
{{Fcfile|Current_measure_ACS7xx.fcfx|ACS712 example}} | |||
{{Fcfile| | |||
==Macro reference== | ==Macro reference== | ||
{| class="wikitable | ===Current=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Current''' | ||
|- | |- | ||
| colspan="2" | Current reading in amps | | colspan="2" | Current reading in amps | ||
| Line 76: | Line 43: | ||
{| class="wikitable | ===VoltgeADC=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''VoltgeADC''' | ||
|- | |- | ||
| colspan="2" | Reads the Voltage of the ADC pin for diagnostic purposes. With no current flowing through the sensor, the voltage reading should be 2.50V. If that is out, then enter precise VDD within properties | | colspan="2" | Reads the Voltage of the ADC pin for diagnostic purposes. With no current flowing through the sensor, the voltage reading should be 2.50V. If that is out, then enter precise VDD within properties | ||
| Line 87: | Line 55: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| Line 112: | Line 78: | ||
| width="90%" | VDD | | width="90%" | VDD | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | For improved accuracy, measure the voltage across the supply of the current sensor, then enter that as VDD voltage. | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | ||
| Line 128: | Line 94: | ||
|- | |- | ||
| colspan="2" | Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage VDD - Defines the microcontrollers power supply pin as the max reference, VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. | | colspan="2" | Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage VDD - Defines the microcontrollers power supply pin as the max reference, VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| Line 143: | Line 104: | ||
|- | |- | ||
| colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | | colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | ||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |||
| width="90%" | Average Loop (1 - 255) | |||
|- | |||
| colspan="2" | The more higher the value, the more stable and accurate result would be. Results will take longer. Try 200 | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |||
| width="90%" | Offset Voltage | |||
|- | |||
| colspan="2" | The voltage value when no cureent is flowing This is normally 2.5V for bidirectional and 0V for Unidirectional | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |||
| width="90%" | Bit Depth | |||
|- | |||
| colspan="2" | | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |||
| width="90%" | Sensitivity | |||
|- | |||
| colspan="2" | Component sensitivity x10 | |||
|} | |} | ||
==Component Source Code== | |||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Current_Sensor_ACS7xx.fcfx FC_Comp_Source_Current_Sensor_ACS7xx.fcfx] | |||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Current_Sensor_ACS7xx.fcfx FC_Comp_Source_Current_Sensor_ACS7xx.fcfx] | |||
Latest revision as of 14:22, 13 July 2026
| Author | medelec35 |
| Version | 1.0 |
| Category | Electrical |
Current Sensor (ACS7xx) component
ACS7XX range of +/- 5, 20, 30, 50, 100, 150 & 200A current sensors
Detailed description
No detailed description exists yet for this component
Examples
A simple example shows how to use a ASC712 to measure current range of +/- 5A. The component type can be changed within its properties.
Macro reference
Current
| Current | |
| Current reading in amps | |
| Return | |
VoltgeADC
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Current_Sensor_ACS7xx.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Current_Sensor_ACS7xx.fcfx