Go to Post I began to see myself as an independent person who was not only being inspired, but able to inspire others and strengthen the FIRST program as a whole. - Jaine Perotti [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #41   Spotlight this post!  
Unread 11-06-2016, 21:40
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: swerve drive with arduino mega 2560

Scott - I believe the Servo library uses a timer and software to generate the PWM signal, so it is independent of the hardware generated PWM pins.

Becky – Getting back to one of your older questions. You don’t have to have a steering sensor if you are only going to run it in a “tele-operated” like mode if you want to keep things simple, although it will still be useful if you want it to drive in some modes. However, if you want to do autonomous driving, then you will definitely need a sensor to know the actual wheel position. I’ve had good luck with these. Specifically the 6127V1A360L.5FS. For mounting you really need these to be 1:1 with your wheel modules so the analog value will directly relate to a direction on the wheels. Since your steering motor uses a smaller sprocket than the swerve module, I’d install another shaft with the same size sprocket on one of the other wheels and attach the position sensor to that. This should be fairly easy since you have the double sprockets at each wheel. One thing to remember is that these sensors generally do not like high side loads, so I wouldn't recommend putting the sprocket directly on the sensor shaft.

Mike
Reply With Quote
 


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 06:32.

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