Go to Post Remember: "It's not the strongest that survive, but the most adaptable to change" - Daniel_LaFleur [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-04-2011, 09:56
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Cypress Help

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!
__________________
  #2   Spotlight this post!  
Unread 24-04-2011, 12:16
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-04-2011 at 12:37.
  #3   Spotlight this post!  
Unread 24-04-2011, 12:38
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

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
__________________
  #4   Spotlight this post!  
Unread 24-04-2011, 12:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

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 if you haven't already.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 24-04-2011, 16:27
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

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?
__________________
  #6   Spotlight this post!  
Unread 24-04-2011, 16:30
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

FYI, i get feedback on the accelerometer & button in the enhanced I/O tab not the compatibility one.
__________________
  #7   Spotlight this post!  
Unread 24-04-2011, 16:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

"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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-04-2011 at 17:07.
  #8   Spotlight this post!  
Unread 24-04-2011, 17:17
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

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
__________________
  #9   Spotlight this post!  
Unread 24-04-2011, 17:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

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?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-04-2011 at 17:30.
  #10   Spotlight this post!  
Unread 24-04-2011, 17:42
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

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
__________________
  #11   Spotlight this post!  
Unread 24-04-2011, 17:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #12   Spotlight this post!  
Unread 24-04-2011, 17:57
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

Should there be any voltage when u connect a millimeter between the P4_4 and gnd?
__________________
  #13   Spotlight this post!  
Unread 24-04-2011, 18:01
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-04-2011 at 18:10.
  #14   Spotlight this post!  
Unread 24-04-2011, 18:10
aechmtwash11 aechmtwash11 is offline
Registered User
FRC #2783
 
Join Date: Feb 2010
Location: Kentucky
Posts: 84
aechmtwash11 is an unknown quantity at this point
Re: Cypress Help

We have 3.3 volts from power to ground and 0.06 volts from P4_4 and ground
__________________
  #15   Spotlight this post!  
Unread 24-04-2011, 18:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress Help

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 19:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi