AN204742 F2MC-8FX Family MB95200 Series Vacuum Cleaner Demo.pdf

THIS SPEC IS OBSOLETE
Spec No:
002-04742
Spec Title:
AN204742 - F2MC-8FX Family, MB95200 Series
Vacuum Cleaner Demo
Replaced by: None
AN204742
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
This application note describes the functionality of MB95200 Series Vacuum Cleaner Demo.
1
Introduction
The vacuum cleaner is widely used in family today. It can be distinguished in two kinds by the control way:
mechanical and intelligent. The first kind is low-cost but it brings much disturbance to the power line which is not
allowed in many areas of the world. The second kind can deal with the disturbance problem at a little higher cost and
also has various functions. In the following part, we will introduce a low-cost, high-stability demo based on Cypress
MB95F200 series MCU for vacuum cleaner.
It supports the following features:




Non-isolated powered by 220v using RC block
Zero-cross and Frequency Detecting to power line
A/D input for speed setup
PWM to modulate SCR
2
Demo Platform
2.1
Platform
This design has little components but it is of high quality. It is easy to connect and fix. The yellow wires are connected
to the 220v AC. The blue wires are connected to the AC motor. User can change the speed by potentiometer. Please
refer to the Figure 1.
Figure 1. Vacuum Cleaner Demo
www.cypress.com
Document No. 002-04742 Rev.*A
1
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
2.2
Operation Notice
Because the system is powered by 220v without any isolated part, before you operate the demo, please see the
advice below:
3
1.
DO NOT TOUCH THE DEMO WHEN IT WORKS!
2.
When you debug the system, please use low AC power (12v-20v) supply which can avoid system failure.
Function
Figure 2 is the top view of a vacuum cleaner. The knob in the centre is connected to a potentiometer. Turning the
knob can change the motor speed. When the prominence on the knob aims at the „MIN‟, the motor will run at a
minimum speed; while when the prominence aims at the „MAX‟, the motor will run at maximum speed.
Figure 2. Top View of Vacuum Cleaner
www.cypress.com
Document No. 002-04742 Rev.*A
2
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
4
Hardware
In this system, transformer is not used to transform 220v AC to the MCU-acceptable voltage. The MCU is hanged on
the power line in the way of floating GND. The RC block will reduce the current that going through the MCU system.
D and D1 makes up the rectifier stage. The voltage between the Vss and Vcc of MCU is restrained to about 5V by
D1. Two PWM output pins are connected to the gate of TRIAC to open the TRIAC at the zero-cross point. The two
PWM have the same phase, duty and frequency. P12 is used for zero-cross detecting.
Figure 3 shows the schematic diagram.
Figure 3. Vacuum Cleaner
Table 1 gives the MCU pin assignment.
Table 1. MCU Pin Assignment
Number
Pin
Direction
Function
5
P04
INPUT
A/D input
6,7
TO00/TO01
OUTPUT
PWM output to SCR gate
8
P12/DBG
INPUT/DUAL
DIRECTION
Zero-cross detecting/Debug port
www.cypress.com
Document No. 002-04742 Rev.*A
3
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
5
Firmware
5.1
Flow Chart
To this system, the firmware implemented three main functions: get speed setup, detect the zero-cross point and
adjust the trigger phase of the SCR. Speed setup is gotten by A/D input. The value of the A/D input will control the
trigger phase of the SCR. Zero-cross point supplies a reference to the trigger point. Additionally, the frequency of the
AC power is important to this design because many parameters are based on 50HZ AC power.
Figure 4 gives the flow chart of the firmware.
Figure 4. Flow Chart
Start
Initialize MCU
Power
Frequency
= 50HZ?
N
Stop
here
Y
Soft start to a
certain speed
Get A/D
Adjust motor
speed
www.cypress.com
Document No. 002-04742 Rev.*A
4
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
5.2
Project
This demo uses MB95F212H to implement all the functions. MB2146-08-E and SOFTUNE V3 are used to debug the
demo.
The Project is shown in Figure 5.
Figure 5. Project
www.cypress.com
Document No. 002-04742 Rev.*A
5
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
6
Document History
2
Document Title: AN204742 - F MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
Document Number: 002-04742
Revision
ECN
Orig. of
Change
Submission
Date
Description of Change
**
-
HUAL
11/04/2009
Initial release
*A
5233350
HUAL
06/17/2016
Migrated Spansion Application Note MCU-AN- 500058-E-10 to
Cypress format
There is no web link for where/how to get the board and firmware
mentioned in the document. So this AN is for obsolete.
www.cypress.com
Document No. 002-04742 Rev.*A
6
F2MC-8FX Family, MB95200 Series Vacuum Cleaner Demo
Worldwide Sales and Design Support
Cypress maintains a worldwide network of offices, solution centers, manufacturer‟s representatives, and distributors. To find
the office closest to you, visit us at Cypress Locations.
PSoC® Solutions
Products
®
®
ARM Cortex Microcontrollers
cypress.com/arm
PSoC 1 | PSoC 3 | PSoC 4 | PSoC 5LP
Automotive
cypress.com/automotive
Cypress Developer Community
Clocks & Buffers
cypress.com/clocks
Interface
cypress.com/interface
Lighting & Power Control
cypress.com/powerpsoc
Memory
cypress.com/memory
PSoC
cypress.com/psoc
Touch Sensing
cypress.com/touch
USB Controllers
cypress.com/usb
Wireless/RF
cypress.com/wireless
Forums | Projects | Videos | Blogs | Training | Components
Technical Support
cypress.com/support
PSoC is a registered trademark and PSoC Creator is a trademark of Cypress Semiconductor Corporation. All other trademarks or registered trademarks
referenced herein are the property of their respective owners.
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone
Fax
Website
: 408-943-2600
: 408-943-4730
: www.cypress.com
© Cypress Semiconductor Corporation, 2009-2016. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including
Spansion LLC (“Cypress”). This document, including any software or firmware included or referenced in this document (“Software”), is owned by
Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such
laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other
intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with
Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to
sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for
use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end
users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of
Cypress‟s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for
use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD
TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to
make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or
circuit described in this document. Any information provided in this document, including any sample design information or programming code, is
provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and
safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as
critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or
systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances
management, or other uses where the failure of the device or system could cause personal injury, death, or property damage (“Unintended Uses”). A
critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or
system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim,
damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and
against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of
Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or
registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other
names and brands may be claimed as property of their respective owners.
www.cypress.com
Document No. 002-04742 Rev.*A
7
Similar pages
AN205127 MB95410H/470H Series One Phase Power Meter (RN8209) Solution Display Operation.pdf
AN206373 F²MC/FR Family All series Method of confirming data in serial Communications.pdf
AN205346 F²MC-8FX Family, MB9500 Series Power Factor Correction.pdf
AN204940 F²MC-8L Family MB89F538 Programming Guide.pdf
AN404 F-RAM RTC Backup Supply (VBAK pin) and UL Compliance.pdf
AN400 Generating a Power-Fail Interrupt using the F-RAM Processor Companion Power-Fail Comparator.pdf
AN205508 F²MC-8FX Family MB95200 Series Keyboard development using AD.pdf
AN402 F-RAM RTC Oscillator Design Guide.pdf
CE210988 CY8CKIT-042-BLE F-RAM™ Data Logger.pdf
CE210197 Adjustable Reference Comparator.pdf
CY24115, MediaClock™ Mini Disc Clock Generator Datasheet.pdf
CE211423 CY8CKIT-042-BLE F-RAM™ I2C.pdf
AN2197 Stepper Motor Driver for Smart Gauges.pdf
AN205342 FM3 MB9B500 Series Space Vector Pulse Width Modulation.pdf
AN205229 F²MC-8FX Family MB95410H/470H Series LCDC_8COM.Lib.pdf
AN205179 F²MC-8FX Family MB95410H/470H Series 8-Bit Microcontroller One Phase Power Meter (CS5464) Solution Real Time Clock and Data Storage Operation.pdf
AN205281 F²MC-8FX Family MB95200H/210H Series External Interrupts.pdf
AN205072 F²MC-8FX Family MB95350L Series I2C Slave Module API.pdf
ETC LXT361LE
AN204738 F²MC-8FX Family MB95200 Series 8-Bit Microcontroller Electronic Safe Demo Reference Solution.pdf
AN204734 F²MC-8FX Family MB95200 Series 8-Bit Microcontroller Smoke Detector Demo Reference Solution.pdf
AN205124 F²MC-8FX Family MB95200H/210H Series 8-Bit Microcontroller Battery Charger Reference Solution.pdf