2024/2 Smart Embedded System

Final Project

Sahachai Sampaongern 6330340099
Phumin Udomdach 6430340074
Anantaya Lanthong 6430340082

Abstract
This project presents the design and implementation of a control system for a propeller and seesaw
balancing mechanism using PID control on the NI myRIO embedded platform. The primary goal is to
maintain the seesaw arm in a stable horizontal position and to automatically return it to that position
when disturbed. A potentiometer is used to measure the tilt angle of the seesaw, while a DC motor
driving a propeller serves as the actuator to generate counter-balancing force. The control algorithm,
developed in the LabVIEW programming environment, enables real-time error correction and dynamic
stabilization using PWM signals.
The PID controller continuously calculates the error between the target angle (Setpoint) and the actual
angle (Feedback), adjusting motor output to correct the tilt. The system is capable of detecting
disturbances and autonomously restoring the seesaw to its balanced state. Experimental results show
that the system achieves accurate and reliable control, maintaining stability and quick recovery when
perturbed.
This project demonstrates the potential of combining LabVIEW and NI myRIO for educational and
research applications in automatic control systems, especially in areas requiring real-time feedback and
dynamic response such as robotics and mechanical balancing platforms.

Tanawat Unsiwilai 6430340058
Peeraphan Chanpe 6430340066

  1. Introduction
    This project demonstrates the application of LabVIEW programming with the NI myRIO
    embedded system to control a motorized seesaw. The objective is to maintain balance by
    reading sensor data, calibrating input, and implementing a control loop with state machine
    logic.

Tanatorn Khamkwan 6430340040,

Taspon Wongprasertsiri 6430340031

https://o365ku.sharepoint.com/sites/242SmartEmbeddedSystem/_layouts/15/streamembed.aspx?uniqueId=dd8dcc7e-3bd7-42ab-b44c-15629389feb6&embed=%7B%22ha%22%3A%22teams%22%2C%22hv%22%3A%22assignments%22%2C%22hm%22%3A%22view%22%2C%22hp%22%3A%22web%22%2C%22nb%22%3Atrue%2C%22hrv%22%3A%22speedGrader%22%2C%22hvn%22%3A%22aui.v20260316.1%22%2C%22t0%22%3A25491.30000001192%2C%22t0to%22%3A1774185806962.3%2C%22tcs%22%3A25491.30000001192%2C%22tcsto%22%3A1774185806962.3%2C%22hvm%22%3Afalse%2C%22hsi%22%3A%2271053cba-3a74-47e5-9aa5-b6243e4a7eea%22%2C%22he%22%3A%22Prod%22%7D

This technical report presents the comprehensive development and implementation of a
control system designed specifically for a seesaw mechanism actuated by a high-speed
propeller. The control strategy is based on feedback from sensors and real-time actuation
through the National Instruments (NI) myRIO embedded platform. The overall aim of this
project is to create a responsive, closed-loop control system that is capable of maintaining a
user-defined tilt angle on the seesaw. By adjusting the rotational speed of a DC motordriven propeller based on real-time sensor input, the system ensures stability and accurate
position control throughout various operating conditions.

  1. System Overview
    2.1 Hardware Components
  • NI myRIO: Functions as the core real-time control unit. It provides integrated
    analog/digital input and output channels along with PWM signal generation, making it
    highly suitable for embedded control applications.
  • DC Motor with Propeller: This is the main actuator, responsible for applying force to alter
    the seesaw’s angular position. Controlled via PWM signals, its speed and direction
    determine the system’s dynamic behavior.
  • Position Sensors: Two analog position sensors connected to myRIO’s analog inputs (A/AI0
    and A/AI2) deliver voltage signals corresponding to the current and desired angles, which
    are then used for feedback and setpoint reference.
  • 3-Axis Accelerometer: This component provides acceleration data in X, Y, and Z directions,
    allowing for improved sensing of the system’s tilt and motion characteristics during
    dynamic transitions.
    2.2 Software Platform
    LabVIEW: The software environment used for developing the control algorithm, interfacing
    with hardware, visualizing data in real time, and enabling user interactivity. Its graphical
    programming approach simplifies complex control logic implementation.

Mid-term Project

Phumin UDOMDACH

This report presents the development of an automated Milk Conveyor System using
LabVIEW. The project simulates a conveyor belt system that transports milk bottles and ensures
they are processed correctly. The system is designed to automate the movement of bottles, check
for proper filling, and manage the workflow efficiently, reducing human error and optimizing the
manufacturing process.
Problem Statement:
In many industrial applications, manual handling of products on conveyor systems can
lead to inefficiencies, errors, increased labor costs, and reduced production rates. The risk of
human error can result in inconsistent product quality, delays in production, and potential losses.
To address these issues, this project aims to design a virtual conveyor system in LabVIEW that
ensures bottles are transported accurately, undergo proper quality checks, and integrate
automation for process optimization. By simulating an industrial setup in LabVIEW, we can
develop a prototype that provides a foundation for real-world applications in factory automation,
quality control, and industrial robotics.

  1. Algorithm & Flowchart
    Algorithm:
  2. Initialize the System – Start conveyor belt simulation and initialize all necessary
    parameters such as speed, timing, and detection.
  3. Bottle Detection – Detect when a milk bottle is placed on the conveyor using a simulated
    sensor input.
  4. Filling Process – Simulate the milk-filling mechanism by checking whether a bottle is in
    the filling zone and activating the filler accordingly.
  5. Quality Check – Ensure each bottle is filled correctly before moving forward using
    predefined quality control logic.
  6. Sorting & Output – Properly sort the bottles based on their filling status, redirecting
    underfilled or overfilled bottles for correction.
  7. Stop Condition – The conveyor stops when all bottles are processed or a manual stop
    signal is received.

Tanawat UNSIWILAI

  1. Problem Definition (Scenario in Engineering)
    To sense the temperature is compulsory at a lot of the places e.g. refrigerators, air conditioners, storage
    rooms, kitchen etc. At these places to sense the temperature and its proper indication is compulsory
    because it can cause serious problems otherwise. For example, if the temperature in the food storage room
    is higher than an adjusted threshold, it will be harmful for all of the food items. You can also consider
    “Fire Alarm” as an example of temperature sensor. First of all it measures the level of the temperature. If
    it founds that the temperature is higher than the adjusted threshold, it starts to beep
    In many industrial and domestic applications, temperature monitoring and control are crucial for
    maintaining safety, efficiency, and performance. Traditional temperature measurement methods involve
    manual readings and limited real-time monitoring. The lack of an automated, accurate, and real-time
    temperature sensing system can result in inefficiencies, equipment damage, or even hazardous conditions.
    To address this issue, a LabVIEW-based temperature sensing system is designed to continuously measure,
    display, and analyze temperature variations. This system provides real-time data acquisition and
    visualization, enhancing monitoring capabilities and decision-making processes.

Anantaya LANTHONG

Need of Smart Control of Traffic Signals
Traffic congestion in urban areas is becoming a significant issue due to the increasing population and the
growing number of vehicles.
Traffic jams not only cause delays and stress for drivers but also lead to higher fuel consumption,
increased transportation costs, and air pollution caused by carbon dioxide emissions.
There are various causes of traffic congestion, such as insufficient road capacity, uncontrolled demand,
and excessively long red-light durations.
Traffic lights are one of the critical factors affecting traffic flow.
Conventional Traffic Control Systems
Manual Controlling
Manual traffic control requires human labor, such as traffic police, who are assigned to manage traffic in
specific areas.
Traffic police use signboards, signal lights, and whistles to direct the flow of traffic.
Automatic Controlling
Automatic traffic lights operate using timers and electrical sensors.
The lights turn on and off automatically based on predetermined numerical values set in the timer.

Sahachai SAMPAONGERN

Mini Project
Mr.Sahachai Sampaongern 6330340099
DC Motor Speed Control System with Feedback Sensor

  1. System Overview and Working Sequence
    The speed control system for a DC motor using a feedback sensor
    operates by continuously measuring the motor’s speed and
    adjusting the control signal to maintain the desired speed (setpoint).
    The process is carried out using a closed-loop feedback control
    system and commonly utilizes a PID controller to minimize the error
    between the desired speed and the actual speed.
  2. Steps of the Working Sequence
    2.1 Setpoint Initialization
  • Setpoint represents the desired speed for the DC motor (e.g.,
    150 RPM).
  • The user inputs the desired speed via a Numeric Control on the
    Front Panel of LabVIEW, setting the reference speed for the
    system to achieve.
    2.2 Measured Speed
  • The Measured Speed is obtained from a feedback sensor, such
    as an encoder or tachometer, which measures the motor’s
    actual rotational speed in real time.
  • This feedback value is continuously monitored and fed into the
    system for comparison with the Setpoint.
    2.3 Error Calculation
  • The Error is calculated as the difference between the Setpoint
    (desired speed) and the Measured Speed (actual speed of the
    motor):

Peeraphan CHANPE

Scenario: Automated Tank Filling and Monitoring System 

Tanatorn KHAMKWAN

This project is a simulation of a traffic light, you can choose the time for each light it will cycle between each light

Taspon WONGPRASERTSIRI

Tank fill level control can be used in simulations in LabVIEW.
Learn how to control the filling or draining of a tank in

Create Account



Log In Your Account