Go to Post Saying that something cannot be done, is always good inspiration for someone to find a way to do it. - Josh Hambright [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 06-06-2015, 21:16
Rman1923's Avatar
Rman1923 Rman1923 is offline
Registered User
AKA: Rohan Chatterjee
FRC #1923 (The MidKnight Inventors)
Team Role: Leadership
 
Join Date: May 2013
Rookie Year: 2013
Location: Plainsboro, NJ
Posts: 48
Rman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond repute
Arduino Micro with Talon SR

Hey all, (This is not for our robot but for a personal project)

So I am trying to connect a Talon SR to an Arduino Micro (With the Leonardo Processor) to power a Mini-Cim. I think I have all the electrical down but I'm not sure how to connect the PWM from the talon to the Arduino. My guess is that I cut the pos and neg wires on the PWM and just connect the white wire (since I already have 12 volts going through the talon). If this isn't how to do it, where should I connect the pos and neg terminal to on the Arduino (or in my circuit)?

Thanks!
__________________

My posts do not reflect the values and opinions of my team
Build Co-Captain for The MidKnight Inventors
FLL Mentor for The Robot MasterMinds

FTC Student Mentor for MidKnight Magic

2015 Dean's List Finalist
  #2   Spotlight this post!  
Unread 06-06-2015, 21:36
Jacob Bendicksen's Avatar
Jacob Bendicksen Jacob Bendicksen is offline
Figuring out what's next
no team
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2012
Location: United States
Posts: 762
Jacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond repute
Re: Arduino Micro with Talon SR

You do want to connect the positive and negative to the Arduino - negative to a ground pin, positive to (I believe) a 5V pin.
__________________
jacobbendicksen.com | @jacobbendicksen

Yale University Class of 2020

Team 1540 | 2012-2016
7 Chairman's Awards, 6 other awards, 2015 Dean's List Finalist, 1 event win, 2 finalist finishes. Thanks for an amazing ride.
  #3   Spotlight this post!  
Unread 06-06-2015, 21:54
Rman1923's Avatar
Rman1923 Rman1923 is offline
Registered User
AKA: Rohan Chatterjee
FRC #1923 (The MidKnight Inventors)
Team Role: Leadership
 
Join Date: May 2013
Rookie Year: 2013
Location: Plainsboro, NJ
Posts: 48
Rman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond repute
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by Jacob Bendicksen View Post
You do want to connect the positive and negative to the Arduino - negative to a ground pin, positive to (I believe) a 5V pin.
Cool, Thanks!
And I'm guessing the White Wire goes to a PWM pin right?

I found this image like ten minutes ago
__________________

My posts do not reflect the values and opinions of my team
Build Co-Captain for The MidKnight Inventors
FLL Mentor for The Robot MasterMinds

FTC Student Mentor for MidKnight Magic

2015 Dean's List Finalist
  #4   Spotlight this post!  
Unread 06-06-2015, 22:12
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Arduino Micro with Talon SR

you don't need the red wire, its not connected to anything inside the talon
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
  #5   Spotlight this post!  
Unread 06-06-2015, 22:39
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,208
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Arduino Micro with Talon SR

Connect PWM output od Arduino to PWM input of Talon, and connect the twos' grounds.
Not sure about the power wires.
__________________
<Now accepting CAD requests and commissions>

  #6   Spotlight this post!  
Unread 07-06-2015, 00:45
timytamy's Avatar
timytamy timytamy is offline
Registered User
AKA: Tim
FRC #3132 (The Thunder Down Under)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2010
Location: Australia
Posts: 293
timytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant future
Re: Arduino Micro with Talon SR

There are a myriad of other threads out there that go into detail about connecting motor controllers to Arduinos.

But to get you started, read up on servo PWM, it's not the same thing as the pseudo analogue PWM you get from the PWM pins (with analogueWrite()). You'll probably need the Arduino Servo library to create the appropriate signals for the Talon.
__________________
Tim W
FIRST® Team 3132 - The Thunder Down Under
Sydney, Australia
Website | Facebook | Youtube
  #7   Spotlight this post!  
Unread 07-06-2015, 01:53
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Arduino Micro with Talon SR

When you are writing the pwm signal make sure neutral = 47, 74 = full forward, 20 = full reverse. These are the correct values the controllers expect, otherwise you will have to re-calibrate the controllers for them to work properly.
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
  #8   Spotlight this post!  
Unread 07-06-2015, 22:55
Rman1923's Avatar
Rman1923 Rman1923 is offline
Registered User
AKA: Rohan Chatterjee
FRC #1923 (The MidKnight Inventors)
Team Role: Leadership
 
Join Date: May 2013
Rookie Year: 2013
Location: Plainsboro, NJ
Posts: 48
Rman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond repute
Re: Arduino Micro with Talon SR

Thanks All, I figured it out, you have to connect the red to the VCC (5V or 3.3V depending on the board) black to ground and then the white one to a PWM pin. I used the Servo library and read the vals from a potentiameter and fed them to the talon during calibration. Now if i could get the underglow working...
__________________

My posts do not reflect the values and opinions of my team
Build Co-Captain for The MidKnight Inventors
FLL Mentor for The Robot MasterMinds

FTC Student Mentor for MidKnight Magic

2015 Dean's List Finalist
  #9   Spotlight this post!  
Unread 08-06-2015, 00:39
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,494
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Arduino Micro with Talon SR

I'd skip the servo function and instead use servo.writeMicroseconds.

Cleaner control numerically.

1000 is rev, 1500 neutral, 2000 forward.
  #10   Spotlight this post!  
Unread 08-06-2015, 02:04
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,933
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by AdamHeard View Post
I'd skip the servo function and instead use servo.writeMicroseconds.

Cleaner control numerically.

1000 is rev, 1500 neutral, 2000 forward.
These are nitpicks ... (everyone's a critic )

Servo.writeMicroseconds() is a function in the Servo library, and not a substitute for that library.

And, I think the Talon has a max/min pulse range larger than 1500+/-500.

Read the Talon's fine manuals (easily found using a Google search) to see wiring and pulse range information.

FYI: I'm using an Edison Arduino in a project, and having pretty good luck so far. I have worked around the one WiFi bug that was giving me trouble, and I don't have any other show-stoppers on the horizon (yet). At about $100, it gives you built-in WiFi, and a lot of computing bang for your buck, in situations where Arduino-style I/O is useful. Consider using one in your next project....

Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
  #11   Spotlight this post!  
Unread 08-06-2015, 07:35
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,515
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by AdamHeard View Post
I'd skip the servo function and instead use servo.writeMicroseconds.
I don't agree here at all. If you have a working, well tested abstraction that does exactly what you want it to do but can be easily adjusted if the parameters are just a bit off, and you have enough resources to implement it, why would you work around it?
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #12   Spotlight this post!  
Unread 08-06-2015, 12:49
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,494
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by GeeTwo View Post
I don't agree here at all. If you have a working, well tested abstraction that does exactly what you want it to do but can be easily adjusted if the parameters are just a bit off, and you have enough resources to implement it, why would you work around it?
You're missing what I'm saying. servo.write() takes 0 to 180 degrees as an input and controls a "Servo". servo.writeMicroseconds() explicitly takes the pulse you would like to generate, which for a talon is 1000-2000 w/ 1500 at center. This leaves you a nice +/- 500 integer swing for clean math.
  #13   Spotlight this post!  
Unread 13-06-2015, 01:37
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by Rman1923 View Post
Thanks All, I figured it out, you have to connect the red to the VCC (5V or 3.3V depending on the board) black to ground and then the white one to a PWM pin. I used the Servo library and read the vals from a potentiameter and fed them to the talon during calibration. Now if i could get the underglow working...
you don't believe me when I say power is not connected to anything? just trying to save trouble, it really only needs signal and ground. red serves no purpose and is no internally hooked up to anything inside that talon
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
  #14   Spotlight this post!  
Unread 13-06-2015, 23:30
Rman1923's Avatar
Rman1923 Rman1923 is offline
Registered User
AKA: Rohan Chatterjee
FRC #1923 (The MidKnight Inventors)
Team Role: Leadership
 
Join Date: May 2013
Rookie Year: 2013
Location: Plainsboro, NJ
Posts: 48
Rman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond reputeRman1923 has a reputation beyond repute
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by teslalab2 View Post
you don't believe me when I say power is not connected to anything? just trying to save trouble, it really only needs signal and ground. red serves no purpose and is no internally hooked up to anything inside that talon
Actually, I had it set up without red, but then the talon didn't work. The PWM powers as well as controls the talon. The talon is not (and can't be) powered by the input voltage. It confused me at first as well lol.
__________________

My posts do not reflect the values and opinions of my team
Build Co-Captain for The MidKnight Inventors
FLL Mentor for The Robot MasterMinds

FTC Student Mentor for MidKnight Magic

2015 Dean's List Finalist
  #15   Spotlight this post!  
Unread 14-06-2015, 17:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Arduino Micro with Talon SR

Quote:
Originally Posted by Rman1923 View Post
Actually, I had it set up without red, but then the talon didn't work. The PWM powers as well as controls the talon. The talon is not (and can't be) powered by the input voltage. It confused me at first as well lol.
Unless your Talon differs from every one I have ever seen, you are mistaken. The center pin on the Talon's PWM connector is not connected to anything inside it. The Talons (and Victors, and Jaguars) are indeed powered by the same input voltage that is routed (and regulated) to the motor outputs.
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 21: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