Log in

View Full Version : Cypress Help


aechmtwash11
24-04-2011, 09:56
So yesterday we were trying to do some last minute driver station modifications. We added some switches to the drivers station and were planning to use the Cypress IO board. What we thought we had correct configuration was is obviously not after doing some additional research. I'm still kindof confused on the cypresses operation, hopefully you all can help.

Couple Questions:

Should all Red LED's on the cypress board be on when there have been no changes to dashboard code?

Also, how should we wire a switch & what setting should the input be on (floating, pull-up, or pull-down)? Positive to digital port or ground to digital port

Thanks in advance

Austin

HAPPY EASTER!

Mark McLeod
24-04-2011, 12:16
The Cypress shows different LEDs depending on it's setup and whether the Driver station is running or not.

Without the Driver Station running:
Plug in the Cypress (it can also be tested disconnected but powered by a 9-v battery instead)
Push the single black button on the Cypress and you should see the second red LED (p2_1) light up if you have the correct firmware version loaded. If you don't see the 2nd LED light up, then you need to reload the V2 firmware onto the Cypress.
All LEDs should be off when the button is not being pushed.Start the Driver Station:
The Cypress can already be plugged in or plug it in now
If your cRIO code sets the Cypress red LEDs on then you will see them.
Pushing the black Cypress button will light up all the red LEDs (not right away, but after a second or two).
Kill the Driver Station and the black button will not cause any red LEDs to light up. Unplug and replug-in the Cypress and it will behave as above.Switches just get wired between the Cypress signal pin, e.g., P4_4, and Cypress ground. With a regular switch it doesn't matter which side you connect to ground and which connects to the signal pin. When closed, the switch just lets current flow between the two pins (signal to ground) or not and the current flows the way it wants to.
The Driver Station should be on Compatible mode or the input should be pulled high.

aechmtwash11
24-04-2011, 12:38
So after reading your post it sounds like you would suggest re flashing the firmware since all the leds r on no matter which way u run it

Mark McLeod
24-04-2011, 12:51
Certainly doesn't sound like the Cypress is setup correctly for FRC.
Before you reflash, make sure your PC has the correct Cypress software installed.

DO NOT install the Cypress DVD that came packaged with the board.
The correct FRC Cypress custom software comes with the Driver Station Update.Check out How to Configure your I/O Module (http://www.usfirst.org/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2011_Assets/Kit_of_Parts/How_To_Configure_Your_I-O_Module.pdf) if you haven't already.

aechmtwash11
24-04-2011, 16:27
I tried to flash the cypress board again. Still no luck. All the LED's are lit up on the front and when I plug it into the classmate the Programming software says it is using FirstTouch3 version 1.14. However I flashed it with the FRC firmware.

The programmer does say that the device is in debug mode. Any idea how to turn this off?

Also i'm getting feedback from the on board button and accelerometer in the driver's station.

Any more ideas?

aechmtwash11
24-04-2011, 16:30
FYI, i get feedback on the accelerometer & button in the enhanced I/O tab not the compatibility one.

Mark McLeod
24-04-2011, 16:58
"FirstTouch3 version 1.14" is the hardware revision and that version is okay.
The accelerometer is only usable in the Driver Station IO Enhanced mode.
The black Cypress button also only shows up as button 1 under Enhanced mode.

It sounds like you have some functionality then.

In the programmer look under Help ->About PSoC Programmer
The version should be 3.12.0.827

Is the green "light" on the I/O tab on?
In Compatibility Mode do you see the Analog Inputs vibrating slightly around 2.2?
In Enhanced Mode they should move a little bit as the accelerometer readings change.
You should also see the Analog Inputs thrashing about if you just touch your finger to the two pins closest to the edge of the Cypress board in either of the two rows of pins on the back.

aechmtwash11
24-04-2011, 17:17
Thanks for your help mark!

Yes the green led is on
Analog values are floating around at .402 in compatibility mode and do move when I run my fingers across the back pins.
Programming version is the same.

Here is exactly what I am trying...I plug one end of a wire to P4_4 and to gnd..and nothing happens. Is this correct setup/results. Im hoping we didn't fry it out when we had stuff miss wired yesterday.

Austin

Mark McLeod
24-04-2011, 17:27
P4_4 wired directly to Gnd should show up as turning off the "Digital 1" tiny green indicator in Enhanced mode, and "DI 1" in Compatibility Mode.

The Analog readings you are seeing at rest are low.
Did anyone play with either of the two black jumpers on the Cypress?
Both jumpers should be on the two pins closest to the USB connector, leaving the pin furthest from the USB connector bare.

Is the Cypress USB connected directly to the PC, or are you using a USB hub?

aechmtwash11
24-04-2011, 17:42
The jumpers were played with but have been reset before I started posting about the issue.. does the system have any reverse polarity protectors. I know at one time we did connect the positive voltage to a digital input....I still can't figure why all the leds are always lit

Mark McLeod
24-04-2011, 17:55
I don't know what protection the Cypress includes.
It's been awhile since I delved that deeply into it.
We'd have to check the circuit diagram.

You might test as many pinouts as you can to see what might be affected.

aechmtwash11
24-04-2011, 17:57
Should there be any voltage when u connect a millimeter between the P4_4 and gnd?

Mark McLeod
24-04-2011, 18:01
One of the jumpers sets the voltage to 3.3v, so that's what you should be reading between signal and ground.
In Compatibility mode these pins should get 3.3v readings between signal and ground: P4_4/5/6/7, P6_0/1/2/3
The others will read 0 because they're either analogs without power or digital outputs.

Test between voltage and ground for that matter. To make sure your supply voltage is correct.

aechmtwash11
24-04-2011, 18:10
We have 3.3 volts from power to ground and 0.06 volts from P4_4 and ground

Mark McLeod
24-04-2011, 18:12
That does sound damaged.

You can try Enhanced Mode and set everything to Input Pulled High, then test every signal pin to ground just to see if you get anything.

aechmtwash11
24-04-2011, 19:09
No luck. Still doesn't make much since since the accelerometer, mounted button and the touch area all give feedback.


Thanks again for your help.

Austin

Mark McLeod
24-04-2011, 19:19
If it's just the digital input that's been burned another possibility to try is to connect the VDDIO pin directly to one of the analog input pins, say P0_0.
That should drive all the analog to maximum.

If that works then you'll have at least 8 inputs you could use with switches.
They'd come in as analog inputs that's all.

mandrews281
24-04-2011, 23:09
We had a lot of problems with our Cypress and I tracked it down to one of the kids choosing the "web update" that the cypress software wants to do when it starts on our development laptop. Teams - whatever you do, don't update the software via the web!! ALWAYS stick with the official FIRST updates!

If you make this mistake you have two choices. Do a COMPLETE uninstall (including some manual driver deletes in the windows sub-directory) and then re-install. Or find a computer where the FIRST utilities have never been installed, install them (and updates) and then flashing the Cypress from that PC. You can then try attaching it to the driver station.

This might not be your specific problem, but it's based on our experience. Good luck. Stick it out. The Cypress makes a sweet addition to the operator panel. As the mentor on the stage team, I've had several complements on our operator controls. We are using every single DIO port as an input for our operator including several automated operations.

Mark McLeod
29-04-2011, 13:20
As Michael said, one of the main problems that new Cypress users run into is installing the wrong version of the Cypress support code.
Updates are NOT good and the DVD that came with the Cypress is NOT good.
Only the FRC version installed with the Driver Station software is correct.
That's not the problem in this case, but it's something to be aware of.

There is an easy way to tell if you have the right version.
If you don't have it then you don't have the correct FRC version of the Cypress support software installed.
Look under Start->Programs->Cypress->PSoC Programmer 3.12Start that program and look under Help->About PSoC Programmer
Correct FRC version = 3.12.0.827
Incorrectly updated version = 3.12.4 or higher
Incorrect from the original Cypress DVD = 3.10.0.440