![]() |
Cypress I/O Module
Our teams robot design is rather complicated this year so our coach wants me to simplify as much as possible. I was thinking about using the Cypress I/O Module to incorporate some push switches for various functions on our robot. I will be using switches that act as light switches (on/off) and possibly some pushbutton switches. I was also thinking about incorporating analog inputs.
A. How do I connect these to the board. B. How do I program them in c++. C. How do I program them in the Cypress Coding application. |
Re: Cypress I/O Module
Hello, alright, well first of all, save this image as a reference:
http://www.chiefdelphi.com/forums/at...2&d=1264090529 You need it to know what and where the inputs are on the Cypress. Next, make sure your cypress is plugged in, and download their firmware update (I believe from their website), and apply the latest firmware update to your Cypress through the Cypress PSoC Programmer. That is the last of their software that you will be needing. Next, lets take your limit switch as an example, you need to wire it to the cypress. There should be two outputs on your switch, a.k.a something along the lines of two screws, etc. Switches are digital inputs, they require absolutely no power, therefore the VDDIO on the cypress is useless to you for that purpose. Wire on output from the switch to a GND port on the cypress, and wire the other screw from the switch to port P4_4 (Digital Input 1) on the Cypress. Finally, in C++, you do the following anywhere you want your switch to be used: Code:
DriverStation *ds = DriverStation::GetInstance(); |
Re: Cypress I/O Module
Quote:
|
Re: Cypress I/O Module
I have been told to get the FIRST update that has the correct firmware too. But I was never able to locate the correct update that contains that firmware. Would somebody post a link to the update please? Thanks.
|
Re: Cypress I/O Module
The FRC specific Cypress firmware gets installed with the Driver Station Update,
then you'll find it on your computer: C:\Documents and Settings\All Users\Documents\FRC\FRC_IO.v2.hex |
| All times are GMT -5. The time now is 14:06. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi