|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: swerve drive with arduino mega 2560
blob:https%3A//mail.google.com/6927b9bd-8c0e-4b71-91b0-fd0a0535bec7
here it is |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
Re: swerve drive with arduino mega 2560
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
||||
|
||||
|
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? |
|
#8
|
||||
|
||||
|
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.
|
|
#9
|
||||
|
||||
|
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 |
|
#10
|
||||
|
||||
|
Re: swerve drive with arduino mega 2560
i don't think so. im not sure how
|
|
#11
|
||||
|
||||
|
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. |
|
#12
|
||||
|
||||
|
Re: swerve drive with arduino mega 2560
i tried the one called blink and it seemed to work
|
|
#13
|
||||
|
||||
|
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
|
|
#14
|
||||
|
||||
|
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. |
|
#15
|
|||||
|
|||||
|
Re: swerve drive with arduino mega 2560
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?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|