|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Cypress Tutorial?
I have been looking around for a few hours but I cant seem to find any tutorials on how to wire and program the Cypress PSoC to use as a third joystick for the driver station. Specifically, I want to add a potentiometer and a few buttons, is this possible? If so how can it be done?
My last question is how do you program LabView to read this information? Thanks for any help! |
|
#2
|
|||||
|
|||||
|
Re: Cypress Tutorial?
Look at the back of the Cypress board and you'll see the pins labeled that you wire your swiches and potentiometers to:
http://www.chiefdelphi.com/forums/at...2&d=1264090529 Wirewrap, a prototype board, or purchasing a special mount from AndyMark can be used to connect your switches. There's no programming necessary on the Cypress or Driver Station. If you look on the Driver Station I/O tab you can see if it's working and even change some of the characteristics of how each contact is handled. In LabVIEW you check your switch settings using:
Last edited by Mark McLeod : 18-01-2011 at 14:41. |
|
#3
|
|||
|
|||
|
Re: Cypress Tutorial?
Thanks for all the help!
I have just a few more questions... Do you need to have the 9v battery, or is the usb power sufficient? Can you connect a LED as an indicator light to Digital Out? I remember reading something about programing the PSoC with a FRC_IO_v2.hex, do you have to do this or did I misread something? |
|
#4
|
||||||
|
||||||
|
Re: Cypress Tutorial?
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Cypress Tutorial?
You don't need the 9v battery. The Cypress board will use the battery or the USB power, not both anyway.
DO connect the Cypress board directly to your Classmate, NOT through any USB hub. It does draw a lot of power and last year a lot of teams had it drop out when match time came. You can connect an LED to Digital out using an appropriate resistor. |
|
#6
|
||||||
|
||||||
|
Re: Cypress Tutorial?
Quote:
|
|
#7
|
|||
|
|||
|
Re: Cypress Tutorial?
Chris,
Make sure you are using a psoc 3. I am pretty sure we ordered one from Cypress, but were delivered a psoc 5. Apparently similar boards, but different processors. Thus, we are looking into the legality and compatibility of using the psoc 5, 'cause we see the psoc 3 is not unavailable. (at least the last time I checked) Please post if you find out different, as we are getting a similar error when we try to download the latest code from FIRST for psoc 3. Thanks, RayG |
|
#8
|
||||||
|
||||||
|
Re: Cypress Tutorial?
Quote:
I got the error just as we were being kicked out of the school, so I didn't have time to write it down, but it was something along the lines of this (heavily paraphrased): "Programming failed: the XXXX.xxx was created for (something I can't remember) v32, and the (something I can't remember) you are trying to program is v31." It seems like our board is so old that the new firmware isn't suited for it. Of course, I could be wrong. As I said, we were getting the boot as this was happening and all of that stuff is still at the school so I can't do any real testing. I'm thinking that if I recompile the open-source code with the software that I installed from the CD we had, it will solve the problem. I was hoping that someone else saw this problem and had a solution so I didn't have to spend a lot of time (which I don't really have right now) tracking this down. Last edited by Chris Hibner : 22-01-2011 at 21:51. |
|
#9
|
|||
|
|||
|
Re: Cypress Tutorial?
No, sorry, not the same issue, although our solutions may be similar (rebuild with appropriate toolset).
Perhaps you can install the old CD on a separate computer and load the previous year's .hex file to the board. I am afraid we may have to port the code to a variant processor, as the psoc5 uses a different compiler and probably different header files. We don't want to tear up previous driver stations, as we use them for promotions and recruiting. ;-( Thanks for the response, RayG |
|
#10
|
|||
|
|||
|
Re: Cypress Tutorial?
Quote:
-Joe |
|
#11
|
|||
|
|||
|
Re: Cypress Tutorial?
Quote:
I am interested in the Button Inputs. |
|
#12
|
|||||
|
|||||
|
Re: Cypress Tutorial?
Hi Randy,
Enhanced Mode is set via the Driver Station (I/O tab -> Enhanced). Tell it you want to use enhanced mode and what you want each pin to be. I've attached an example that sets up 16 button inputs and shows the pin assignment corresponding to the markings on the back of the Cypress board. |
|
#13
|
|||
|
|||
|
Re: Cypress Tutorial?
Quote:
I found information on the 16 DIOs. After you select the Enhanced mode, the Operator's display has the 16 DIOs plus 8(?from memory) Buttons and 8 LEDs. I think that LEDS are the tiny LEDs on the Cypress board. What I am looking for is: What are the Buttons, how do they work and how do I connect to them, if they are additional inputs? Thanks |
|
#14
|
|||||
|
|||||
|
Re: Cypress Tutorial?
That information is in the Cypress Board Pinout but I don't see Button 1 called out.
In the attached, I believe the Buttons are the 5-element Slider on the board itself, and the LEDs are shown. Last edited by Mark McLeod : 23-01-2011 at 22:09. |
|
#15
|
||||
|
||||
|
Re: Cypress Tutorial?
There's also a simple new product from e-stop called a CCI. It looks like a joystick to your software but gives you 12 digital inputs and 4 analog inputs. Simpler to use than a Cypress though not as flexible. http://www.estoprobotics.com/estore/...d&productId=33
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|