Go to Post Things that get said on the field should stay on the field. - Bongle [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 04-09-2010, 19:46
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Working with the PSoC

I am currently working on how to work with the PSoC. It uses a special form of C. I had the idea to create something like a sub computer with it, setting it up with some RAM and an external data source. my only problem is, I don't know how to program the thing in the first place!
I have a little experience with C++, but only with windows programming. I don't have a clue on how to do hardware programming in C. Help Please!!!!
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
  #2   Spotlight this post!  
Unread 04-09-2010, 21:13
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: Working with the PSoC

I'm a bit confused at what you are trying to do with it. Are you doing something seperate from FRC with it or are you just trying to use it for the driver station IO?
__________________
"Don't worry, programming can fix it"
  #3   Spotlight this post!  
Unread 04-09-2010, 21:25
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: Working with the PSoC

This is for next years' compitition. You see, no one on my team know how to work with the PSoC. So I'm pretty much doing all of the work on it. My idea is to set up a base control program in the PSoC, and then create special programs stored on SD cards. The SD cards are inserted into a SD slot on the control station, and the station sends the data to the PSoC on the robot. Are you following me so far?
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
  #4   Spotlight this post!  
Unread 05-09-2010, 11:37
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Working with the PSoC

That sounds interesting.
I think the biggest problem you'll run into is that FIRST hasn't released their source code for the PSoC or the Driver Station.
Here's a thread from a year ago on this:
http://forums.usfirst.org/showthread.php?t=13082
__________________
-- Marshal Horn
  #5   Spotlight this post!  
Unread 05-09-2010, 13:00
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: Working with the PSoC

I don't need their source code. I intend to write my own. The reason I started this thread was because I need some tutorials on PSoC hardware programming. I noticed that I can use C++, so that will be helpful in the programming process. But in my final project, because I intend to use an external memory system(RAM), I need to use a good bit of C. So can anyone post tutorials on PSoC3 hardware programming?
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
  #6   Spotlight this post!  
Unread 05-09-2010, 14:09
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Working with the PSoC

Oh, I'm sorry, I misunderstood you.
I thought you were intending to put the PSoC on the driver station.

The User's Manual has a basic example. Here's a list of sample projects:
http://www.cypress.com/?id=1353&rtID=113
__________________
-- Marshal Horn
  #7   Spotlight this post!  
Unread 05-09-2010, 17:20
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: Working with the PSoC

I'm not sure on the rules for using the PSoC in that way are. If its legal, that sounds like a great idea and I may be interested in doing the same, but I have a feeling there will be a rule somewhere stopping you.
__________________
"Don't worry, programming can fix it"
  #8   Spotlight this post!  
Unread 05-09-2010, 19:28
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: Working with the PSoC

The only rules for custom electronics are that the circuit cannot interfere with another teams robot in any way, shape, or form. that and the electronics cannot be outside of the robots footprint.
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
  #9   Spotlight this post!  
Unread 05-09-2010, 20:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,038
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Working with the PSoC

Quote:
Originally Posted by PortugazD.Ace View Post
The only rules for custom electronics are that the circuit cannot interfere with another teams robot in any way, shape, or form. that and the electronics cannot be outside of the robots footprint.

<R03> Custom circuits and COTS electronics are expressly PROHIBITED if they:

A. Interfere with the operation of other ROBOTS.

B. Directly affect any output devices on the ROBOT, such as by directly powering a motor, supplying a PWM signal directly to a speed controller or supplying a control signal directly to a relay module (see Rules <R63> and <R64> for the specific exception regarding CAN-bus devices).



<R50> Custom circuits shall NOT directly alter the power pathways between the battery, Power Distribution Board, speed controllers, relays, motors, or other elements of the robot control system (including the power pathways to other sensors or circuits). Custom high impedance voltage monitoring or low impedance current monitoring circuitry connected to the ROBOT’S electrical system is acceptable, because the effect on the ROBOT outputs should be inconsequential.


8.3.8 Custom circuits may be used to indirectly affect the robot outputs by providing enhanced sensor feedback to the cRIO-FRC to allow it to more effectively control the ROBOT.


<R68> All outputs from sensors, custom circuits and additional electronics shall connect to only

A. other custom circuits, or the following:
B. additional COTS electronics, or
C. input ports on the Digital Sidecar, or
D. input ports on the Analog Breakout, or
E. the RS-232 DB-9 serial port on the cRIO-FRC, or
F. the Ethernet bus connected to Port 2 of the cRIO-FRC, or
G. the CAN-bus if and only if all Jaguar speed controllers on the CAN-bus are wired in full compliance with Rule <R63> and Rule <R64>, or
H. the sensor inputs on the Jaguar speed controller.

Custom circuits and additional electronics are allowed to utilize the Port 2 Ethernet bus and/or the CAN-bus to communicate between devices. Note however, that the ROBOT must be controlled by the cRIO-FRC (see Rule <R56>). Thus, any additional devices on the Ethernet or CAN-bus must not provide command signals that do not originate from the cRIO-FRC It is our intent to incrementally open access to the full control system technologies in a controlled manner that reduces the risk of “unanticipated surprises” as we gain experience with the system.



  #10   Spotlight this post!  
Unread 05-09-2010, 23:49
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: Working with the PSoC

My idea follows all of the rules. the system is only for dectecting enviromental changes and telling the cRIO how to react using preprogrammed commands in the cRIO. that is all I want the PSoC to do. also, don't forget that those were last years rules. the rules could be different this year.
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
  #11   Spotlight this post!  
Unread 06-09-2010, 00:57
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Working with the PSoC

Quote:
Originally Posted by PortugazD.Ace View Post
My idea follows all of the rules. the system is only for dectecting enviromental changes and telling the cRIO how to react using preprogrammed commands in the cRIO. that is all I want the PSoC to do. also, don't forget that those were last years rules. the rules could be different this year.
I see I don't need to give any of my standard warnings

For what it is worth (nothing), my understanding of last years rules agrees with (my understanding of) your understanding.


The best advice I can give you is to plan your project out into small, proveable chunks. At each step along the path, you should be able to point to something and say "this proves that it is working the way I think it is".

For example, it may be worthwhile to make a simple version in which it simply reports whether or not something is true using a simple pin. You can attach an LED or a multimeter to this and watch it blink.


Also, don't be intimidated by the PSoC's programming environment. If you already know C++, you are well on your way. Again, just start simple.

As to its hardware configuration, this is done graphically. The interface is relatively straight forward, but I'd do a tutorial or two first just to get a lay of the land.
  #12   Spotlight this post!  
Unread 06-09-2010, 22:51
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Working with the PSoC

Quote:
Originally Posted by kamocat View Post
I think the biggest problem you'll run into is that FIRST hasn't released their source code for the PSoC or the Driver Station.]
actually...http://frcdirector.blogspot.com/2010...-part-iii.html

More specifically:
Quote:
Source code for the Cypress board is now available. There’s a link on the Robot Control System page of our website, or you can go directly here.
I've looked at it, it's the code used in FRC. Hope it helps!
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #13   Spotlight this post!  
Unread 07-09-2010, 07:23
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: Working with the PSoC

I grabbed this source code when it first came out to the public, but have yet to actually take a look at it. I'm very interested in this idea, I had thought about something similar last year but thought that rules were in the way, but I see now they are not. You certainly have my mind thinking about next year's game. I'd be very interested in seeing your results. I'm just curious, how are you attaching it to the robot? (ethernet, CAN ect)
__________________
"Don't worry, programming can fix it"
  #14   Spotlight this post!  
Unread 07-09-2010, 19:18
PortugazD.Ace's Avatar
PortugazD.Ace PortugazD.Ace is offline
Registered User
AKA: Timothy Gonzales
FRC #1165 (Team Paradise)
Team Role: Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Arizona
Posts: 46
PortugazD.Ace is an unknown quantity at this point
Re: Working with the PSoC

I'll probably create a custom circuit board using DipTrace, and designing an ethernet port into it. I'll probably have to talk to my team's programmer on setting up a command conversion tool.
__________________
Latin:
"Murmure ventus erit parere Tempestatem"
"Noctu teneris vinculis
Nocte illa vincula adimuntur"
  #15   Spotlight this post!  
Unread 07-09-2010, 19:23
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Working with the PSoC

Should've mentioned this earlier - http://www.cypress.com/?app=forum
That forum will likely be much better suited for you, as they actually know what they are doing

Quote:
Originally Posted by PortugazD.Ace View Post
I'll probably create a custom circuit board using DipTrace, and designing an ethernet port into it. I'll probably have to talk to my team's programmer on setting up a command conversion tool.
Word of Fair Warning - That is a big chunk to bite off. You'd be well served by breaking it down into a few smaller chunks.

Consider using I2C or SPI instead of Ethernet as your communication protocol - they are slower, but have fewer "gotchas" and are better supported by the PSoC.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PSoC board programming please krudeboy51 C/C++ 23 21-10-2010 19:54
Help with PSoC board wiring please krudeboy51 Electrical 1 04-05-2010 16:17
Programming the Psoc railerobotics Technical Discussion 5 18-02-2010 10:10
Windows "Malfunctioning USB Device" error with Psoc IO Board WarrenPW FRC Control System 2 11-02-2010 18:53
Programming the PSoC PortugazD.Ace Programming 19 31-01-2010 13:14


All times are GMT -5. The time now is 10:20.

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