Skip to content

This repository describes a simple implementation of a discrete Proportional- Integral-Derivative (PID) controller for tinyAVR and megaAVR devices from Microchip.

Notifications You must be signed in to change notification settings

microchip-pic-avr-examples/atmega328p-discrete-pid-controller-mplab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCHP

Discrete PID Controller on tinyAVR and megaAVR Devices

This repository describes a simple implementation of a discrete Proportional- Integral-Derivative (PID) controller. When working with applications where control of the system output due to changes in the reference value or state is needed, implementation of a control algorithm may be necessary. Examples of such applications are motor control, control of temperature, pressure, flow rate, speed, force, or other variables. The PID controller can be used to control any measurable variable, as long as this variable can be affected by manipulating some other process variables. Many control solutions have been used over the time, but the PID controller has become the ‘industry standard’ due to its simplicity and good performance.

This code example is based on the document AVR221 - Discrete PID Controller on tinyAVR and megaAVR devices, and will be performed on the ATmega328p device.

Related Documentation

Software Used

Hardware Used

Operation

  1. Connect the board to the PC.

  2. Download the zip file or clone the example to get the source code.

  3. Open the project in MPLAB X IDE.

  4. Build the solution and program the device.

Conclusion

This code example has illustrated how to create a simple PID controller for tinyAVR and megaAVR devices from Microchip.

About

This repository describes a simple implementation of a discrete Proportional- Integral-Derivative (PID) controller for tinyAVR and megaAVR devices from Microchip.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages