Go to Post I didn't think it was possible for Dave to be any more cryptic. I was wrong. - IMDWalrus [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-04-2014, 16:43
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Cypress PSoC hex files and wiring

So, two questions. First, how do I wire a gyro into that? I have rate, temp, two +5's, and two grounds, but no idea what to solder where. (Using usb to get the values.)

Second, PSoC programmer (3.12 it says) doesn't seem to work. I tried both the hex files that were installed into documents\FRC, and one of them said "The hex file was built for silicon revision ES3, but the acquired device is revision **. User PSoC Creator to generate a hex file for the proper device." The other file gave the error of "The hex file does not match with teh acquired device, please check the device." and I'm not sure what to do.
__________________
Spoiler for gif:
Reply With Quote
  #2   Spotlight this post!  
Unread 28-04-2014, 17:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,799
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 PSoC hex files and wiring

That gyro returns a simple analog signal, so it connects to an analog input.
It doesn't connect directly to a USB cable.

For wiring, the three pins below "Gyro" (Ground, +5v power, signal) get wired to the analog breakout pins mounted on the cRIO module if it is robot mounted.
Or if you are connecting it directly to the Cypress (odd since the Cypress already has a gyro incorporated), then they connect to one set of analog input pins.

The Cypress silicon version you have requires the latest version of the Cypress tools to successfully image with the FRC firmware.
The boards returning "device revision is **" need PSoC Programmer 3.17 or later to download the FRC firmware.
You need to uninstall the FRC supplied PSoC version and replace it with the latest from the Cypress website.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-04-2014 at 17:38.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-04-2014, 16:21
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Cypress PSoC hex files and wiring

Thanks. Annoyingly, that requires signing up for it. (Will have to do that I guess. bleh. can't access my email at school, so bleh.)

Alright, so how do I get the output of the built in gyro? I didn't know it had a built in gyro, but should I ask this over in the java section?
__________________
Spoiler for gif:
Reply With Quote
  #4   Spotlight this post!  
Unread 29-04-2014, 18:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,799
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 PSoC hex files and wiring

I didn't quite remember correctly. The board uses a built-in accelerometer to detect motion rather than a gyroscope, but it's pretty good.
There are example projects that comes with the PSoC Programmer showing how the output is accessed and used.

I don't remember the accelerometer being passed through the FRC WPILIB API though, so if you are planning to use this through the Driver Station application, then wiring your own gyro in may be the way to go.
Ask in the Java subforum.

Depending on how you plan to integrate and use the PSoC you may not need the FRC firmware. For instance, it can be used directly by your own program running on a laptop instead of coming in through the Driver Station.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 29-04-2014, 23:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Cypress PSoC hex files and wiring

Quote:
Originally Posted by Mark McLeod View Post
I don't remember the accelerometer being passed through the FRC WPILIB API though, so if you are planning to use this through the Driver Station application, then wiring your own gyro in may be the way to go.
Ask in the Java subforum.
The accelerometer is available in the DriverStationEnhancedIO class in Java (as well as in LabVIEW).
Reply With Quote
  #6   Spotlight this post!  
Unread 02-05-2014, 16:38
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Cypress PSoC hex files and wiring

Where do I get the hex files again? I think that I deleted them, because I thought the new PSoC programmer would contain new hex files, but it didn't.
__________________
Spoiler for gif:
Reply With Quote
  #7   Spotlight this post!  
Unread 02-05-2014, 18:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,799
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 PSoC hex files and wiring

These are the various Cypress firmware versions:
http://www.chiefdelphi.com/forums/at...2&d=1357876420
  • 2010: FRC_IO.v2.hex
  • 2011: FRC_IO.v2.hex
  • 2012: FRC_IO.2009.v3.hex & FRC_IO.2012.v3.hex
  • 2013: FRC_IO.2012.v3.hex
You probably want the 2012 version for your silicon.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-05-2014 at 18:49.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-05-2014, 16:55
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Cypress PSoC hex files and wiring

Quote:
Originally Posted by Mark McLeod View Post
There are example projects that comes with the PSoC Programmer showing how the output is accessed and used.

Can I ask where the examples are? Specifically in java?

EDIT: Ya, how do you even program it? I've been looking for over half an hour, found no actual code anywhere. I feel like either the way people are taught to program for FRC is horrible or I am missing some way to find what functions do what. Or maybe we are relying on someone else knowing beforehand, and those who don't just asking on these forums... which seems like it would be redundant an annoying for you people who know how to answer my questions.
__________________
Spoiler for gif:

Last edited by sthreet : 07-05-2014 at 16:38.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-05-2014, 01:14
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Cypress PSoC hex files and wiring

Can't figure out how to edit anymore, but wanted to clarify: You people here are awesome, I would know almost none of the syntax if you people didn't tell me. Buy why do we not have a big list of examples projects or something like that somewhere? Especially because it seems like you must answer the same questions a lot, due to different wording of the question. Generally I can figure out what a function does given its name, especially if I have a robot to test it on, but to figure out even what to import, and what function to call to do things is much harder.

EDIT: And to ask again, where do 5 volts and ground go on the cypress board? I can figure that ground goes to ground, but no idea where 5 volts goes. Figure that rate/temperature/other specifics don't matter where they are wired into, as long as the programming is the same, but not sure.
I really feel like I am missing something, some site that has information or something.
__________________
Spoiler for gif:

Last edited by sthreet : 08-05-2014 at 16:28.
Reply With Quote
Reply


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 23:02.

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