<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:pid_lego_block

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:v2:pid_lego_block [2018/04/09 21:52]
jfrench - Imported by DokuWiki Advanced Plugin
wiki:v2:pid_lego_block [2019/02/15 22:25] (current)
pixycam
Line 16: Line 16:
 ===== Parameters ===== ===== Parameters =====
  
-  ​**Mode Selection**:​ currently there is a single mode, so this isn’t used for now. +  ​1. **Mode Selection**:​ currently there is a single mode, so this isn’t used for now. 
-  ​**Instance**:​ instance of the PID block. Up to 8 instances of the PID block can be used independently in the same program. If you need more than one PID block, be sure to give them different instance IDs, otherwise the two PID blocks will share the same memory. +  ​2. **Instance**:​ instance of the PID block. Up to 8 instances of the PID block can be used independently in the same program. If you need more than one PID block, be sure to give them different instance IDs, otherwise the two PID blocks will share the same memory. 
-  ​**Value In**: this is the input for the measured value. For Pixy, you would typically input the X or Y outputs, but really any measured value can go here, even from sensors other than Pixy, like the IR proximity sensor. +  ​3. **Value In**: this is the input for the measured value. For Pixy, you would typically input the X or Y outputs, but really any measured value can go here, even from sensors other than Pixy, like the IR proximity sensor. 
-  ​**Set Point**: this is the “desired value”. In other words you want to “drive” the sensor value (Value In) to this value. +  ​4. **Set Point**: this is the “desired value”. In other words you want to “drive” the sensor value (Value In) to this value. 
-  ​**Proportional**:​ proportional gain input. +  ​5. **Proportional**:​ proportional gain input. 
-  ​**Integral**:​ integral gain input. +  ​6. **Integral**:​ integral gain input. 
-  ​**Derivative**:​ derivative gain input. +  ​7. **Derivative**:​ derivative gain input. 
-  ​**PID Multiplier**:​ this is a multiplier for the final output. It is especially useful if you need to invert the output (you do so by setting to -1). This value is 1 by default. +  ​8. **PID Multiplier**:​ this is a multiplier for the final output. It is especially useful if you need to invert the output (you do so by setting to -1). This value is 1 by default. 
-  ​**Control Output**: this is the output of the controller. This is typically connected to your “action”,​ which is almost always one or more motors (for LEGO Mindstorms). You could (in theory) connect this to your furnace if you wanted to build a home thermostat, and you had a temperature sensor connected to Value In, but that’s a project for another day!+  ​9. **Control Output**: this is the output of the controller. This is typically connected to your “action”,​ which is almost always one or more motors (for LEGO Mindstorms). You could (in theory) connect this to your furnace if you wanted to build a home thermostat, and you had a temperature sensor connected to Value In, but that’s a project for another day!
  
  
wiki/v2/pid_lego_block.1523310723.txt.gz · Last modified: 2018/04/09 21:52 by jfrench