Intro to Cypress (Part 2)

Introduction: Intro to Cypress (Part 2)

This Instructable is a continuation of a previous here;

Intro to Cypress (Part 1)

The previous Instructable uses a PSoC 4 evaluation board that does not have access to the debugger. This Instructable uses a PSoC 5 evaluation board that does have access to the debugger to show how useful it can be when programming a device. Additionally this tutorial showcases a different project and showcases interfacing with an HC SR04 ultrasonic sensor.

I would enjoy making more videos and accompanying Instructable on the use of Cypress microcontrollers, with possible upcoming videos focusing more on specific parts within the PSoC creator including, interrupts 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: What You Need

To follow along with this Instructable you will need to have installed PSoC Creator 4.2, the link for this can be found in the part 1 Instructable. Additionally you will need PSoC 5 evaluation board which is available from Digikey here;

Cypress PSoC 5 Evaluation Board

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, I recommend the headers linked as they allow you to have both male and female connections on each pin, and are good to have on one board at least for testing;

Male/Female Pin Headers

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: Programming the Microcontroller

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. As well you can pause and rewind as needed.

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: Additional Material

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 microcontroller 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 PSoC 4 Evaluation Board 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.

Happy Creating!

*Let me know if there is any problem with the archive file after unpacking it and running it in PSoC Creator*
*Updated for PSoC Creator 4.2*

Share

    Recommendations

    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest
    • Tiny Home Contest

      Tiny Home Contest

    Discussions