Go to Post If a suspicious distrustful atmosphere is created, then a suspicious distrustful reaction will occur. - JaneYoung [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 22-02-2010, 09:54
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Analog Out on the Cypress PSoC (enhanced modeO

Hi All,

Has any one used the enhanced mode on the Cypress SPoC and played with the ANALOG OUTPUTS ?

I have used the compatibility mode and am able to get the ANALOG INPUT working fine (except for the high impedance noise on the unused AI lines).

I have been able to use switches on the PSoC and reflect the switch settings back to the (virtual) LEDs on the DS - so far so good.

I am using Windriver C++ and the standard DriverStation class.

Is there a Analog Out method in the DirverStationEnhanced class that can be used to send an analog signal back ?

Greg M may know the answer to this (also!) ...

It would be nice to have a manual about PSoC as applied to our FIRST scenrios.

Many thanks in advance.
Gopal
  #2   Spotlight this post!  
Unread 22-02-2010, 10:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Analog Out on the Cypress PSoC (enhanced modeO

The LV API to the DS has a call for getting and setting the analog outputs. I assume that the C++ API does as well.

Greg McKaskle
  #3   Spotlight this post!  
Unread 22-02-2010, 10:07
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: Analog Out on the Cypress PSoC (enhanced modeO

Ooh Ooh! What are you planning on doing with them?

If you find something cool I'll win a bet, so please do tell!
  #4   Spotlight this post!  
Unread 22-02-2010, 15:11
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: Analog Out on the Cypress PSoC (enhanced modeO

Thanks Greg..
I checked in the C++ documentation and I see there is SetAnalogOut()!
I did not see this before - this is cool.

The other thing - the P2 connector has a sticker of some sort on it.
It would be nice to know if we can remove it and also what type of connector plugs in to it (rather than breadboard it with individual wires).


Eric - What I have been doing is experimenting with feedback for the past few years but with each driver station changing it has been interesting!

Last year I was on the verge of converting a generic PC gamepad to a good driver station operator interface. There the fun was in using the built-in motors to generate some sort of tactile feedback.

With this Analog Output - something like that could be done, I think.

I will share with you what I come up with!
Thanks again!
Gopal
  #5   Spotlight this post!  
Unread 23-02-2010, 10:58
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: Analog Out on the Cypress PSoC (enhanced modeO

One new question -

Is it possible to check if the PSoC is connected or not (using Windriver code) ?

I read the the enhanced class can get the config etc.. but if I am not using the enhanced, how can I find out if the PSoC is plugged in to the DS ?

Thanks
  #6   Spotlight this post!  
Unread 23-02-2010, 14:05
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Analog Out on the Cypress PSoC (enhanced modeO

Quote:
Originally Posted by EricVanWyk View Post
Ooh Ooh! What are you planning on doing with them?

If you find something cool I'll win a bet, so please do tell!
We used an analog output to drive an LED-based "bargraph". The higher the analog output, the higher the bars climb.
We use it to give our driver feedback of the current "kick strength" of our kicking mechanism.
The display is kind of small, but it is fun to watch it go depleted when fired, then climb back up to the driver's chosen power level/strength.

For the OP - we use C++ Enhanced IO class to drive this. It works great.

Here's a picture of the nearly-finished board (unpowered, sadly) - the strength meter is the rectangular white-ish object in the top middle, underneath the left-edge of the large white oval-shaped device (that's a cap-touch based slider used by the driver to set the kick strength).

http://rollingthunder.smugmug.com/20...65_HzTsD-M.jpg

Hope you can win your bet one way or another
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
LEDs on the Cypress PSoC mcbean Programming 4 21-02-2010 15:55
Programming the Psoc railerobotics Technical Discussion 5 18-02-2010 10:10
Analog Input tied to Accelerometer on Cypress offramp13 FRC Control System 2 05-02-2010 02:40
Programming the PSoC PortugazD.Ace Programming 19 31-01-2010 13:14
Cypress PSoc Programmer Port Selection problem Steven_585 FRC Control System 2 23-01-2010 23:06


All times are GMT -5. The time now is 23:07.

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