DSP, Micros & Memory


Cutting energy consumption, running costs and time-to-market with smarter air handling

19 April 2006 DSP, Micros & Memory

Substantial reductions in both costs and energy consumption can be made by using electronic controls in industrial, commercial and residential use - applications which account for around 70% of all US energy consumption, according to official sources.

Operating motors account for around half of this entire energy bill and many household applications such as dishwashers, washing machines, tumble dryers, heating, ventilation and airconditioning (HVAC) systems use AC single phase induction motors, which are either fully on, or off entirely.

Replacing a standard on/off control with a variable speed motor control when designing such applications could significantly boost energy efficiency and reduce running costs. In the past, this would have added to the complexity of the design, but the inclusion of a microcontroller with a built-in motor control kernel technology can now greatly simplify design and reduce time-to-market for these applications.

Many HVAC systems are obvious examples of applications which either run at full speed or are switched off, with no variation in between. This article aims to demonstrate how designing a variable speed air handler can be greatly simplified by using the reference design available as the programmable motor control processor technology (ProMPT), which is based on Microchip Technology's PIC18F2539 Motor Control Evaluation Kit.

Design overview

Although specifically developed for air handling in an HVAC system, this reference design provides an example of how simplified motor control can be used in other applications. The PIC18F2539 microcontroller in the reference design is an enhanced Flash microcontroller, featuring the single phase induction motor control (SPIMC) kernel. The SPIMC kernel enables open loop variable frequency (VF) control and provides a programmable voltage versus frequency curve and it is a natural choice for adding variable speed control to an air handler application.

The block diagram in Figure 1 is for the variable speed motor control design. The PIC18F2539 motor control reference design can be used to control shaded pole and permanent magnet split capacitor type motors. Adding specific features can be achieved by designing a custom daughter board. Here, the daughter board adds a user interface and temperature sensor (shown in the dotted lines) to the existing AC induction motor drive.

Figure 1. Block diagram of application components
Figure 1. Block diagram of application components

Application overview

This reference design shows how variable speed control can be added to an HVAC air handler. The application does not address control of the heating element, which is assumed to be a simple logic on/off control. Usually, the thermostat installed within the house sets the target temperature. In this application, a simple user interface consisting of two 8-segment LEDs and two pushbuttons is used to set the target temperature.

The motor control circuit is built around Microchip's PIC18F2539 Flash microcontroller. This microcontroller has an 8-bit RISC core with 24 KB of on-chip program memory and 1,4 KB of data memory available. The peripherals include up to six channels of 10-bit ADCs, two PWM modules, USART, I2C, SPI and up to 20 digital I/Os.

The motor control kernel is embedded in the microcontroller for the user's application development. A set of application program interface (API) methods is used to communicate with the motor control kernel and application software. The application program can be developed, debugged and executed using the MPLAB integrated development environment (IDE) tool.

Temperature sensing

In this design, air temperature is measured using Microchip's TC1047A temperature sensor, a precision temperature-to-voltage converter. This eliminates the need to perform the calibration that is usually required when using thermocouples. The TC1047A is a linear voltage output temperature sensor, whose output is directly proportional to the measured temperature. It accurately measures temperature from -40°C to 125°C, which is more than adequate for household HVAC applications. The temperature sensor requires one analog input pin and supply voltage can vary from 2,5 V to 5,5 V.

When the air temperature is more than 5°C below the target temperature, the air handler operates at full speed and adjusts accordingly when it is within 5° of the target. When the air temperature falls, the air handler speeds up and delivers more hot air into the house.

To avoid on/off cycling when the actual temperature is close to the target temperature, the lower end of the variable speed response curve includes a hysteresis loop. In order for the air handler to turn on at the minimum motor frequency, the actual temperature must be more than 1°C below the target temperature. However, to turn it off, the difference between the two temperatures must be zero. As on/off cycling is avoided, the system is quieter, less obtrusive and energy is conserved.

Single phase motor control kernel

The motor control kernel of the PIC18F2539, or any microcontroller in the family, uses variable frequency technology to control the speed of a single-phase induction motor. The controller's two PWM modules are used to synthesise a sine wave current through the motor windings. The kernel provides open loop control for a frequency range of 15 Hz to 127 Hz.

The speed of an induction motor is a function of frequency, slip and the number of poles in the motor. Slip is assumed to be constant across the motor's useful operating range. Since the rated speed is based on the number of poles and is fixed by motor design, changing the frequency of the supplied voltage is the only way to vary the motor's speed. However, when the frequency controlling a motor is reduced, its impedance is also reduced, resulting in a higher motor current draw.

The voltage applied to the motor is proportional to both the frequency and the current. To keep the current constant at or below the full load current rating, the RMS voltage to the motor must be reduced in line with the frequency. By varying the supply voltage and frequency at a constant ratio, the motor's speed can be varied with constant current. Maintaining this constant ratio is the function of the motor control kernel.

Application firmware

The list below outlines the firmware functions of the variable speed air handler application. Those tasks marked with an asterisk (*) are related to control of the AC induction motor.

1. Initialise the motor control module.*

2. Set the appropriate voltage frequency (VF) curve for the motor.*

3. Execute a continuous loop that performs the following tasks:

a) Read the temperature sensor connected to ADC channel RA0.

b) Read the motor current, DC bus voltage, and heatsink temperature.

c) Read and debounce the button inputs.

d) If a button is pressed, increase or decrease the temperature as necessary.

e) Check for faults.

f) Compare the actual temperature to the target temperature.

g) Set the appropriate motor frequency.*

h) Update the LED display with actual or target temperature.

i) Continuously control the AC induction motor.*

By using the PIC18F2539 and the ProMPT-based Single Phase Induction Motor Control kernel, the biggest tasks are simplified. The ProMPT API methods make the development of the motor control application and its related code much easier. Constants such as motor voltage to frequency curve and acceleration rate are achieved using the appropriate API methods, and are dependent on the specific motor used in the application. A detailed flow chart of the application firmware is shown in Figure 2.

Figure 2. Motor control routine using the ProMPT APIs
Figure 2. Motor control routine using the ProMPT APIs

Software interface

A sine table, stored in the ProMPT kernel, is used as the basis for synthesising the DC bus using the PWM modules. The table values are accessed sequentially and scaled based on the motor's targeted operating frequency (speed). The frequency input can be from an A/D channel or a digital value. Parameters in the ProMPT modules can be accessed using the defined API methods.

The kernel memory contains a linear default voltage to frequency (V/F) curve. Users can modify the curve in the application program to meet their requirements using the API method SetVFCurve(X,Y), where X is the frequency and Y is the level of modulation of the DC bus voltage. Normally, the input frequency corresponding to the point on the V/F curve that provides 100% modulation should match the motor's rated frequency. Similarly, full modulation should occur at the motor's rated input voltage.

Using the motor control kernel to develop applications

The motor control kernel enables users to develop applications without having detailed knowledge of motor control. The key parameters of the motor control kernel can be set and read through the application program interface (API) methods. The application can be thought of as a protocol stack, as shown in Figure 3. Here, the API methods reside between the user's application and the ProMPT kernel and are used to exchange parameter values.

Figure 3. Layers of the motor control architecture stack
Figure 3. Layers of the motor control architecture stack

The code shown in Figure 4 shows a typical motor control routine. Here, the motor will run at 20 Hz for 10 seconds, accelerate to 60 Hz at the rate of 10 Hz/s, remain at 60 Hz for 20 seconds, and finally stop. The API methods combined with motor characteristics and applications requirements can be used to run the motor at optimum torque or efficiency, or other criteria.

Figure 4. Motor control routine using the ProMPT APIs
Figure 4. Motor control routine using the ProMPT APIs

Conclusion

Variable speed control can easily be added to an HVAC air handler by using Microchip's PIC18F2539 Motor Control Evaluation Kit, greatly simplifying design and reducing time-to-market for many motor control applications. The embedded motor control kernel allows the user with little or no knowledge of motor control, to add variable control to shaded pole and permanent magnet split capacitor type motors, greatly enhancing the end product.

References: Microchip Technology AN861; Microchip Technology PIC18F2539 Data Sheet; ProMPT Developer Kit User's Guide.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Wi-Fi 6 and Bluetooth LE co-processor
Altron Arrow Telecoms, Datacoms, Wireless, IoT
STMicroelectronics has released its ST67W611M1, a low-power Wi-Fi 6 and Bluetooth LE combo co-processor module.

Read more...
High performance SDR design considerations
RFiber Solutions Editor's Choice DSP, Micros & Memory
As the spectrum gets increasingly crowded, and adversaries more capable, the task of examining wide bands and making sense of it all, while not missing anything, gets harder.

Read more...
New 3dB hybrid couplers
Electrocomp Telecoms, Datacoms, Wireless, IoT
Designed to facilitate the continued evolution of high-frequency wireless systems in various market segments, the new DB0402 3dB 90° hybrid couplers provide repeatable high-frequency performance compatible with automated assembly.

Read more...
Direct RF converters and FPGAs boost EW applications
RFiber Solutions DSP, Micros & Memory
The latest boost to electronic warfare designs comes from emerging FPGA architectures that combine advanced RF converters and high-performance processing engines in a single package.

Read more...
Empowering innovation with ST’s AI processors
Altron Arrow AI & ML
Artificial intelligence is no longer just a futuristic concept – it is here, and it is transforming industries at an unprecedented pace.

Read more...
Robust series of vertical-mating battery connectors
Electrocomp Interconnection
KYOCERA AVX has further expanded its industry-leading selection of standard battery connectors with the introduction of the new 9155-900 Series 2,5 mm-pitch vertical-mate battery connectors.

Read more...
1-Wire EEPROM with secure authenticator
Altron Arrow DSP, Micros & Memory
The DS28E54 secure authenticator combines FIPS 202-compliant secure hash algorithm (SHA-3) challenge and response authentication with secured electrically erasable programmable read-only memory.

Read more...
The 6 GHz band radio solution
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Analog Devices’ 16 nm transceiver family offers a highly integrated solution for this new frequency band, featuring low power consumption and high performance.

Read more...
New clock generator family
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Based on Skyworks’ fifth generation DSPLL and MultiSynth technologies, these devices enable any-frequency, any-output clock generation.

Read more...
Dual accelerometers on the same die
Altron Arrow Analogue, Mixed Signal, LSI
The LSM6DSV320X is the first mainstream inertial sensor to house a gyroscope alongside two accelerometers, one capable of sensing up to ±16 g and one sensing up to a staggering ±320 g.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved