Go to Post "Oh, I get why we have Toy Story band-aids!!! The character Woody, and then in FIRST, we have Woodie Flowers. Woody = Woodie? I get it! I GET IT! - Millory [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

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 06-01-2016, 06:19 PM
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,210
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: swerve drive with arduino mega 2560

Instead of starting with a swerve drive in Arduino, try working through the tutorials first; it'll be a lot of help.
__________________
<Now accepting CAD requests and commissions>

Reply With Quote
  #17   Spotlight this post!  
Unread 06-02-2016, 11:21 AM
beckster1999's Avatar
beckster1999 beckster1999 is offline
Becky the robotic cat *prrrrr beep*
AKA: Becky
FRC #2877 (Ligerbots)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Newton
Posts: 28
beckster1999 is an unknown quantity at this point
Re: swerve drive with arduino mega 2560

https://drive.google.com/file/d/0B7L...ew?usp=sharing

this will hopefully work
__________________
becky the robotic gerbil (btw anyone wanna help me make on starting next school year? i need a team and many years which is why I am starting in high school)
Reply With Quote
  #18   Spotlight this post!  
Unread 06-02-2016, 11:31 AM
beckster1999's Avatar
beckster1999 beckster1999 is offline
Becky the robotic cat *prrrrr beep*
AKA: Becky
FRC #2877 (Ligerbots)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Newton
Posts: 28
beckster1999 is an unknown quantity at this point
Re: swerve drive with arduino mega 2560

i have to start with a swerve drive and arduino, the project was to make a swerve drive bot and i only need to do the programming now. i didn't choose the assignment, plus i spen翶spent too long cadding it for ages until i was the only person left who hadn't graduated and now I needa finish it on my own.
__________________
becky the robotic gerbil (btw anyone wanna help me make on starting next school year? i need a team and many years which is why I am starting in high school)
Reply With Quote
  #19   Spotlight this post!  
Unread 06-02-2016, 11:38 AM
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 646
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: swerve drive with arduino mega 2560

This is an exceptional challenge...

We can help, but we can't do everything.

Have you done the following:?

1. Loaded an example program onto the arduino, i.e. blink
2. Verified that the example program is running

You have to at least achieve this before attempting to write any robot control code.

Also, it sounds like you're using a programmer tool. You shouldn't need this...just a USB cable and the Arduino software.
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
Reply With Quote
  #20   Spotlight this post!  
Unread 06-02-2016, 11:43 AM
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 646
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: swerve drive with arduino mega 2560

Also, I can't see from the image if you have a steering sensor installed?

I presume you have it located on top of the steering module...but I can't tell.

Is this true? What sensor is it?
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
Reply With Quote
  #21   Spotlight this post!  
Unread 06-02-2016, 11:47 AM
beckster1999's Avatar
beckster1999 beckster1999 is offline
Becky the robotic cat *prrrrr beep*
AKA: Becky
FRC #2877 (Ligerbots)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Newton
Posts: 28
beckster1999 is an unknown quantity at this point
Re: swerve drive with arduino mega 2560

it doesn't have any sensors on it yet, i will probably add them soon, but i kinda wanna figure out how to code it first since I don't know C++ at all yet.
__________________
becky the robotic gerbil (btw anyone wanna help me make on starting next school year? i need a team and many years which is why I am starting in high school)
Reply With Quote
  #22   Spotlight this post!  
Unread 06-02-2016, 11:49 AM
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 646
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: swerve drive with arduino mega 2560

Have you done the following:?

1. Loaded an example program onto the arduino, i.e. blink
2. Verified that the example program is running
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
Reply With Quote
  #23   Spotlight this post!  
Unread 06-02-2016, 11:50 AM
beckster1999's Avatar
beckster1999 beckster1999 is offline
Becky the robotic cat *prrrrr beep*
AKA: Becky
FRC #2877 (Ligerbots)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Newton
Posts: 28
beckster1999 is an unknown quantity at this point
Re: swerve drive with arduino mega 2560

i don't think so. im not sure how
__________________
becky the robotic gerbil (btw anyone wanna help me make on starting next school year? i need a team and many years which is why I am starting in high school)
Reply With Quote
  #24   Spotlight this post!  
Unread 06-02-2016, 12:09 PM
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 646
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: swerve drive with arduino mega 2560

http://lmgtfy.com/?q=how+to+load+code+onto+my+arduino

Check out the first link.

Arduino is supposed to be easy....so follow their simple guide and get some example code loaded. Then we can discuss doing something like controlling a speed controller etc.
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
Reply With Quote
  #25   Spotlight this post!  
Unread 06-02-2016, 12:15 PM
beckster1999's Avatar
beckster1999 beckster1999 is offline
Becky the robotic cat *prrrrr beep*
AKA: Becky
FRC #2877 (Ligerbots)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Newton
Posts: 28
beckster1999 is an unknown quantity at this point
Re: swerve drive with arduino mega 2560

i tried the one called blink and it seemed to work
__________________
becky the robotic gerbil (btw anyone wanna help me make on starting next school year? i need a team and many years which is why I am starting in high school)
Reply With Quote
  #26   Spotlight this post!  
Unread 06-02-2016, 12:18 PM
beckster1999's Avatar
beckster1999 beckster1999 is offline
Becky the robotic cat *prrrrr beep*
AKA: Becky
FRC #2877 (Ligerbots)
Team Role: Electrical
 
Join Date: Feb 2016
Rookie Year: 2013
Location: Newton
Posts: 28
beckster1999 is an unknown quantity at this point
Re: swerve drive with arduino mega 2560

i have to go until monday since I don't have class again until then, but thanks for your help so far
__________________
becky the robotic gerbil (btw anyone wanna help me make on starting next school year? i need a team and many years which is why I am starting in high school)
Reply With Quote
  #27   Spotlight this post!  
Unread 06-02-2016, 12:19 PM
ajlapp ajlapp is offline
Registered User
AKA: Anthony Lapp
None #0118 (Team RUSH and Robonauts)
 
Join Date: Sep 2001
Rookie Year: 1996
Location: Ortonville, MI
Posts: 646
ajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond reputeajlapp has a reputation beyond repute
Re: swerve drive with arduino mega 2560

Perfect.

Now you can investigate the "Servo" example. It shows you how to send commands to a hobby servo...this is similar to sending commands to speed controller.

I don't recall off the top of my head if it'll just work or if it needs some tweaks...regardless, it'll send PWM commands out a pin on the arduino and make your speed controller request voltage be sent to your motors.
__________________
Anthony Lapp
FIRST Engineering Mentor
Owner/Operator 221 Robotic Systems
221 Robotics Systems - Quality Hardware, Made in the USA
RobotOpen
anthony@221robotics.com
Twitter us: @221RobotSystems
Team 1 --> 94 --> 68 --> 221 --> 857 --> 27 --> 118
Design Engineer/Fabricator and 17 year vet
Team Rush (FRC27) and Robonauts (FRC118)
Reply With Quote
  #28   Spotlight this post!  
Unread 06-02-2016, 12:21 PM
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: swerve drive with arduino mega 2560

Quote:
Originally Posted by beckster1999 View Post
it doesn't have any sensors on it yet, i will probably add them soon, but i kinda wanna figure out how to code it first...
You can't write code for hardware that is not yet defined. Anthony's questions require an answer before you can get useful help: what kind of sensor is it? Where is it mounted?
Reply With Quote
  #29   Spotlight this post!  
Unread 06-02-2016, 07:56 PM
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

Becky,

First off, I think this drive system is an great choice for a first swerve system. Having the steering modules linked together, as well as speed, will make things much easier from a control aspect. Because of this, I wouldn't start with any sensors. They are not needed to be able to drive around, and for someone relatively new to programming, this will make things much easier. I would use a two axis joystick model, where the forward/backwards motion drives the robot, and the side to side motion controls the speed of turning. Sensors can be added later once you get it driving if you want to have more (or more interesting) control.

As others have said, you will need to be able to generate PWM signals for the speed controllers and the Arduino servo library has that capability. But before we get to that, one important question comes to mind. Have you thought about how you are going to control this? What type of operater station do you have and how will it communicate with the Mega? Wireless? Wired (tethered?) Somehow you will need to get the information to the mega on what you want it to do, and that will add another layer of complexity to your system depending on the communications you want to use.

I would initially like to suggest an idea that could make this project much easier (no programming). Do you have access to an RC style transmitter/receiver? Maybe something like this? Using an RC style controller would allow you to eliminate the mega and just control the speed controllers directly. IIRC, the talons should be able to take a standard servo style input. Just a thought. There may be other better ideas out there, but this happened to come to mind. Would this be a possibility?

Mike
Reply With Quote
  #30   Spotlight this post!  
Unread 06-02-2016, 08:03 PM
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,210
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: swerve drive with arduino mega 2560

Quote:
Originally Posted by Mike Bortfeldt View Post
Becky,

First off, I think this drive system is an great choice for a first swerve system. Having the steering modules linked together, as well as speed, will make things much easier from a control aspect. Because of this, I wouldn't start with any sensors. They are not needed to be able to drive around, and for someone relatively new to programming, this will make things much easier. I would use a two axis joystick model, where the forward/backwards motion drives the robot, and the side to side motion controls the speed of turning. Sensors can be added later once you get it driving if you want to have more (or more interesting) control.

As others have said, you will need to be able to generate PWM signals for the speed controllers and the Arduino servo library has that capability. But before we get to that, one important question comes to mind. Have you thought about how you are going to control this? What type of operater station do you have and how will it communicate with the Mega? Wireless? Wired (tethered?) Somehow you will need to get the information to the mega on what you want it to do, and that will add another layer of complexity to your system depending on the communications you want to use.

I would initially like to suggest an idea that could make this project much easier (no programming). Do you have access to an RC style transmitter/receiver? Maybe something like this? Using an RC style controller would allow you to eliminate the mega and just control the speed controllers directly. IIRC, the talons should be able to take a standard servo style input. Just a thought. There may be other better ideas out there, but this happened to come to mind. Would this be a possibility?

Mike
For a swerve drive I would think manipulating motors directly would be difficult. It could be possible with crab drive. However, the Mega has a pulseIn() function one can use to read the PWM coming out of an RC transmitter, so perhaps that could be used instead of a wifi link or something for controls.
__________________
<Now accepting CAD requests and commissions>

Reply With Quote
Reply


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 02:24 PM.

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