Go to Post Maybe I'm just a chicken. Not to disparage the ThunderChickens. Those guys are a whole different breed of poultry. - Kevin Sevcik [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
  #16   Spotlight this post!  
Unread 17-01-2013, 15:47
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: CIM->Victor 884->Arduino not working

Quote:
That's what I got on the o scope. I put a 10 ohm resistor in line with the signal wire and took the voltage above and below the resistor then hooked the other channel on the o scope to a constant 0.1v and used the math function to multiply the channels
Forgive me for asking the obvious question but are both probes set to the same gain (x10, x1)?

Last edited by BitTwiddler : 17-01-2013 at 15:49.
  #17   Spotlight this post!  
Unread 17-01-2013, 15:59
ericomoura ericomoura is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Brazil
Posts: 12
ericomoura is an unknown quantity at this point
Re: CIM->Victor 884->Arduino not working

Here, this might help you.
http://imageshack.us/photo/my-images/185/victormc4.png/
  #18   Spotlight this post!  
Unread 17-01-2013, 16:04
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: CIM->Victor 884->Arduino not working

Quote:
Originally Posted by jamie_1930 View Post
Could you show me how you set up this up electrically? In the victor manual it says to use a pwm signal driver if you are not using an ifi controller and I can't really find one on the internet. So I assumed I could boost up the amount of current by using a mosfet. I got that working and then I measured the current over time with an oscilliscope and it's pretty noisy. The voltage is a perfect square wave, but the current starts of at 0A and curves up to around 500mA and does a 10-20mA bounce as it goes up.
I will have to check, but I do not remember doing anything with the circuit. From 50 year old memory, I think I have the white PWM wire going to the arduino output, red to the +5v and black to 0V, and it worked. It isn't pretty but has worked for a couple of years.

I powered it with a Usb cable, we have a utility tote that has an old battery, power cut off, and a plate with 4 auto cigarette lighter sockets for powering cell phone charges at events, and a built in usb charger.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #19   Spotlight this post!  
Unread 17-01-2013, 16:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,103
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: CIM->Victor 884->Arduino not working

Quote:
Originally Posted by jamie_1930 View Post
Next time i'll try putting a larger resistor in line to lower the current down to 50mA
50 ma is still way too high.

In the Jag's opto-isolator, there's a 150 ohm series resistor. In the DSC, there's a 330 ohm series resistor in the PWM signal output. Total 480 ohms. Do the math. 11 ma should be enough.

I just measured a Vic I have here. With 1.5 VDC applied to the input, the current is 0.00562 amps. Subtract 0.7 volts for the LED (I think?) and use R=V/I = (1.5-0.7)/0.00562 = 142 ohms series resistor. So it seems to be similar to the Jag.



  #20   Spotlight this post!  
Unread 17-01-2013, 16:36
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: CIM->Victor 884->Arduino not working

FYI, that Altoids Can ran the old victors, and currently running Jags without issue. I have not tried with Talon, or the new Victor.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #21   Spotlight this post!  
Unread 17-01-2013, 16:58
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 191
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: CIM->Victor 884->Arduino not working

Quote:
Originally Posted by Whippet View Post
Have you tried connecting the grounds between the FRC battery and the Arduino?
This is not necessary because of the optocoupler that Ether has mentioned.

Your PWM source just has to be able to turn on the LED in the optocoupler.

For the Jaguar, the Turn On Threshold Current for the optocoupler (H1L1M - Datasheet) is 1.6 mA. I don't know the exact optocoupler used in the Victor, but it should be very similar.

Even though I have never played with an Arduino, I would think that its outputs should be able to source >1.6mA at 5V.

I agree that the optocoupler could very well be damaged (pending validation on the 500mA measurement) and possibly the Arduino pin as well if the first attempt was made without a series resistor.

-David
  #22   Spotlight this post!  
Unread 18-01-2013, 07:56
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: CIM->Victor 884->Arduino not working

I checked last night, and I do not have have any circuitry between the arduino and the white of the pwm, except for a solder joint to switch it to solid wire to plug into the arduino socket.

I just plugged it in and it worked.



__________________
The sooner we get behind schedule, the more time we have to catch up.

  #23   Spotlight this post!  
Unread 18-01-2013, 13:39
jamie_1930's Avatar
jamie_1930 jamie_1930 is offline
Registered User
FRC #2228 (Cougartech)
Team Role: Student
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Rush-Henrietta
Posts: 371
jamie_1930 is a splendid one to beholdjamie_1930 is a splendid one to beholdjamie_1930 is a splendid one to beholdjamie_1930 is a splendid one to beholdjamie_1930 is a splendid one to beholdjamie_1930 is a splendid one to beholdjamie_1930 is a splendid one to behold
Re: CIM->Victor 884->Arduino not working

Ok so here's the update I tryed putting a resistor in line with the signal wire to lower the current, but it still didn't work. So I opened up the victor (which just as an fyi on the pcb says Victor 883 rev F so it's still mainly the same as the victor 883) and found that it had a CNY17F optocoupler inside and based on the data sheet I was pretty sure that I blew it. I then hooked in some alligator clips to test and again I was pretty sure that it was busted. Now we've soldered out the CNY17F and are going to replace it with a PS2501 optocoupler. The pins don't match up exactly so we've snapped of two pins of a 4DIP IC socket and am soldering into where the CNY17F was and we're going to stick the PS2501 into another 4DIP IC Socket and join the two socket by the appropriate pins.

When this is all finished the victor should (fingers crossed) function.

cny17f
__________________
2010
Team 2228(FRC) - Drive Team Lead, Drive Coach, Mechanical Team
Team 3750(FTC) - Team Lead
2009
Team 2228(FRC) - Mechanical Team, Driver at RIT, and Hartford Regionals, and Drive coach at Ruckus
*Second Place at Ruckus
Team 3750(FTC) - Team Lead, and Drive coach at Clarkson Regional
*Second Place at Clarkson Regional
2008
Team 1930(FRC) - Worked on Mechanical, Electrical, and Programming.
  #24   Spotlight this post!  
Unread 18-01-2013, 17:31
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: CIM->Victor 884->Arduino not working

Quote:
This is how everything was hooked up originally and I've also tried hooking up a mosfet powered by the 5v line of the arduino. And I've also tried putting a 5v regulator powered by the FRC battery and then using the 5v line to power a mosfet to boost the signal to the victor, but everytime the victor just flashes orange (no pwm)
After taking another look at the wiring diagram that was originally posted I think I see a problem concerning the PWM cable wiring. If the diagram is correct, the ground wire from the Arduino board is connected to the +5 V in of the Victor. In PWM, the ground and signal are on the outside wires and the +5V wire is on the inside.
Don't know if this observation is helpful.

**** Please disregard. Mr. Anderson already pointed this out ******

Last edited by BitTwiddler : 18-01-2013 at 17:45.
  #25   Spotlight this post!  
Unread 18-01-2013, 17:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,103
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: CIM->Victor 884->Arduino not working

Quote:
Originally Posted by BitTwiddler View Post
If the diagram is correct, the ground wire from the Arduino board is connected to the +5 V in of the Victor. In PWM, the ground and signal are on the outside wires and the +5V wire is on the inside.
Don't know if this observation is helpful.
The center +5 wire is required when using a PWM cable to control a servo (that's how the servo gets its power)

BUT

Only the GND and Signal (outside pins) are required for the PWM input to the motor controllers. The center pin goes nowhere and does nothing.



  #26   Spotlight this post!  
Unread 18-01-2013, 17:47
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: CIM->Victor 884->Arduino not working

Quote:
Originally Posted by Ether View Post
BUT

Only the GND and Signal (outside pins) are required for the PWM input to the motor controllers. The center pin goes nowhere and does nothing.



Ether,
I didn't know that. Thanks.
  #27   Spotlight this post!  
Unread 18-01-2013, 17:51
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,103
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: CIM->Victor 884->Arduino not working

Quote:
Originally Posted by BitTwiddler View Post
Ether,
I didn't know that. Thanks.
Excerpt from the Jag schematic attached. Notice the center pin.
Attached Thumbnails
Click image for larger version

Name:	Jag PWM input.png
Views:	98
Size:	13.9 KB
ID:	13566  
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 18:16.

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