osPID - open source PID-controller. Part 2 - Input/Output Cards, Software
The input cards come in several types, each tailored to a different type (or types) of input. The first input card we designed is capable of measuring temperature through either a thermistor or thermocouple. Work on the next input card (for RTD input) is ongoing. The input card has 2×6 edge card pins to connect to the main board. The pinout of the edge card connector residing on the main board for the input card is as follows:
Basic Temperature Input Card
The basic temperature input card is able to read a thermistor sensor and a type K thermocouple sensor.
Depending on the application and desired accuracy, the user can select to use either the thermistor or the thermocouple as the input to the system. This can be selected in the PC-based user interface. You can even use them both by hacking the firmware to run two instances of PID module at the same time!
Wiring Instructions for Basic Temperature Input Card
Thermistor as Input Sensor
The temperature basic input card has an input port for thermistor sensor. Besides the thermistor, you'll need a matching resistor with a value equivalent to the thermistor's resistance at a rated temperature (usually 25 °C). This resistor also needs to have an accuracy at least of that thermistor.
The thermistor sensor leads does not have any polarity and is inserted at the top two terminal spots (labelled as sensor) of the temperature basic input card. The resistor is inserted into the next two terminal spots (labelled as reference resistor) of the temperature basic input card. It is recommended to trim short the resistor leads as short as possible.
The osPID unit is shipped with a default firmware using the thermocouple as the input sensor. You can reconfigure the osPID unit to use the thermistor as the input sensor through the osPID front end software. You will need to key in the rated resistance of thermistor sensor and it's beta temperature coefficient.
Thermocouple as Input Sensor
The temperature basic input card has an input port for thermocouple type K sensor and temperature measurement range between 0 °C to +1024 °C. Please ensure that you are using the correct thermocouple type as the wrong thermocouple type will yield unexpected and wrong temperature reading.
Thermocouple leads has polarity and this is indicated by the color of the insulation jacket which can be based on US & Canada standard (yellow & red) or international standard (green & white). Yellow and green indicates the positive lead (Nickel - Chromium). Red and white indicates the negative lead (Nickel - Aluminium).
Insert the negative lead (red or white) to the 5th terminal spot from the top (labelled as TC-) and the positive lead to the 6th terminal spot (labelled as TC+).
If prior to the use of thermocouple sensor on the osPID unit, you have selected the thermistor as the input sensor, you'll need to reconfigure the osPID unit to use the thermocouple as the input sensor from the front end software.
An output card is required to provide a feedback to the system by controlling the output behavior. The first output card we designed is a digital output card having 2 relay outputs and 1 digital output (for connecting to an external SSR.) Work on an analog output card is ongoing. As with the input card, The output card has 2×6 edge card pins to connect to the main board, but with a slight different pinout. The pinout of the edge card connector residing on the main board for the output card is as follows:
We can’t wait to see what people will do with the osPID. This includes hacking and modifying it to suit their needs. Therefore, we came up with 2 simple boards that can be used to hack & modify the osPID:
This is a simple prototyping board that breaks out all the pins on the edge card with a prototyping area with SOIC footprint (up to 20 pins of 1.27 mm pitch) and TSSOP footprint (up to 20 pins of 0.65 mm pitch) is also available for you to populate your own circuit and design.
This is a tiny board that simply breaks out the pins on the edge card. We knew someone out there might want to use our osPID main board to do something else other than PID control and it might need to go into tight spaces. This tiny board might be just what you need!
One of the benefits of the osPID is the ability to update and change the onboard firmware.
Note on Auto-Resetting: As with the Arduino, the default osPID behavior is to restart whenever a new serial connection is made. This makes it very easy to upload a new program to the unit. Unfortunately, this can be a problem during normal operation; If the osPID is running and you want to connect with the Front-End, you DO NOT want the osPID to reset. For this reason, we have included a jumper on the back of the main board.
The frontend is a desktop application written in processing. it allows for trending of osPID data, as well as more advanced configuration. The most current version of the Front-end can be found at downlods section. Download and unzip this file, and you will find the executable in the “application.[your operating system]” sub-folder.
Note: Instead of running the compiled application, you may wish to run the front end from code. To do this:
The frontend scans available ports only on initial startup. for this reason connect the osPID via USB before starting the application.
Additional documentation and up-to-date information on the osPID Controller available on Documentation Page.
PCB Pricing: https://jlcpcb.com/quote
News on theme: