Go to Post A lot of students decribe FIRST as the best thing that happened to their life. Once a student gets hooked, they don't want to leave FIRST for any cause. I am one of them. - Arefin Bari [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
  #1   Spotlight this post!  
Unread 31-05-2016, 11:38
frcguy's Avatar
frcguy frcguy is offline
Unregistered Unuser
AKA: Nicholas Dal Porto
FRC #5940 (B.R.E.A.D.)
Team Role: Tactician
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Burlingame, California
Posts: 862
frcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond repute
Quote:
Originally Posted by ajlapp View Post
I'm not sure why you would have to do "burn bootloader." Arduino boards come hot out of the gate ready to go.



Under "tools->board" make sure you have the correct Arduino hardware selected. Then check that you have the correct "com" port selected.



Then press the upload arrow and you should be running code. Test this with the supplied examples before trying to upload your own custom code.


+1. It looks to me like they may be saving their compiled code as a .hex file and flashing it to the Arduino. OP, you should try uploading code with the Arduino IDE.
__________________


2016: Team 5940 (Silicon Valley Regional Rookie All-Star and Quarterfinalist, Curie Quarterfinalist)

Volunteer: 2016 (Chezy Champs Field Reset, Capital City Classic FTA, MadTown ThrowDown FTA)
Reply With Quote
  #2   Spotlight this post!  
Unread 31-05-2016, 11:42
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

Agreed.

The whole point of an Arduino is to be "foolproof." Start with using their supplied tool and examples to make sure everything is working as expected...then try your custom config.
__________________
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
  #3   Spotlight this post!  
Unread 31-05-2016, 21:30
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

Hi Becky,

I just ran through an installation of the Arduino software (I needed to upgrade anyway) and downloaded to a Mega and will list the steps that I went through to get it to work (there may be other ways, this is just what I used). Most of this is just a repeat of what others have said above.

1) Open a new sketch and cut/paste the Blink code example that can be found here near the bottom of the page. This is just to have a known good sketch to test.
2) In the menu item Tools->Board select "Arduino/Genuino Mega or Mega 2560"
3) In the menu item Tools->Programmer select "AVR ISP"
4) Verify your code by clicking on the left hand button with a Check Mark in it just below the menu items (The word "Verify" should display to the right of the buttons when you hover your mouse over it). It should return some messages at the bottom if the IDE indicating how large the sketch is and global variable use.
5) Plug in your Mega if you haven't already done so.
6) In the menu item Tools->Port, select the your Mega. Mine was labeled "COM3 (Arduino/Genuino Mega or Mega 2560)". Yours may have a different COM number.
7) Upload to the Mega the Blink program by pressing the right arrow button next to the verify button you used earlier. To the right of the buttons it should show the word "Upload" when you hover over it with your mouse. After a few seconds a message indicating "Done uploading." should be shown below your sketch and above the message area it it worked correctly. Also, the led on the mega (yellow on mine) will be blinking at 1 second intervals.

This worked on mine. If this works for you, then you should be able to upload your own sketch, but you may have to change the Board, Programmer & Port again (Steps 2,3 & 6) after you open your sketch. If this doesn't work, if you can post any error messages you are seeing, that would help us identify the problem.

Mike

Last edited by Mike Bortfeldt : 31-05-2016 at 21:32. Reason: Corrected a couple of words
Reply With Quote
  #4   Spotlight this post!  
Unread 01-06-2016, 11:36
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 is working now, but I still don't know how to code more than in extremely basic python, so im not sure what to do. ill post a picture of the whole thing in a few minutes in case that is helpful. the code is empty as of right now.
__________________
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
  #5   Spotlight this post!  
Unread 01-06-2016, 11:39
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

blob:https%3A//mail.google.com/6927b9bd-8c0e-4b71-91b0-fd0a0535bec7

here it is
__________________
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
  #6   Spotlight this post!  
Unread 01-06-2016, 14:31
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

The URL doesn't seem to work for me. Can you try to post the picture or copy it to some other location?

Mike
Reply With Quote
  #7   Spotlight this post!  
Unread 01-06-2016, 18:19
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,220
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
  #8   Spotlight this post!  
Unread 02-06-2016, 11:21
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
  #9   Spotlight this post!  
Unread 02-06-2016, 11:31
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
  #10   Spotlight this post!  
Unread 02-06-2016, 11:38
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
  #11   Spotlight this post!  
Unread 02-06-2016, 11:43
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
  #12   Spotlight this post!  
Unread 02-06-2016, 11:47
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
  #13   Spotlight this post!  
Unread 02-06-2016, 11:49
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
  #14   Spotlight this post!  
Unread 02-06-2016, 12:21
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
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 14:34.

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