Sale!

Nuvoton MS51FB9AE DEVELOPMENT KIT

2,500.00Rs. 2,000.00Rs.

NUVOTON

Nuvoton MS51FB9AE Microcontroller with Relays and 4 MOSFETs

Introduction

Welcome to our project page where we explore the powerful capabilities of the Nuvoton MS51FB9AE microcontroller. In this project, we demonstrate how to effectively control relays and MOSFETs using this versatile microcontroller, opening up a world of possibilities for automation, robotics, and IoT applications.

About the Nuvoton MS51FB9AE

The Nuvoton MS51FB9AE is a high-performance, low-power 8-bit microcontroller from the Nuvoton MS51 series. It features:

  • Core: 1T 8051-based microcontroller core
  • Speed: Up to 24 MHz
  • Memory: 16 KB Flash and 1 KB SRAM
  • I/O Ports: Multiple general-purpose I/O ports
  • Interfaces: UART, SPI, I2C, PWM, and ADC
  • Low Power Consumption: Ideal for battery-operated devices

Project Overview

In this project, we integrate the Nuvoton MS51FB9AE with relays and MOSFETs to create a robust control system. The setup is designed to manage high-power loads and provide efficient switching capabilities, making it suitable for various applications including home automation, motor control, and power management systems.

Components

  1. Nuvoton MS51FB9AE Microcontroller:
    • Central processing unit for the project
    • Handles all logic and control functions
  2. Relays:
    • Electromechanical switches
    • Used to control high-voltage devices
    • Isolated control from the microcontroller to the load
  3. MOSFETs:
    • Metal-Oxide-Semiconductor Field-Effect Transistors
    • Efficient switching of high-current loads
    • Four MOSFETs used to demonstrate various switching configurations

Features and Benefits

  • Precision Control: The MS51FB9AE microcontroller provides accurate control over relays and MOSFETs, ensuring reliable operation of connected devices.
  • Energy Efficiency: Low power consumption of the microcontroller and efficient switching by MOSFETs reduce overall energy usage.
  • Versatile Applications: Suitable for a wide range of applications from simple on/off control to complex automation systems.
  • Scalability: Easy to expand the system by adding more relays and MOSFETs to meet specific project requirements.

Applications

  • Home Automation: Control lighting, fans, and appliances remotely and efficiently.
  • Motor Control: Manage DC motors in robotics and industrial automation systems.
  • Power Management: Efficiently switch and control high-power devices in renewable energy systems.

Getting Started

  1. Hardware Setup: Detailed instructions on wiring the MS51FB9AE with relays and MOSFETs.
  2. Software Configuration: Sample code and libraries for programming the microcontroller.
  3. Project Examples: Step-by-step guides for creating various applications using the setup.

SAMPLE CODE TO CONTROL  RELAYS & MOSFETS.

#include “MS51_16K.H”

#define RELAY1 P05
#define RELAY2 P30
#define RELAY3 P17
#define RELAY4 P15
#define MOSFET_1 P00
#define MOSFET_2 P10
#define MOSFET_3 P11
#define MOSFET_4 P12
unsigned char temp _at_ 0x08;
unsigned char idata itemp _at_ 0x90;
unsigned char xdata xtemp _at_ 0x80;
//sbit RELAY1 = P0^5;
//———————————————————————————————-//
void main (void)
{
  ALL_GPIO_QUASI_MODE;
 P05_PUSHPULL_MODE;
 P30_PUSHPULL_MODE;
 P17_PUSHPULL_MODE;
 P15_PUSHPULL_MODE;
 P00_PUSHPULL_MODE;
 P10_PUSHPULL_MODE;
 P11_PUSHPULL_MODE;
 P12_PUSHPULL_MODE;
 RELAY1 = 1;
 RELAY1 = 0;
 RELAY2 = 1;
 RELAY2 = 0;
 RELAY3 = 1;
 RELAY3 = 0;
 RELAY4 = 1;
 RELAY4 = 0;
 MOSFET_1 = 1;
 MOSFET_1 = 0;
 MOSFET_2 = 1;
 MOSFET_2 = 0;
 MOSFET_3 = 1;
 MOSFET_3 = 0;
 MOSFET_4 = 1;
 MOSFET_4 = 0;
 //P10_PUSHPULL_MODE;
  while(1)
  {
  RELAY1 = ~RELAY1;
  MOSFET_1 = ~MOSFET_1;
    Timer0_Delay(16000000,1200,1000);
  RELAY2 = ~RELAY2;
  MOSFET_2 = ~MOSFET_2;
  Timer0_Delay(16000000,1200,1000);
  RELAY3 = ~RELAY3;
  MOSFET_3 = ~MOSFET_3;
  Timer0_Delay(16000000,1200,1000);
  RELAY4 = ~RELAY4;
  MOSFET_4 = ~MOSFET_4;
  Timer0_Delay(16000000,1  200,1000);
  }
}

SAMPLE CODE TO SEND DATA FROM UART.

/* File Function: MS51 use UART0 as printf function output demo */

#include “MS51_16K.H”

void main (void)
{

/* Modify HIRC to 24MHz is for UART baud rate deviation not over 1% */
MODIFY_HIRC(HIRC_24);
P06_QUASI_MODE;
UART_Open(24000000,UART0_Timer3,115200);
ENABLE_UART0_PRINTF; // Important! use prinft function must set TI=1;

while(1)
{
printf(“\n Hello world!”);
Timer0_Delay(16000000,300,1000);
}
}

/************************************************************************************************************/

Conclusion

The Nuvoton MS51FB9AE microcontroller, when combined with relays and MOSFETs, offers a powerful and flexible solution for controlling high-power devices. Explore our project resources, tutorials, and examples to get started with your own innovative projects.

 

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.