Hello!
Today’s example focuses more on the system design aspect than the hardware design. In our previous example we’ve been showcasing how the Pioneer board performs tasks with specific hardware. In today’s example we want to show how a number of our previous example can be combined into a single large system design.
In this example we are mimicking a Thermostat with controls. We are implementing CapSense, PWM controls, simple logic, and ADC measurement. In our example we have blended a number of previous examples into a single larger design. Our earlier examples work to how individual features of the PSoC. In this design we are looking to show a system design, or a blend of numerous features to create a complete system.
In this Thermostat example we are merging our with our projects and . As a note in the schematic design, please see that we are using the tabbed schematic design to help ‘divide’ up the various parts of the system. This can be helpful when designing more complex projects in PSoC Creator.
Forum Post Attachments:
At the bottom of this post we are including the following items:
- Example Project Zip File
- Zip File of Images
- Project Schematic
- Component Configurations
Components Used:
The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:
- LCD
- CapSense
- Look Up Table (LUT)
- Status Register
- Control Register
- OpAmp
- Thermistor
- PWM
- ADC SAR Sequencer
- CyPins
- CyClock
Firmware Description:
The main.c firmware is included in the example project. Please review the commented sections for more details.
In this example we work to blend multiple system elements into a complete cohesive example. The firmware focuses on interfacing the PSoC4 device to a Thermistor. The CTBm is used to implement a non-inverting amplifier and the output is measured using the SAR ADC. A CapSense component is used to implement a Slider to initialize the set point for the Thermostat. Finally based on the Thermistor values two PWMs are used to control either the heating or the cooling elements. Here the user would connect the PWMs to some external hardware.
Hardware Connections:
This example does not have any specific hardware used. Instead it should looked at as a system design integrating multiple prior designs into a complex system.
Test Your Project:
Connect up your hardware and program the Pioneer board. You will see the value on the LCD change if you touch the Thermistor.
I hope this example can help you in your design.
Best,
Matt
