Introduction: Cypress Devices Intro (Part 2)
This Instructable is a continuation of a previous Instructable here;
That details the use of Cypress PSoC devices. This Instructable shows the use of a PSoC 5 device and the debugger in PSoC Creator. It was created to show how devices capable of using the Debugger are extremely useful in programming, testing and checking for errors in code while making changes. It also should show how easy it is to make a project for a PSoC 5 device as it was for the PSoC 4 device used in the previous video.
I would enjoy making more videos and accompanying Instructable on the use of Cypress micro controllers, with possible upcoming videos focusing more on specific parts within the PSoC creator including, interupts and other useful coding tips, more detailed look into the design wide resources, and other features within PSoC Creator. With that being said I would greatly appreciate feedback on these tutorials and would also accept suggestions for future tutorials if there is something specific I have not covered and someone would like covered. Thank you.
Step 1: BOM
To follow along with this Instructable you will need several components. The first being a CY8CKIT-059 board from Cypress which is available from Digikey for $9.98 each;
As well this board does not come with headers so getting some 0.1 pitch headers to solder to the board to make connection easier is advised. For this project am setting up a simple test of the HC-SR04 Ultrasonic Sensor and one of these will be required for the project. They are available all over, I generally get them from Chinese sellers on eBay at a cost of about $1 each when I buy them in sets of 5. Lastly, DuPont cable was used to connect the sensor to the board.
Connecting the sensor to the micro controller, we connect the sensors Vcc to power on the board, GND to the boards GND, and for the included code at the end of this Instructable, Echo to pin 3.0 and Trig to 3.1.
Step 2: Creating Our Project and Programming Via the Debugger
I feel video format for these tutorials is most helpful so you can watch and listen and follow along and see exactly what I am clicking on on the screen.
I would also greatly appreciate feedback on things that are helpful, and on areas that could be improved to make tutorial videos more helpful in the future.
Step 3: Source Material & Conclusion
If for some reason you are having trouble you can download the zip file of this project, the exact one from the video, and extract all files to a folder on your desktop. From the PSoC Creator locate the file on your desktop, open the work space and run it yourself or use it to verify your project schematic or code. Everything should be there and it should build, and program through the Debugger to your board correctly and will give you a working example as reference as well as have an accompanying video to help.
Hopefully this video helps to show how to program a micro controller using the debugger and check that the code and variables are updating correctly from the PSoC Creator. Depending on the micro controller kit you buy some support the debugger, such as the board used in this Instructable as well as Cypress' PSoC 4 Pioneer board, while others, like the CY8CKIT-049 does not and requires the bootloader host. Having a board that supports the Debugger is an incredibly helpful tool in testing and finding problems with code as well as making and testing changes quickly.
Additionally it should be clear that building a project for a PSoC5 device is as easy as building one for the PSoC4 as they are the same. Building a project for any of the PSoC family of devices is the same using the PSoC creator by placing components, connecting them to the pins of the board and writing code.
We have a be nice policy.
Please be positive and constructive.