element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog NGU401: PI Control System
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: neuromodulator
  • Date Created: 10 Sep 2021 11:21 PM Date Created
  • Views 745 views
  • Likes 7 likes
  • Comments 1 comment
Related
Recommended

NGU401: PI Control System

neuromodulator
neuromodulator
10 Sep 2021

Introduction

 

The modulation capability of the instrument virtually turns the instrument into a voltage amplifier with gains of 0.5, 1 or 2. As previously shown in the regulation tests, during modulation the instrument samples the input signal at 1 kHz. To show the modulation feature applied to a more realistic application I decided to use it to build a temperature control system

 

 

Setup

 

The system was made of a beaker filled with ~300 ml of water whose temperature was regulated with a Peltier device that was sandwiched between two heatsinks. One heatsink was submerged into water to transfer heat from or to the water, while the other was kept at ambient temperature through forced convection. The temperature was measured at the bottom of the beaker with a TI TMP116N sensor, which was connected through I2C to an ESP32. The ESP32 read the temperature and based on the reading and the setpoint generated through a pair of DACs the analog output that was fed into the SMU modulation input. Depending on which MCU DAC port was set to 0, the ESP32 was able generate positive and negative voltages. This was specially important because what side of the Peltier cools and what side heats depends on the voltage polarity. As the DAC voltage could only go from 0 to ~3.05 V, I set the SMU modulation gain to 2, so that I could source ~-6.1 V to ~+6.1 V (which still was a bit low). The beaker temperature gradient was kept low by stirring the water with a magnetic stirrer that was used to rotate a magnetic bar within the beaker. The generated rotating magnetic field did not cause any false reading when used at its lowest rotational speed. To record the temperature and the setpoint data I connected the MCU to a computer, which logged the data with Tera Term (an open source terminal program).

 

 

imageimage

 

 

 

Results

 

To test the performance of the PI controller I increased and decreased the setpoint temperature by 5 ºC within the 15 ºC and 30 ºC range every 30 min. After a bit of tweaking of the proportional and integration constants I was able to get the following result:

image

 

 

As it can be seen, there still was some overshooting, but it was never my intention to tweak the system to its optimum.

 

 

Conclusions

 

The modulation operation mode has the potential to be used in many creative ways, and makes it possible to control the voltage of the instrument without SCPI commands. Here I used an MCU to regulate the temperature of a water-filled beaker, but the control system could also have been implemented in a completely analog way, as long it could be correctly sampled at 1 kHz. This feature turns the SMU into an amplifier that can be easily interfaced to analog circuits.

  • Sign in to reply

Top Comments

  • DAB
    DAB over 4 years ago +2
    Nice project. DAB
  • DAB
    DAB over 4 years ago

    Nice project.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube