Related Terminologies

Table of Contents

Interfacing of relay with any embedded core (ARM/STM32/MSP430)


Table of Contents

The MSP430 Development kit is made to help students learn the embedded systems skills they need to succeed. The students will be able to easily utilize all of the microcontroller’s features thanks to the design of the kit. The unit upholds with Code Arranger Studio v4 and later through USB port.

Texas Instrument Microcontroller, MSP430 Improvement pack is proposed to smooth the advancement of creating and troubleshooting of different plans incorporating of speed 16-cycle Microcontrollers. To create a stand-alone, adaptable test platform, it incorporates onboard PS2, UART, ADC, PWM, temperature sensor, relay, buzzer, I2c Seven Segment, I2C Serial EEPROM, temperature sensor LM35, matrix keypad, switch, LED, stepper motor driver, traffic light controller, I2C RTC, LCD, and GLCD display. Client can undoubtedly take part Being developed in this stage, or use it as reference to application Improvement.


Low-power circuits can use relays to switch a relatively high Current/Voltage ON/OFF. Most of the time, a relay circuit is a smaller switch or device that drives (opens/closes) an electric switch that can handle a lot more current.

Interfacing Relay with MSP430F5529

Fig. 1 demonstrates the microcontroller-relay interface. There are two channels for input. The relay’s triggering coil is connected to each of the inputs. Each of the two output channels corresponds to an input. The relay is activated when the input is energized, and the “+” output is connected to +12 volts. The “+” output is connected to Ground when the relay is turned off. Ground is connected permanently to the “-” output.

Interfacing Relay with MSP430F5529

We presently need to control the transfer activities by utilizing MSP430F5529 Advancement Board. Two Relays are utilized here. There is a coil and a switch in the relay. The switch closes, joining the two contacts together, when the coil is energized. The output of the ULN2803 driver is connected to relay modules on port I/O lines. Connector accommodated outside power supply if necessary.

Module for Relay: Relay module port P1 pins (Realy1 – P3.2) and Relay2-P3.5): raise port pins to high to activate relay.

Pin Assignment with MSP430F5529

Interface Relay with MSP430F5529 MSP430 For the motor/relay section, use jumper JP8 to get power from either an internal (on-board) or external supply.

Circuit Diagram to Interface Relay with MSP430F5529

C Program to control Relay in MSP430F5529

Title : Program to control Relay

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Whatsapp

Leave a comment

Over 1.2 Million+ learners impacted worldwide

Learners from 170+ countries have grown in their career through our programs

Explore Programs  

Global Presence

Get in touch to learn more about how you can make the best of your talent

Spend less time worrying about job availability, and more time growing your knowledge. Join DIYguru Program today.

If you’re a current student, please get in touch through the DIYguru dashboard to ask about more details of this Program.

Please note, eligibility for this course is reserved to students who have done related projects and have relevant profiles matching with the pre-requisite of this course.

The DIYguru team hold the right to cancel your admisssion into the program without any explanation via email if found unsuitable and unfit.

Our 7-day money-back guarantee starts from the moment of signup and runs through the free week. Cancellations between days 7 and 30 will get a prorated refund.

Fees for the program is charged only when the admission is approved.


Colleges and Institutions

We're growing rapidly across the country, don’t miss out.

Partner with Us


Corporates and Industries

Have workforce requirement or employee upskilling!

Get in Touch



Work with a team that’s transforming future mobility.

DIY with Us

Book Your Free Session Now

Avail free Guidebook and Expert Mentorship in EV domain curated by Industry experts.

Register to continue..

× Need help?