Microprocessor Systems Project name: Remote Control Switch Created - - PDF document

microprocessor systems
SMART_READER_LITE
LIVE PREVIEW

Microprocessor Systems Project name: Remote Control Switch Created - - PDF document

Microprocessor Systems Project name: Remote Control Switch Created by: Niclas Bewermeier Supervisor: Dr. Mahmoud Date: September 2017 Department of Electrical and Computer Engineering Contents Introduction


slide-1
SLIDE 1

Microprocessor Systems

Project name: Remote Control Switch Created by: Niclas Bewermeier Supervisor: Dr. Mahmoud Date: September 2017

Department of Electrical and Computer Engineering

slide-2
SLIDE 2

2

Contents

Introduction .................................................................................................................. 2 Remote Control Switch ................................................................................................ 2 Project specification and description ............................................................................ 3 Transmitter ............................................................................................................... 3 Receiver ................................................................................................................... 4 Operating modes ...................................................................................................... 5 Hook-up .................................................................................................................... 5 Learning .................................................................................................................... 7 Reset ........................................................................................................................ 8 Example of using remote control switches with HCS12 microcontroller ................... 8 References ................................................................................................................. 10

Introduction

Radio-frequency (RF) remote controls appear in many situations of our daily life, e.g. as garage door openers, car alarm fobs, or even in home-theater systems. Other than infrared-based remote controls, RF remotes send out radio waves instead of light

  • signals. This allows RF remotes to achieve high transmission ranges, even through

walls and other obstacles. This project introduces the functionality and configuration of remote control switches. Two different types of RF receivers for remote switches are introduced and their possible modes of operation are explained. Also, this report provides an example of how remote switches can interface with the HCS12 microcontroller.

Remote Control Switch

A remote control switch is shown in Fig. 1 (left). Such a device is actually a small radio

  • transmitter. When pushing the button on the device, a coded signal is transmitted to a

receiver (Fig. 1, right) using amplitude modulation (AM). Upon receipt of the signal, the receiver takes some action, e.g. pulling its output from low to high. This way, the remote control switch can be used to wirelessly control an application, e.g. triggering the motor to open a garage gate. For the receiver to be able to receive the signal generated by the

slide-3
SLIDE 3

3 transmitter, both devices need to use the same frequency. In this project, the working frequency is 433.92 MHz.

Figure 1: Remote control switch/transmitter (left) and receiver (right)

Each particular radio transmitter should use a different code. Otherwise the receiver would not be able to distinguish between transmitting devices, and hence any transmitter with the appropriate frequency would be able to control the receiver side. Nevertheless, multiple remote switches can be used to control the receiver, even though they are all transmitting uniquely coded signals. For the receiver to be able to receive a signal, it first needs to learn the code that the particular transmitter is using. To do so, the receiver can be switched into a learning mode, as explained later.

Project specification and description

Transmitter In this project, two transmitter types as shown in Fig. 2 are used, where the difference between both types is their transmission power (the bigger receiver has a higher transmission range). The transmitters are battery powered and when the pushbutton is pressed, the red LED indicates that the transmitter is sending. The big transmitter is also equipped with an on/off switch on the right side of the device.

slide-4
SLIDE 4

4

Figure 2: Remote controls used in this project

Receiver Two different types of receivers are used as shown in Fig. 3 and Fig. 4. In the first type, a transistor controls the output (low/high) and in the second type, a relay with NO/NC contacts is controlled.

Figure 3: Front (left) and back (right) of transistor-type receiver used in this project Figure 4: Front (left) and back (right) of relay-type receiver used in this project

slide-5
SLIDE 5

5 Operating modes Both receivers are able to run in different operating modes:

  • 1. Toggle – Every time a pushbutton (on remote control) is pressed, the output is

toggled

  • 2. Monetary – The output is high while a pushbutton is pressed and changes to low

as soon as the pushbutton is released The operating modes can be changed by adding/removing a connection between two contacts on the board, as shown in Fig. 5.

Figure 5: Location of connectors to change between operating modes

Hook-up Hook-up of transistor-type: This receiver has 4 pins. V+ and V- are input pins and connected to a 5V power supply (Fig. 6). P+ and P- are output pins and need to be connected to a separate circuit from the input circuit. Due to internal circuitry, the grounds of input and output circuits cannot be connected. In order to interface with a microcontroller, P- is connected to the ground of the microcontroller and P+ is the control signal, which is connected to an available port of the microcontroller. Pin Description V+ Input Vcc V- Input GND P+ Output Signal (High/Low) P- Output GND

slide-6
SLIDE 6

6

Figure 6: Circuit diagram for connecting the transistor-type receiver to a microcontroller

Hook-up of relay-type: This receiver is able to run with two different settings called “Adjusted Output” and “Output switching value”. In both settings pin + and – are input pins for power supply. To change the setting, two connectors on the receiver board need to be connected/separated as shown in Fig. 8. With setting “Adjusted Output”, the supply voltage is looped through to the output pins (Fig. 7, left). If the relay is off, OUT is low and NC is high. If the relay if on, OUT is high and NC is low. With setting “Output switching value”, the supply voltage is not connected to the output pins (Fig. 7, right). In this case, the receiver can be used as a switch for an external

  • circuit. The relay simply works as a changeover contact. If the relay is off, the switch

connects NO and NC. If the relay is on, the switch connects NO and OUT. Pin Adjusted Output Output switching value + Vcc Vcc

  • GND

GND NO unused

  • Ext. Input

OUT Output Signal (High/Low)

  • Ext. Output (NO)

NC Complement of OUT

  • Ext. Output (NC)

Figure 7: Internal circuitry (idealized) of the relay-based receiver in "Adjusted Output" setting (left) and "Output switching value" setting (right)

slide-7
SLIDE 7

7

Figure 8: The red connection has to be added/removed in order to change between the two settings

Learning – Add a remote control switch As mentioned in the introduction of this report, not every transmitter should be able to control the receiver. Hence, a receiver needs to learn the transmitters it is supposed to respond to. In order to add a device to control a receiver, the receiver needs to be switched into its learning mode by following these instructions: Learning on transistor-type:

  • 1. Enter learning mode by connecting the two contacts of the learning dot until the

LED starts flashing (Fig. 9). Then remove the connection.

  • 2. LED should now flash with approx. 1 Hz
  • 3. Press the pushbutton on remote control that should be learned. When pressing

the pushbutton, the LED should flash 3 times with faster frequency and then continue flashing with 1 Hz.

  • 4. Leave learning mode by connecting the two contacts of the learning dot again

until LED stops flashing.

  • 5. The remote control is now learned. When pressing the pushbutton on the remote

control, the LED on the receiver should indicate this by flashing 2 times.

Figure 9: Location of learning dot and LED

slide-8
SLIDE 8

8 Learning on relay-type:

  • 1. Enter learning mode by pressing and holding the pushbutton on the receiver until

the LED starts flashing (Fig. 10). Then release the pushbutton.

  • 2. LED should now flash fast.
  • 3. Press the pushbutton on remote control that should be learned. After pressing

the pushbutton, the LED should stop flashing.

  • 4. The remote control is now learned. When pressing the pushbutton on the remote

control, the LED on the receiver should indicate this.

Figure 10: Location of pushbutton and LED

Reset In case one of the previously learned remote controls should no longer be used to control the receiver, the receiver has to be reset. After resetting the device, all remote controls have to be learned again. Reset on transistor-type: Connect the two contacts of the learning dot for about 3-5 seconds. Fast flashing of the LED will indicate the successful reset. Reset on relay-type: Press and hold the pushbutton on the receiver for about 5 seconds. The LED will start flashing fast first (learning mode) and then when keeping the pushbutton pressed eventually flash slow. This slow flashing indicates that the reset was successful. Example of using remote control switches with HCS12 microcontroller As part of this project, the remote control switch was connected to the HCS12

  • microcontroller. In this example, the transistor-type receiver was used and it was

hooked up as shown in Fig. 6. To power the receiver, an external 5V-power supply was

  • used. The P+ pin of the receiver was connected to pin PH0 of the microcontroller. The

set-up is shown in Fig. 11.

slide-9
SLIDE 9

9

Figure 11: Receiver connected to HCS12 microcontroller on DragonBoard

The assembly-program on the microcontroller continuously checks the state of PH0 and shows the state on a LED (PB0). If PH0 is low, the LED is off, and if PH0 is high, the LED is on. The program code is shown below.

slide-10
SLIDE 10

10

References

http://electronics.howstuffworks.com/remote-control3.htm https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5- 12V-3-7v-5v-6v-7-4v-7/2025205396.html *** https://www.aliexpress.com/item/DC6V-7-4V-7-6V-8-4V-9V-12V-24V-36V-Radio- Receiver-Remote-Control-Switch/1882290030.html *** http://www.safaridrives.co.uk/content/manuals/DC3-5V-1CH.doc *** *** = Reference is attached as appendix to this report

slide-11
SLIDE 11

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 1/8

55 orders Shipping: Quantity: Total Price: Store Promotion:

MICRO RF Wireless Remote Control Switch DC3.5-12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433

Free Shipping to United States via AliExpress Standard Shipping

Estimated Delivery Time: 19- 39 days Set (999 Sets at most per customer)

US $8.10 Add to Cart

Add to Wish List (192 Adds)

Home > All Categories > Home Improvement > Electrical Equipment & Supplies > Switches

4.9 (58 votes) US $13.50 / Set Price:

US $8.10

/ Set

  • 40%

10 days left Discount Price: Get our app to see exclusive prices Bulk Price 1

Buy Now

Store: Shenzhen YK Remote Control Elec… 12887 Follow 99% Positive feedback I'm shopping for...

Buyer Protection Help Save big on our app! / USD Ship to Language

Recently Viewed

slide-12
SLIDE 12

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 2/8

Return Policy Seller Guarantees: Payment: Get Returns accepted if product not as described, buyer pays return shipping fee;

  • r keep the

product & agree refund with seller. View details On- time Delivery 60 days View More

Buyer Protection

Full Refund if you don't receive your

  • rder

Full

  • r Partial

Refund , if the item is not as described Learn More

Item specifics Product Description

please tell us you need Momentary or Toggle or Latched

Product Description

The receiver input Power Output Power ,Wide range working voltage, Mini size ,Learning Dot

  • n the receiver to matching the transmitter, the low voltage relay is inward,

the Super-heterodyne receiver module receiving sensitivity is high , anti-interference performance is good . so with the comnon transmitter will be much long range

Item Type: Switches Remote Distance: 20-200m Certification: CCC Features: Wide Working Voltage Switch Type: Remote Control Warranty: 1 Model Number: Mos01MH+TM01R

Product Details Feedback (58) Shipping & Payment Seller Guarantees

slide-13
SLIDE 13

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 3/8 anti-interference performance is good . so with the comnon transmitter will be much long range

  • 1. Working Voltage: A: DC3V-DC5V B: DC3.5V-DC12V Optional

(please leave us massage for you need A or B )

  • 2. Max Load: 1A (have better load less than 700ma)
  • 3. Working Frequency: 315/433.92MHz Optional by leave us massage

Working Current / Quiescent current :5- 7ma/H

  • 4. Frequency Deviation: more or less than 0.2MHz
  • 5. Working temperature: -20'C- +80'C
  • 6. Receiving Sensitivity: ≥-114dBm
  • 7. Output State: A: Input DC3V-DC5V Output DC3V-DC5V

B:Input DC3.5V-DC12V Output DC3.5v-DC12V

  • 8. Modulation Mode: amplitude modulation (AM)

9: Size: 21mm×11mm×6mm (L×W×H) Mini Size

  • 10. Output state: Momentary Toggle Latched adjustable

Momentary-------------Press the button is ON .Release your finger on the button is OFF Toggle--------------- Press one button for one time is ON .press the same button again is OFF Notice: It is micro receiver, before you purchase, please measure your load exact working voltage and current

slide-14
SLIDE 14

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 4/8

slide-15
SLIDE 15

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 5/8

slide-16
SLIDE 16

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 6/8

slide-17
SLIDE 17

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 7/8

slide-18
SLIDE 18

9/21/2017 MICRO RF Wireless Remote Control Switch DC3.5 12V 3.7v 5v 6v 7.4v 7.6v 9v Receiver Transmitter Mini Mos No Sound Learning 433-in Swit… https://www.aliexpress.com/item/MICRO-RF-Wireless-Remote-Control-Switch-DC3-5-12V-3-7v-5v-6v-7-4v-7/2025205396.html 8/8

DC 3.7V 4.5V 5V 6V 7.4 V 9V 12V Mini Small Vol ume RF Remote Contro

USD 35.00/lot

Mini Remote Control R eceiver RF Mos Receive r NO Sound DC3.5V-DC

USD 308.55/lot

Mos No Sound Micro R emote Switch3V 3.6V 4. 5V 5V 6V 7.4V 9V 12V s

USD 70.00/lot

3V 3.7V 4.2V 5V 6V 9V 1 2V wireless remote con trol switch mini size1A

USD 77.00/lot

DC 3V 3.6V 3.7V 4.5V 5 V 6V 7.4V 9V 12V Micro Remote switch 4CH Mo

USD 67.05/lot

DC3V 3.3V 3.7V 4.5V 5V 6V 9V Mini Receiver Mi cro ultrathin Remote C

USD 374.00/lot

3V 3.6V 3.7V 4.2V 5V 6V 7.4V 8V 9V 12V Micro R emote Switch Small Wi

USD 361.25/lot

Lighting Switches LED S MD Remote Control Sw itch DC 3.7V 4.5V 5V 6V

USD 361.25/lot

Packaging Details

Unit Type: Set Package Weight: 0.1kg (0.22lb.) Package Size: 12cm x 12cm x 12cm (4.72in x 4.72in x 4.72in)

More Products

slide-19
SLIDE 19

9/21/2017 DC6V 7.4V 7.6V 8.4V 9V 12V 24V 36V Radio Receiver Remote Control Switch Mos Receiver Contactless Remote Control Mini Micro RX on Ali… https://www.aliexpress.com/item/DC6V-7-4V-7-6V-8-4V-9V-12V-24V-36V-Radio-Receiver-Remote-Control-Switch/1882290030.html 1/5

You can: Return Policy Seller Guarantees: Payment:

DC6V 7.4V 7.6V 8.4V 9V 12V 24V 36V Radio Receiver Remote Control Switch Mos Receiver Contactless Remote Control Mini Micro RX

Sorry, this item is no longer available!

Click to view more products Add to Wish List (3 Adds)

Home

US $15.50

/ Set

Price: Bulk Price Returns accepted if product not as described, buyer pays return shipping fee;

  • r keep the

product & agree refund with seller. View details On- time Delivery days View More

Buyer Protection

Store: Shenzhen Pacific Security Market … 841 Follow 98.3% Positive feedback I'm shopping for...

Buyer Protection Help Save big on our app! / USD Ship to Language

Recently Viewed

slide-20
SLIDE 20

9/21/2017 DC6V 7.4V 7.6V 8.4V 9V 12V 24V 36V Radio Receiver Remote Control Switch Mos Receiver Contactless Remote Control Mini Micro RX on Ali… https://www.aliexpress.com/item/DC6V-7-4V-7-6V-8-4V-9V-12V-24V-36V-Radio-Receiver-Remote-Control-Switch/1882290030.html 2/5

Full Refund if you don't receive your

  • rder

Full

  • r Partial

Refund , if the item is not as described Learn More

Item specifics Product Description

is_customized: Yes Operating Temperature: -20'C - +60'C Brand Name: YK*

  • Max. Voltage: DC36V
  • Max. Current: 10A(have better less than7A)

Model Number: 6V36MO01BWTM01

Product Details Feedback (0) Shipping & Payment Seller Guarantees

slide-21
SLIDE 21

9/21/2017 DC6V 7.4V 7.6V 8.4V 9V 12V 24V 36V Radio Receiver Remote Control Switch Mos Receiver Contactless Remote Control Mini Micro RX on Ali… https://www.aliexpress.com/item/DC6V-7-4V-7-6V-8-4V-9V-12V-24V-36V-Radio-Receiver-Remote-Control-Switch/1882290030.html 3/5

slide-22
SLIDE 22

9/21/2017 DC6V 7.4V 7.6V 8.4V 9V 12V 24V 36V Radio Receiver Remote Control Switch Mos Receiver Contactless Remote Control Mini Micro RX on Ali… https://www.aliexpress.com/item/DC6V-7-4V-7-6V-8-4V-9V-12V-24V-36V-Radio-Receiver-Remote-Control-Switch/1882290030.html 4/5

slide-23
SLIDE 23

9/21/2017 DC6V 7.4V 7.6V 8.4V 9V 12V 24V 36V Radio Receiver Remote Control Switch Mos Receiver Contactless Remote Control Mini Micro RX on Ali… https://www.aliexpress.com/item/DC6V-7-4V-7-6V-8-4V-9V-12V-24V-36V-Radio-Receiver-Remote-Control-Switch/1882290030.html 5/5

Packaging Details

Unit Type: Set Package Weight: 0.1kg (0.22lb.) Package Size: 10cm x 8cm x 9cm (3.94in x 3.15in x 3.54in)

slide-24
SLIDE 24

The receiver input DC3V or 5V (depending on the model you

  • rder), Mini size ,Learning button on the receiver to matching

the transmitter, the low voltage relay is inward, the Super-heterodyne receiver module receiving sensitivity is high ,anti-interference performance is good . The receiver module is especially suitable with mobile phone lithium battery power supply, when the receiver input is DC4.2V the quiescent current is about 3.5mA, the relay actuation current is about 30mA. The receiver is the learning code receiver, it can learn most fixed code and learning code transmitter with the same frequency, it can keep 16pcs different encoding code transmitter.

  • 1. Working Voltage: DC3V/DC5V (do not put 5v into the 3v

version)

  • 2. Max Load: 2A ( DC24V 2A AC120V 2A )
  • 3. Working Frequency: 433mhz
  • 4. Frequency Deviation: more or less than 0.2MHz
  • 5. Working temperature: -20'C- +80'C
  • 6. Receiving Sensitivity: ≥-105dBm
  • 7. Output State: the relay NO Junction output DC3V-5V high

potential (HPOT) (Output +DC3-5V)

slide-25
SLIDE 25
  • 8. Modulation Mode: amplitude modulation (AM)

9: Size: 32mm×13mm×12mm (L×W×H) Mini Size

  • 10. Output state: Momentary .Toggle. Latched adjusted by

connecting with different dot (see diagram at base of this document – please allow time for it to display). Momentary--------No Connection Toggle--------Connect “T “& Mid Dot Latched----------Connect “L” & Mid Dot Momentary-------------Press the button is ON .Release your finger

  • n the button is OFF

Toggle--------------- Press one button for one time is ON .press the same button again is OFF Latched------------- Press one button is ON, press another button is OFF Learning Method: Keep on pressing the learning button for about 2 Seconds, the Learning LED indicator will flashing fast, then release your finger on the learning button ,the receiver have been entered into learning state .then press the transmitter transmit the signal ,the receiver indicator flashing fast again ,it means that learning successfully. Clearing the Code:

slide-26
SLIDE 26

Keep on pressing the learning button about 6 Seconds, the receiver learning button LED indicator flashing from fast to slow, it means that clearing is successfully. As standard these switches are supplied with 3/5v direct output (same as input), as shown in diagram above.

slide-27
SLIDE 27

This can be changed to switching output (ie 0v at output–switch

  • nly acts as connector or disconnector of existing live

applicance circuit). To change to switching output, remove the solder connection between the 2 points shown in the bottom of the circle in the diagram above.