UM1548 User manual. IR remote transmitter STEVAL-IHM037V1. Introduction

Similar documents
UM1546 User manual. STEVAL-IHM037V1 remote fan speed controller. Introduction

STEVAL-SPBT4ATV3. USB dongle for the Bluetooth class 1 SPBT2632C1A.AT2 module. Features. Description

AN2667 Application note

STEVAL-CCM002V1. TFT-LCD panel demonstration board based on the STM32 as LCD controller. Features. Description

AN2470 Application note TS4871 low voltage audio power amplifier Evaluation board user guidelines Features Description

AN4113 Application note

AN2676 Application note

EVAL6235PD. L6235 three-phase brushless DC motor driver demonstration board. Features. Description

AN3996 Application Note

STEVAL-PCC010V1. ST802RT1A Ethernet PHY demonstration board with STM32F107 controller add-on board. Features. Description

AN2672 Application note

AN3279 Application Note

AN2240 Application note

UM1572 User manual. STEVAL-IPE020V1: ST energy meter application based on the Android platform. Introduction

AN626 Application note

EV-VNQ5E050AK VNQ5E050AK evaluation board

AN2408 Application note

UM0792 User manual. Demonstration firmware for the DMX-512 communication protocol transmitter based on the STM32F103Zx.

AN2474 Application note

STM3210B-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

Main components 1 A, high efficiency adjustable single inductor dual mode buckboost DC-DC converter

STEVAL-IHM028V1. 2 kw 3-phase motor control demonstration board featuring the IGBT intelligent power module STGIPS20K60. Features.

AN3354 Application note

AN2855 Application note

UM0693 User manual. 1 Introduction. STM8L101-EVAL demonstration firmware

AN2936 Application note

AN2143 Application note

STM32-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

EMIF01-SMIC01F2 IPAD. Single line EMI filter including ESD protection. Main application. Description. Benefits. Pin configuration (Bump side view)

UM1488 User manual. STPMC1 evaluation software. Introduction

STM32-MP3NL/DEC. STM32 audio engine MP3 decoder library. Description. Features

AN2202 Application note

AN3001 Application note

Obsolete Product(s) - Obsolete Product(s)

AN3980 Application note

AN2825 Application Note

SOT23-6L ESDALCL6-2SC6

EMIF02-SPK02F2. 2-line IPAD, EMI filter and ESD protection. Features. Application. Description. Complies with the following standards

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

EMIF02-MIC01F2 2-line IPAD, EMI filter including ESD protection Features Application Description Complies with the standards:

AN3250 Application note

STICE CF/Stice_Connect AD/Stice_Connect AS/Stice_Connect

STTS V memory module temperature sensor. Features

STM8 I 2 C optimized examples

AN3965 Application note

AN2361 Application note

AN2734 Application note S-Touch design procedure Introduction

AN2673 Application note

STM3220G-SK/KEI. Keil starter kit for STM32F2 series microcontrollers (STM32F207IG MCU) Features. Description

OSPlus USB Extension. OSPlus USB 2.0 extension. Description. Features. Application. TCP/IP stack NexGenOS NexGenIP VFS. FAT Ext2 LVM Device layer

ST19WR08 Dual Contactless Smartcard MCU With RF UART, IART & 8 Kbytes EEPROM Features Contactless specific features

AN3265 Application note

UM0212 User manual. STOTG04 USB OTG full-speed transceiver demonstration board. Introduction

SMP75. Trisil for telecom equipment protection. Features. Description. Applications. Benefits

Obsolete Product(s) - Obsolete Product(s)

STA bit single chip baseband controller for GPS and telematic applications. Features

ST33F1M. Smartcard MCU with 32-bit ARM SecurCore SC300 CPU and 1.25 Mbytes high-density Flash memory. Features. Hardware features.

STLC2500D. Bluetooth V2.1 "Lisbon" + EDR. Features. Description

Main components USB charging controller with integrated power switch

LD A very low drop adjustable positive voltage regulator. Description. Features

AN2261 APPLICATION NOTE

UM0592 User manual. STEVAL-PCC006V1, HDD bridge extension board. board for mass storage applications. Introduction

STM8L-PRIMER STM32-PRIMER STMPRIMER

ST19NP18-TPM-I2C Trusted Platform Module (TPM) with I²C Interface Features

ECMF02-3F3. Common mode filter with ESD protection. Features. Description. Applications. Complies with the following standard:

UM0726 User manual STEVAL-PCC009V1, universal USB to serial communication interface (UUSCI) based on the STM32x Introduction

STM32-SK/RAIS,STR91X-SK/RAI,STR7-SK/RAIS STM32-D/RAIS,STR9-D/RAIS,STR7-D/RAIS

AN4321 Application note

EMIF03-SIM06F3. 3-line IPAD, EMI filter including ESD protection. Description. Features. Application. Complies with the following standards:

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

AN2594 Application note

AN3154 Application note

AN2557 Application note

AN2860 Application note

UM1084 User manual. CR95HF development software user guide. Introduction. Reference documents

MEMS functional sensor: smart 3D orientation and click detection standalone device. FC30-40 to +85 LGA-14 Tray FC30TR -40 to +85 LGA-14 Tape and reel

AN3975 Application note

INACTIVE - INACTIVE - INACTIVE

Description SPC564A-DISP. March 2014 DocID Rev 3 1/5

AN3174 Application note

ST21NFCB. Near field communication controller. Features. RF communications. Hardware features. Communication interfaces. Electrical characteristics

RN0046 Release note. 1 Introduction. SimpleMAC library for STM32W108xx kits. About this release note

STM8L-PRIMER STM32-PRIMER STMPRIMER

STM32 embedded target for MATLAB and Simulink release 3.1. Summary for STM32 embedded target for MATLAB and Simulink release 3.1:

AN2781 Application note

AN2592 Application note

AN4274 Application note

L6460. SPI configurable stepper and DC multi motor driver. Features. Description

TN0189 Technical note

SMP30. Trisil for telecom equipment protection. Features. Applications. Description. Benefits

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

AN3099 Application note

TN0132 Technical note

ST10F271B/E, ST10F272B/E Errata sheet

ESDA25LY Automotive dual Transil array for ESD protection Features Applications Description Benefits

STMicroelectronics. STxP70-4 assembler. User manual Rev A. October

AN2430 Application note

AN4440 Application note

AN3362 Application note

AN3991 Application note

Transcription:

UM1548 User manual IR remote trasmitter STEVAL-IHM037V1 Introduction The IR transmitter solution features three buttons which can be used to transmit three unique IR commands for various IR remote control applications. It is a direct implementation of the AN2957 application note, Implementing an RC5 infrared transmitter using the IR timer modulator of the STM8L101xx microcontroller. An STM8L101xx low power MCU is used to implement this design. The existing firmware, which is supplied with the application note, was modified slightly to accommodate for the three keys present in the design which are used to control speed-up, speed-down and power-on/off toggle operations. The circuit runs on a CR2032 coin cell battery and is designed to fit into a small key fob type enclosure. Figure 1. IR remote transmitter STEVAL-IHM037V1 This document explains the different parts and functions of the IR remote transmitter. December 2012 Doc ID 023257 Rev 1 1/14 www.st.com

Contents UM1548 Contents 1 Getting started.............................................. 4 1.1 Package................................................... 4 1.2 Initial setup................................................. 4 2 System overview............................................ 5 2.1 Hardware design description................................... 5 2.1.1 STEVAL-IHM037V1 IR remote transmitter....................... 5 2.1.2 Modifying the RC5 device address and instructions for the three keys.. 6 2.2 Hardware layout............................................. 6 3 Hardware schematics........................................ 8 3.1 Bill of materials............................................. 10 Appendix A Definitions............................................. 12 Revision history.................................................... 13 2/14 Doc ID 023257 Rev 1

UM1548 List of figures List of figures Figure 1. IR remote transmitter STEVAL-IHM037V1...................................... 1 Figure 2. IR transmitter in key fob enclosure............................................ 5 Figure 3. Hardware layout: main board - top side........................................ 6 Figure 4. Hardware layout: main board - bottom side..................................... 7 Figure 5. IR remote transmitter STEVAL-IHM037V1...................................... 8 Figure 6. Remote fan speed controller................................................. 9 Doc ID 023257 Rev 1 3/14

Getting started UM1548 1 Getting started 1.1 Package The remote fan speed controller includes the following: Hardware content: IR transmitter board with key fob enclosure including three-button carbon contact pad Documentation: User manual (this document) Schematics, Gerber files, BOM Firmware Already programmed STM8L device soldered on the demonstration board Object files are also available for the firmware. 1.2 Initial setup The IR remote controller board can be set up as follows: 1. Remove the board from the enclosure using a flat head screwdriver to separate the two parts of the key fob enclosure. 2. Install a CR2032 battery by sliding it into the battery retainer on the bottom side of the PCB with the battery +ve terminal on top, as indicated on the retainer. 3. Place the board back inside the upper half of the enclosure containing the slot for the carbon contact pad such that the contact switch footprints on the top layer are aligned below the carbon contact pad. 4. Snap fit the lower part of the enclosure by applying gentle pressure all around so that the two pieces lock into each other. 5. Now the key fob can be used to transmit the pre-programmed IR RC5 commands used to control the fan speed/dimmer intensity and it's ON/OFF state. 4/14 Doc ID 023257 Rev 1

UM1548 System overview 2 System overview 2.1 Hardware design description Figure 2. IR transmitter in key fob enclosure Speed up On/off Speed down AM12361v1 2.1.1 STEVAL-IHM037V1 IR remote transmitter This application is based on the direct implementation of the ST application note AN2957 with slight modifications to support the three keys. Table 1 lists the commands used for the three keys on the transmitter: Table 1. RC5 commands Key function Device address Device instruction 14 bits transmitted Speed up SAT1 [8] Number 8 [8] 10X01000001000 On/off SAT1 [8] Number 0 [0] 10X01000000000 Speed down SAT1 [8] Balance left [27] 10X01000011011 The RC5 frame is 14 bits long and comprises the following: 1 start bit (always 1) 1 field bit 1 toggle bit (represented in Table 1 as X). It changes state every time a key is released and pressed again. 5-bit device address (32 possible addresses) 6-bit device instruction (64 possible instructions). Doc ID 023257 Rev 1 5/14

System overview UM1548 2.1.2 Modifying the RC5 device address and instructions for the three keys The RC5.h file in the project folder (refer to the firmware for the AN2957 application note) contains all the definitions for the standard device addresses as well as the device instructions as per RC5 protocol. The global variables Address and Instruction defined in main.c are used to store the RC5 address and instruction codes to be transmitted. In this modified code, the MCU wakes up from Halt mode using external interrupt whenever any key is pressed on the remote. The program then checks which particular key was pressed and assigns the relevant RC5 address and instruction to the Address and Instruction variables respectively. It then calls the SendFrame() function to transmit the RC5 frame. This process is repeated as long as the key is pressed. Once the key is released, the system goes back to the low power Halt mode. The values that are assigned to the Address and Instruction variables can be changed inside the while(1) infinite loop in main.c file for each of the three keys to customize the remote. This enables the remote to transmit any valid RC5 frame for the three available keys. 2.2 Hardware layout The STEVAL-IHM037V1 component layout for top and bottom layers is shown below in Figure 5 and 6 respectively. It helps the user to locate different components/sections on the board. Figure 3. Hardware layout: main board - top side 6/14 Doc ID 023257 Rev 1

UM1548 System overview Figure 4. Hardware layout: main board - bottom side Doc ID 023257 Rev 1 7/14

Hardware schematics UM1548 3 Hardware schematics Figure 5 and 6 represent the schematic diagrams for the board. Figure 5. IR remote transmitter STEVAL-IHM037V1 8/14 Doc ID 023257 Rev 1

UM1548 Hardware schematics Doc ID 023257 Rev 1 9/14 Figure 6. Remote fan speed controller

10/14 Doc ID 023257 Rev 1 3.1 Bill of materials Table 2. Category ST devices Other devices Capacitors Resistors BOM Reference designator Component description Package Manufacturer Manufacturer s ordering code / orderable part number Document / project reference: BOM for the AC Fan speed controller/dimmer U1 STM8S003F3 value line series MCU TSSOP-20 STMicroelectronics STM8S003F3P6 Q1 Logic level TRIAC TO-220AB STMicroelectronics T435-600T Q2 NPN transistor SOT-23 STMicroelectronics 2STR1160 TSOP IR receiver 38 khz, DOME AXIAL Supplier Supplier ordering code TSOP 2.54 mm Vishay TSOP34838 Digi-key 751-1386-5-ND D1 Zener diode 5.6 V/ 0.5 W SOD123 Any DDZ5V6B-7 Digi-key DDZ5V6BDICT-ND D2 LL4148 SOD80 Any LLN4148 Digi-key LL4148FSCT-ND C1 470 µf/16 V electrolytic Radial 8 mm diameter / 3.5 mm pitch C2, C6,C7,C8 100 nf ceramic SMD0805 Any C4 (1) 330 nf or 680 nf/x2 22.5 mm pitch Vishay rated film capacitor C5 100 pf ceramic SMD0805 Any C9 470 nf ceramic SMD0805 Any R1,R5 100 Ω SMD0805 Any Any Digi-key P5141-ND BFC238312334 or BFC233920684 Digi-key 2222 383 12334-ND or BC2591-ND R2 82, 2 W Leaded Yageo RSF200JB-82R Digi-key 82W-2-ND Hardware schematics UM1548

11/14 Doc ID 023257 Rev 1 Table 2. Category Resistors Switches ST devices Other devices R3 330 kω/0.5 W Leaded Any Digi-key PPC330KW-1CT-ND R4,R6 4.7 kω SMD0805 Any R7 100 kω SMD0805 Any R8 2.7 kω SMD0805 Any SW1, SW2 Pushbutton switch right angle Switch tactile SPST-NO 0.05 A 12 V TT Electronics SWT6-R6K Digi-key 987-1385-ND Document / project reference: BOM for the IR remote transmitter U1 STM8L101 8-bit low power MCU TSSOP-20 STMicroelectronics STM8L101F2P6 Q1 PNP transistor SOT-23 STMicroelectronics 2STR2260 IRLED BT1 940 nm IR LED 3 V CR2032 battery retainer 3 mm through hole Vishay TSAL4400 Digi-key 751-1201-ND Memory protection devices Capacitors C1 100 nf ceramic SMD0805 Any Resistors R1 22 Ω SMD0805 Any Switches Enclosure BOM (continued) Reference designator SW1, SW2, SW3 (2) N/A Component description Carbon contact pushbutton switch on PCB BOSS 3 button key fob enclosure Package ENIG gold plated carbon contact switch (PCB) Manufacturer Manufacturer s ordering code / orderable part number Supplier BK-833 Digi-key BHSD-2032-SMCT-ND Enclosure Boss Enclosures 2955-20R-3 Farnell 1264656 1. C4 X2 rating is important for reliable operation. A DC rated capacitor (even rated at 1000 V DC) fails over time as it is not designed to withstand the stress conditions present on AC supply lines. Use 330 nf for 230 V AC nominal supply voltage and increase to 680 nf for 110 V AC supply. 2. SW1, SW2, SW3 are carbon contact footprints on the PCB while the actual carbon contact is integrated into the enclosure. Alternately, a 2-pin tactile SMD switch from MULTICOMP part no. DTSM-32S-B can be used on the same footprint. 3 Supplier ordering code Hardware schematics UM1548

Definitions UM1548 Appendix A Definitions Table 3. Definitions for acronyms Acronym IR MCU Definition Infrared Micro controller unit 12/14 Doc ID 023257 Rev 1

UM1548 Revision history Revision history Table 4. Document revision history Date Revision Changes 07-Dec-2012 1 Initial release. Doc ID 023257 Rev 1 13/14

UM1548 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 2012 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 14/14 Doc ID 023257 Rev 1