Thailand Excellence Community
อาจารย์ผู้สอน/อาจารย์ที่ปรึกษา ผู้ช่วยศาสตราจารย์ ดร.กิตติพงษ์ เยาวาจา (Kittipong Yaovaja)
หัวหน้ากลุ่มวิจัยวิทยาการหุ่นยนต์และระบบอัตโนมัติขั้นสูง และผู้รับผิดชอบหลักสูตรหุ่นยนต์และระบบอัตโนมัติ (นานาชาติ) ม.เกษตรศาสตร์ วิทยาเขตศรีราชา คณะวิศวกรรมศาสตร์ศรีราชา
Ms. Niratsanee Khonthongoen 6330340048
Mr. Runch Suwankosit 6330340081
Carousel Turbine
For this project, we’ll be using LabVIEW, the graphical programming language, for
developing the software to control this project via MyRIO platform, which is a system that came
with a built-in I/O ports and communications support. And by putting these system together, we
can demonstrate a system that can shows various functions of them, such as the carousel turbine
of our project. For our cases, we will make the system speed changes on user activation, either
one or both turbines.
Project components:
Hardware Setup:
Mr. Chayakorn Panyarot
Ms. Atita Plucksasri
The RC CAR Final ProjectIn this project, we’reuses LabVIEWthegraphical programming language, to develop software for controlling a remote car. The myRIO platformserves asthe hardware interface, providing built-in I/O ports and communication support. LabVIEW integrates seamlessly with myRIO, enabling motor control, sensor integration (such as encoders for counting motor rotations), and wireless communication. The combination of LabVIEW and myRIO facilitates the creation of a user-friendly interface for remote car control.Afour-wheel RC (Remote Control) car that uses a MyRIO1900 device and four Arduino 6-30V DC motors. The motors are controlled by an L298N driver, with two motors per channel. The car is programmed in LabVIEW, a visual programminglanguage from National Instruments. This allows you to control the car through a user interface on a computer, providing real-time control and monitoring. One of the key features of your project is the implementation of fuzzy logic. This is used to avoid rapid acceleration when the car starts moving, helping to maintain the motors and prevent damage due to sudden changes in speed. Additionally, your project allows the user to configure the maximum speed of the car, providing further control over its operation.
Mr.Jerich Chad Sison6330340013
Mr.Umar Jittawin 6330340145
KeypadIn this project, we use LabVIEW, the graphical programming language, to develop software for controlling a keypad demo. The myRIO platform serves as the hardware interface, providing built-in I/O ports and communication support. LabVIEW integrates seamlessly with myRIO, enabling precise control of the keypad demo and its associated functionalities. The combination of LabVIEW and myRIO facilitates the creation of a user-friendly interface for remote keypad demo control. A standard keypad is connected to a myRIO1900 device, and its behavior is controlled by user input. This setup is programmed in LabVIEW, leveraging its visual programming capabilities to provide real-time control. One of the key features of this project is the implementation of fuzzy logic. Additionally, the project allows the user to configure the sensitivity or responsiveness of the keypad demo, providing further control over its operation.
Components in project1.+3.3-volt supply → B/+3.3V (pin 33)2.Column line 1 → B/DIO0 (pin 11)3.Column line 2 → B/DIO1 (pin 13)4.Column line 3 → B/DIO2 (pin 15)5.Column line 4 → B/DIO3 (pin 17)6.Row line 1 → B/DIO4 (pin 19)7.Row line 2 → B/DIO4 (pin 21)8.Row line 3 → B/DIO4 (pin 23)9.Row line 4 → B/DIO4 (pin 25)
Fuzzy Logic and intelligent system Programming
Mr. Saris Chomchiawcharn
Mr. Wetpisit Kosonsasitorn
Level fan control
In this project, we’re using LabVIEW to create software for controlling the speed fan.
The myRIO platform serves as the hardware interface, providing built-in I/O ports. LabVIEW
integrates seamlessly with myRIO, enabling motor control and wireless communication. A
four-blade fan uses a MyRIO-1900 device . The motors are controlled by an L298N driver,
with two motors per channel. The fan is programmed in LabVIEW, a visual programming
language from National Instruments. This allows you to control the fan through a user
interface on a computer, providing real-time control and monitoring. One of the key features
of this project is the implementation of fuzzy logic. This is used to avoid rapid acceleration
when the fan starts moving, helping to maintain the motors and prevent damage due to
sudden changes in speed. Additionally, your project allows the user to configure the
maximum speed of the fan, providing further control over its operation.
Mr.Khosit Wongriantong
Joystick Control Fan ProjectIn this project, we use LabVIEW, the graphical programming language, to develop software for controlling a fan with a joystick. The myRIO platform serves as the hardware interface, providing built-in I/O ports and communication support. LabVIEW integrates seamlessly with myRIO, enabling precise fan speed controland fan direction. The combination of LabVIEW and myRIO facilitates the creation of a user-friendly interface for remote fan control. A standard fan is connected to a myRIO1900 device and is driven by an L298N motor driver. The fan speed is controlled by a joystick, which allows for intuitive and real-time adjustments. This setup is programmed in LabVIEW, leveraging its visual programming capabilities to provide real-time control. One of the key features of this project is the implementation of fuzzy logic. This is used to prevent rapid changes in fan speed, thereby maintaining the longevity of the fan and preventing damage due to sudden speed variations. Additionally, the project allows the user to configure the maximum speed of the fan, providing further control over its operation.
Implement Robot Car modifiedHardware Setup:• Acquire ajoystick and amotor, fanand amotordriver.• Connect joystick with computer.myRIO Configuration: • Connect the myRIO device to your computer and configure it using the NI myRIO software. • Set up the necessary connections for motor control and joystickinput. LabVIEW Programming: • Create a new LabVIEW project and add a myRIO target.• Develop a LabVIEW VI (Virtual Instrument) forjoystickto control motor.
•Develop a LabVIEW VI (Virtual Instrument) for motor control. Use PWM signals to control motor speed and Use Digital out to control direction based on user input or commands.Testing and Debugging: • Test the functionality of your LabVIEW program on the myRIO device.• Debug any issues that arise, such as unexpected motor behavior or sensor readings.Deployment: • Once testing is complete, deploy the LabVIEW program to the myRIO device. Iterative Improvement: • Continuously refine and improve the LabVIEW program based on testing results and user feedback.
Surangkana Phiraban 63303400111
CLabVIEWFigure 1Labview credit: LabviewStands out as a unique programming environment designed for engineers and scientists. Unlike traditional text-based coding, LabVIEW utilizes a visual dataflow approach. Imagine building your program by wiring icons together instead of writing lines of code. This makes it particularly user-friendly for those new to programming or who prefer a more visual way to think.Here’s a breakdown of LabVIEW’s strengths and weaknesses:Advantages:•Intuitive Programming: The visual dataflow makes it easier to understand and create programs, especially for those with limited coding experience.•Real-Time Development: LabVIEW excels at real-time applications where precise timing is crucial, making it ideal for control systems and data acquisition.•Extensive Hardware Support: LabVIEW has built-in drivers and tools for a wide range of hardware, including embedded systems like myRIO. This simplifies hardware integration and reduces setup time.•Rapid Prototyping: LabVIEW’s visual nature allows for quick experimentation and iteration, accelerating the prototyping process.Disadvantage:•Limited Portability: LabVIEW programs typically run only onthe LabVIEW platform, unlike some text-based languages that can be more portable across different environments.•Debugging Complexity: While the visual nature can be helpful, debugging complex programs can sometimes be more challenging compared to traditional text-based approaches.•Customization: LabVIEW offers a good level of customization, but some users may find it less flexible for highly specialized tasks compared to more general-purpose programming languages.Overall, LabVIEW offers a powerful and approachable environment for those working in fields like engineering and science, particularly with its tight integration with real-world hardware. Consider your specific project needs and programming experience when deciding if LabVIEW is the right tool.
5myRIOFigure 2myRIOcredit:TechSquareEmbedded systems are the workhorses of the technological world, acting as the brains behind countless devices. Imagine a tiny computer embedded within a robot, a self-adjusting thermostat, or even a fitness tracker –that’s the essence of an embedded system. myRIO is a popular example, offering a compact and versatile platform ideal for learning andprototyping.Advantage:•Compact and Efficient: Embedded systems are designed to be small and low-power, making them perfect for applications where size and energy consumption are critical.•Real-World Interaction: They bridge the gap between the digital world and the physical world by collecting data from sensors, controlling actuators (like motors), and performing actions based on real-time input.•Dedicated Functionality: Unlike general-purpose computers, embedded systems are designed for specific tasks, leading to efficient performance and optimized resource usage.•Versatility: Embedded systems are found in a vast array of applications, from industrial automation and medical devices to consumer electronics and the Internet of Things (IoT).Disadvantage:•Limited Resources: Embedded systems often have limited processing power, memory, and storage compared to personal computers. This can restrict the complexity of tasks they can handle.
6•Programming Challenges: Programming for embedded systems can be specialized, requiring knowledge of hardware specifics and sometimes low-level programming languages.•Debugging Difficulty: Troubleshooting issues in embedded systems can be trickier due to their compact size and potential lack of debugging interfaces readily available.Therefore, embedded systems are essential for bringing intelligence and control to various devices. While resource limitations and programming considerations exist, their compact size,real-world interaction capabilities, and dedicated functionality make them invaluable tools for engineers and hobbyists alike.
7Sensor CalibrationFigure 3Sensor Calibrationcredit;RealParsImagine building a robot car that relies on a faulty distance sensor. It might misjudge obstacles, leading to disastrous crashes! This is where sensor calibration becomes crucial. Embedded systems heavily depend on sensors, but these sensors may not always be perfectly accurate. Sensor calibration is the process of fine-tuning these sensors to ensure their readings closely match real-world values. LabVIEW provides a robust set of tools to streamline this process:Offset Compensation:Sensors often have inherent biases, resulting in constant offsets from the true value. LabVIEW helps you identify and adjust for these offsets, making sure your sensor readings start at the correct point.Linearity Correction:The relationship between a sensor’s raw output and the measured quantity may not always be perfectly linear. LabVIEW’s calibration tools can help you compensate for nonlinearities, ensuring consistent and accurate readings across the sensor’s operating range.Temperature Dependence:Certain sensors are sensitive to temperature fluctuations. LabVIEW’s calibration tools can incorporate temperature correction factors, adjusting readings based on the sensor’s operating temperature, leading to more reliable measurements.Data Acquisition:Capturing the Essence of the Real WorldWith sensors calibrated for accuracy, the next step is data acquisition –the process of collecting and organizing sensor readings. LabVIEW excels in this area, offering a variety of features:Real-Time Acquisition:LabVIEW can acquire data from sensors at specific time intervals, ensuring you capture critical changes in the real-world environment. This is ideal for applications like control systems, where timely sensor readings are essential for immediate feedback.
8Data Logging and Storage:LabVIEW allows you to conveniently log your acquired data into files for later analysis. This data can be used for visualization purposes, creating charts and graphs to understand trends and patterns in sensor readings.Synchronization and Triggering:For complex systems with multiple sensors, LabVIEW enables simultaneous acquisition and synchronization of data streams. You can also define triggers based on specific sensor readings to initiate specific actionsor data capture events.By effectively combining sensor calibration and data acquisition tools within LabVIEW, you can build a solid foundation for your embedded system projects. Accurate sensor readings combined with efficient data capture pave the way for robust control algorithms, meaningful analysis, and ultimately, successful real-world applications.
Control Loop/Programming
Control loops are the workhorses of automation, ensuring systems maintain a desired state. LabVIEW empowers you to design and implement these loops with ease, making it a valuable tool for creating intelligent embedded systems.The Power of PID Control:Proportional-Integral-Derivative (PID) control is a widely used and versatile control loop technique. It continuously monitors the difference (error) between a desired setpoint (target value) and the actual measured value from a sensor. Based on this error, the PID controller adjusts the system’s output to minimize the difference and reach the setpoint.Here’s a breakdown of the three components of a PID controller:Proportional (P) Term:This term reacts to the current error. A larger P term results in a larger adjustment to the output based on the current error, leading to a faster response but potentially more oscillations around the setpoint.Integral (I) Term:This term addresses long-term errors. It accumulates the error over time, gradually adjusting the output to eliminate any lingering difference between the setpoint and the actual value.Derivative (D) Term:This term anticipates future errors. It considers the rate of change of the error, helping to prevent overshoot (going beyond the setpoint) by adjusting the output based on how quickly the error is changing.LabVIEW’s Control Design Playground:LabVIEW provides a comprehensive set of tools for designing and implementing control loops, including PID controllers. Here are some key features:PID VI (Virtual Instrument):LabVIEW offers a dedicated PID VI that simplifies controller configuration. You can easily define the setpoint, sensor reading (error), and proportional, integral, and derivative gains.Loop Tuning Tools:Fine-tuning a PID controller can be an iterative process. LabVIEW offers tools like simulation and auto-tuning to help you optimize the P, I, and D gains for your specific system. Simulation allows you to test different gain settings virtually before deploying the controller to the realsystem. Auto-tuning tools can analyze the system’s response and automatically suggest optimal gain values.
10Real-Time Monitoring and Visualization:LabVIEW enables you to monitor the performance of your control loop in real-time. You can visualize the setpoint, actual sensor reading, and error signal, allowing you to observe the system’s response and make further adjustments as needed.
Example: Controlling a Room TemperatureImagine a temperature control system for a room. The desired setpoint is 20°C. A temperature sensor measures the actual room temperature. The PID controller receives the error (difference between 20°C and the measured temperature). Based on this error, the controller adjusts the output to the heater or air conditioner to maintain the desired room temperature.
LabVIEW can handle this scenario by:Configuring a PID VI with the setpoint (20°C) and connecting the sensor reading as the error input.Using LabVIEW’s tools to tune the P, I, and D gains for optimal temperature control, balancing responsiveness and stability.Visualizing the setpoint, actual temperature, and error signal on a LabVIEW graph to monitor the system’s performance.By leveraging LabVIEW’s control design tools and PID capabilities, you can create robust control loops for various applications, from maintaining precise temperatures to controlling motor speeds or stabilizing robot movement.
อาจารย์ผู้สอน/อาจารย์ที่ปรึกษา ผู้ช่วยศาสตราจารย์ ดร.กิตติพงษ์ เยาวาจา (Kittipong Yaovaja)
หัวหน้ากลุ่มวิจัยวิทยาการหุ่นยนต์และระบบอัตโนมัติขั้นสูง และผู้รับผิดชอบหลักสูตรหุ่นยนต์และระบบอัตโนมัติ (นานาชาติ) ม.เกษตรศาสตร์ วิทยาเขตศรีราชา คณะวิศวกรรมศาสตร์ศรีราชา