ARM HOW-TO GUIDE Interfacing Relay with LPC2148 ARM

Similar documents
ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing I2C-7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

8085 HOW-TO GUIDE Interfacing 8251 with 8085

8051 Advance Trainer

P89V51RD2 Development Board May 2010

Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN

LPC1768 Industrial Reference Design Platform System Development Kit Version 1.3. May 2009

DEV-1 HamStack Development Board

LPC2468 Industrial Reference Design Platform System Development Kit Version 1.2. August 2008

CoiNel Technology Solutions LLP. LPC2148 ARTIST Instruction Manual LPC2148 ARTIST. Instruction manual. Revision 1

ecee NXP LPC 2138 ARM Development Board

ICP05 IBOARD LITE ICP05. - iboard lite

LPC2148 DEV BOARD. User Manual.

IFC-OC04 Interface Free Controller Output Card

NFC NUTSHELL KIT. MCU Modules USER MANUAL REVISION GMMC GmbH Keywords Abstract. Document information

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

Lab Experiment 9: LCD Display

Basic Input/Output Operations

Advanced Embedded Systems

LPC1788 Mio Board. The functional details of the board are as follows-

EM-LPC1700 Evaluation Board User Manual V1.2

GIE 8051 Professional Kit. User Manual

Goal: We want to build an autonomous vehicle (robot)

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

Rhino Robot Control Board [RKI-1550]

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

RBT-225 Lab #2 Basic Stamp Relays August 14, 2016

Getting Started with STK200 Dragon

Bolt 18F2550 System Hardware Manual

μrfid User Manual v1.00

GIE 8051 Mini Kit. User Manual

Diploma in Embedded Systems

NX-51 V2 plus experiment board Documentation 1. NX-51 V2 plus. P89V51RD2 microcontroller Eexperiment board. Documentation

EE4380 Microprocessor Design Project

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

EVALUATION BOARD MANUAL EBSLSN Series. EVALUATION KIT MANUAL EKSLSN Series

MULTISENSOR SYSTEM USING LPC2148 MICROCONTROLLER

FiO Lite Datasheet FEATURES SAMPLE APPLICATIONS. FiO Lite

AVR Peripheral Board. Campus Component Pvt. Ltd.

AN Interfacing Philips Bridge IC with Philips microcontroller. Document information

Specification. 1.Power Supply direct from Microcontroller Board. 2.The circuit can be used with Microcontroller Board such as Arduino UNO R3.

Future Designs, Inc. Your Development Partner LCD DEMO KITS

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

EVALUATION BOARD MANUAL EBSHSN Series. EVALUATION KIT MANUAL EKSHSN Series

INTERFACING HARDWARE WITH MICROCONTROLLER

AVR 40 Pin Rapid Robot controller board

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

IFC-MD15A Interface Free Controller Brush Motor Card

ENGN3213. Digital Systems & Microprocessors. HLAB 6: ARM Embedded Systems I

EVALUATION BOARD MANUAL EBSHJN Series. EVALUATION KIT MANUAL EKSHJN Series

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

Trends in Prototyping Systems. ni logic Pvt. Ltd., Pune, India

Lab 1 Introduction to Microcontroller

ST SPC58 B Line Emulation Adapter System

3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2

WIRELESS EMBEDDED SYSTEM DESIGN

UM Gaming suitcase demo system. Document information

LPC1788 Mio Board. User Manual. Revision 1.0 1

DMX CONTROLLED RELAY K8072

CEIBO FE-5111 Development System

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

BIG8051. Development system. User manual

ReMutt Control. Critical Design Review

If I wanted to connect an LED and little light bulb and have them switch on and off with one switch, my schematic would look like the one below.

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

SK18A. 18 Pins PIC START-UP KIT. User s Manual V1.1. Dec 2007

SimPLC. User Manual.

Engr 355 Embedded Systems Design. mbed and LPC11U24 Overview. Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM

WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company

MK5 5-Axis Controller

3. The circuit is composed of 1 set of Relay circuit.

ANTI THEFT CONTROL SYSTEM OF CAR USING ARM7 Gunaganti Ganesh* 1

KNJN I2C bus development boards

LABORATORY MANUAL EMBEDDED SYSTEMS LABORATORY. M. Tech I Year I Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.

LIN bus board datasheet EB

EPM900 - Overview. Features. Technical Data

EE 354 August 1, 2017 Assembly of the AT89C51CC03 board

4 CHANNEL 5V RELAY MODULE

Lecture (03) PIC16F84 (2)

DEMO9S08LG32 Up to 5V MCU with integrated LCD display driver

FPGA Development Board Hardware and I/O Features

Exclusive 2.5 GHz Frequency Counter

An Example of using Keil uvision3 for creating Keil ARM s Project File

LCD Prototype Circuit on Solderless Breadboard. 840 Pin Solderless Breadboard ( # ND)

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

BEST Control System. Dave Wilkerson. September 12, 2015

3.3V regulator. JA H-bridge. Doc: page 1 of 7

Document status: Preliminary

AN LPC2138 extreme power down application note. Document information. LPC2138, extreme power down

Bachelor of Engineering in Computer and Electronic Engineering

Transcription:

ARM HOW-TO GUIDE Interfacing Relay with LPC48 ARM

Contents at a Glance ARM7 LPC48 Primer Board... Relay... Interfacing Relays... 4 Interfacing Relay with LPC48... 5 Pin Assignment with LPC48... 5 Circuit Diagram to Interface Relay with LPC48... 6 Source Code... 6 C Program to control Relay in LPC48... 7 Testing the LED with LPC48... 8 General Information... 9

ARM7 LPC48 Primer Board The ARM7 LPC48 Primer board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports in system programming (ISP) which is done through serial port. NXP s ARM7 (LPC48), ARM Primer Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of High speed -bit Microcontrollers. Relay Relays are devices which allow low power circuits to switch a relatively high Current/Voltage ON/OFF. A relay circuit is typically a smaller switch or device which drives (opens/closes) an electric switch that is capable of carrying much larger current amounts.

Interfacing Relays Fig. shows how to interface the Relay to microcontroller. There are input channels. Each input is connected to the triggering coil of the respective relay. There are output channels that each correspond to an input. When the input is energized, the relay turns on and the '+' output is connected to +v. When the relay is off, the '+' output is connected to Ground. The '-' output is permanently wired to Ground. Fig. Interfacing Buzzer to Microcontroller

RELAY Modules Interfacing Relay with LPC48 We now want to control the relay operations by using LPC48 Primer Board. Here we are using two Relays. The relay consists of a coil and a switch. When the coil is energized, the switch closes, connecting the two contacts together. ULN80 is used as a driver for port I/O lines, drivers output connected to relay modules. Connector provided for external power supply if needed. Relay Module : Port P pins (Realy P.0) and Relay-P.) for relay module, make port pins to high, relay will activated. Pin Assignment with LPC48 RELAY SPDT LPC48 Lines RELAY Power Select Relay- P.0 +5V OFF 4 SW8 8 7 6 5 ON 7SEG LCD SM/RL GLCD PWR ON/OFF Relay- P. JP8 - Internal +5V (Stepper Motor) Note : Relay selection make switch SW8 to SM/RL label marking position

6 6 XTAL XTAL VREF VDD VDD VDD VDDA 6 5 4 7 RL RL Circuit Diagram to Interface Relay with LPC48.V U6 6 8 5 4 50 59 VSS VSS VSS VSS4 VSS5 VSSA LPC48 P.6 P.7 P.8 P.9 P.0 P. 6 8 4 48 44 4 5 6 7 8 9 U4 I I I I4 I5 I6 I7 I8 GND 8 O 7 O 6 O 5 O4 4 O5 O6 O7 O8 COMM 0 STM_A STM_B STM_C STM_D RL RL ULN_PWR ULN80A C pf MHz X C pf JP9 RELAY O/P R_NO R_C R_NC D4 LED R5 0E ULN_PWR RL R_C JP 7 LS 6 4 R_NC 5 R_NO 8 RELAY SPDT RELAY O/P R_NO R_C R_NC ULN_PWR 7 LS RL 6 4 R_NC D5 R_C 5 R_NO 8 LED RELAY SPDT R6 0E JP0 RELAY O/P R_NO R_C R_NC RELAY SPDT Source Code The Interfacing Relay with LPC48 program is very simple and straight forward, which control the relays in LPC48 Primer Board. The relay is working that uses a delay procedure loop based software delay. The C programs are developed in Keil software.

C Program to control Relay in LPC48 *************************************************************************************** Title : Program to control Relay *************************************************************************************** #include <LPC4x.h> #include <stdio.h> #define RLY 0 //RLY (P.0) #define RLY //RLY (P.) void main(void) { PINSEL = 0x00; IODIR = << RLY; IODIR = << RLY; while() { //Configure P.0 Output //Configure P. Output //loop forever } IOSET = << RLY; Delay(); IOCLR = << RLY; Delay(); IOSET = << RLY; Delay(); IOCLR = << RLY; Delay(); } void Delay() { unsigned int i,j; for(i=0;i<000;i++) for(j=0;j<900;j++); }

To compile the above C code you need the KEIL software. They must be properly set up and a project with correct settings must be created in order to compile the code. To compile the above code, the C file must be added to the project. In Keil, you want to develop or debug the project without any hardware setup. You must compile the code for generating HEX file. In debugging Mode, you want to check the port output without LPC48 Primer Board. The Flash Magic software is used to download the hex file into your microcontroller IC LPC48 through UART0. Testing the LED with LPC48 Give +.V power supply to LPC48 Primer Board; the Relay module is connected with LPC48 Primer Board. When the program is downloading into LPC48 in Primer Board, the Relay output is working that the Relay is ON

some time period and the Relay is OFF some other time of period. If you are not getting any output from Relay, then you just check the jumper connections & check the Relay is connected properly. Otherwise you just check it with debugging mode in Keil. If you want to see more details about debugging just see the videos in below link. How to Create & Debug a Project in Keil. General Information For proper working use the components of exact values as shown in Circuit file. Wherever possible use new components. Solder everything in a clean way. A major problem arises due to improper soldering, solder jumps and loose joints. Use the exact value crystal shown in schematic. More instructions are available in following articles,

User Manual of LPC48 Primer Board. Tutorial of how to create & Debug a project in Keil.

Did you enjoy the read? Pantech solutions creates information packed technical documents like this one every month. And our website is a rich and trusted resource used by a vibrant online community of more than,00,000 members from organization of all shapes and sizes.

What do we sell? Our products range from Various Microcontroller development boards, DSP Boards, FPGA/CPLD boards, Communication Kits, Power electronics, Basic electronics, Robotics, Sensors, Electronic components and much more. Our goal is to make finding the parts and information you need easier and affordable so you can create awesome projects and training from Basic to Cutting edge technology.