Go to Post The Manual is your friend. Read it. Know it. Use it. - dlavery [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 06-06-2015, 23:44
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
Building a RogueBot!

First off, my Friend Tim and I are trying to start a little mini local competition called RogueBotix, the emphasis is not spending much money. Now that thats out of the way...

It is controlled by and arduino and a ethernet shield using ArduRIO which is a piece of software I wrote to replace a roboRIO with an arduino, I will be releasing eventually.We are using Jaguars controlled with can for running our motors. The motors are neverest ftc motors, and the wheels are vex pro 8 inch omni wheels.

The last 2 days we have been hard at work,here are some pictures of the build.
Attached Thumbnails
Click image for larger version

Name:	1.JPG
Views:	288
Size:	287.6 KB
ID:	19103  Click image for larger version

Name:	3.JPG
Views:	134
Size:	299.5 KB
ID:	19104  Click image for larger version

Name:	4-min.jpg
Views:	135
Size:	1.20 MB
ID:	19105  Click image for larger version

Name:	6-min.jpg
Views:	131
Size:	1.40 MB
ID:	19106  Click image for larger version

Name:	9.JPG
Views:	391
Size:	328.9 KB
ID:	19107  

__________________
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/

Last edited by teslalab2 : 07-06-2015 at 00:06.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-06-2015, 23:57
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liaison
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 83
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: Building a RogueBot!

ArduRIO sounds like a very helpful piece of software which will make creating small cheap robots or restoring old FRC robots a much cheaper and easier experience! I look forward to when you release it!

Back on topic to your RogueBot, it's always interesting to see what interesting robots people can build while trying to keep it cheap; yours is looking quite nice! I can't wait to see it in action!
Reply With Quote
  #3   Spotlight this post!  
Unread 07-06-2015, 00:04
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: Building a RogueBot!

https://www.youtube.com/watch?v=AHzs...ature=youtu.be

here is a quick video of it just driving forward. The cheap chinese knock off Ethernet shield I bought malfunctioned and went babbling idiot mode, so I cant do teli-op until a new one arrives.
__________________
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/
Reply With Quote
  #4   Spotlight this post!  
Unread 08-06-2015, 10:02
GreyingJay GreyingJay is offline
Robonut
AKA: Mr. Lam
FRC #2706 (Merge Robotics)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ottawa, Canada
Posts: 783
GreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond repute
Re: Building a RogueBot!

Yes, I'd be very interested in ArduRio too, it would be a great prototyping tool for creating hardware that is "drop in ready" for a real RoboRio since most teams probably own only one or two of those.
__________________
"If I'm going to mentor someone, I'm going to be involved in their life as a positive force." -Mechvet
Reply With Quote
  #5   Spotlight this post!  
Unread 08-06-2015, 11:07
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,068
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Building a RogueBot!

Quote:
Originally Posted by teslalab2 View Post
https://www.youtube.com/watch?v=AHzs...ature=youtu.be

here is a quick video of it just driving forward. The cheap chinese knock off Ethernet shield I bought malfunctioned and went babbling idiot mode, so I cant do teli-op until a new one arrives.
Please please please put some breakers on this thing. From what I can see you have two bus bars mounted on a 2x4. Screams fire to me.

Main Breaker: http://www.amazon.com/Xscorpion-CB15...SM5VW8KHEY 1W

http://www.amazon.com/gp/product/B00...p age_o01_s01 For each branch

It'll take the self resetting FRC fuses, if you don't have those handy, buy some fuses - they won't reset but it'll at least cut current should something happen. http://www.amazon.com/Cal-Hawk-120-F...N0F30C9C5X 9B


Please spend the $30, just the peace of mind is worth it...


Sorry to be a wet blanket on this, it looks like a good project but I'd really like to not hear when it catches fire.
__________________




.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-06-2015, 12:07
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: Building a RogueBot!

Quote:
Originally Posted by Andrew Schreiber View Post
Please please please put some breakers on this thing. From what I can see you have two bus bars mounted on a 2x4. Screams fire to me.

[snip]

Please spend the $30, just the peace of mind is worth it...

Sorry to be a wet blanket on this, it looks like a good project but I'd really like to not hear when it catches fire.
Listen to this, a normal FRC battery will have ~800kJ of energy. That's equivlient to a 160kg mass moving at 100m/s (someone check my physics please). You don't want to lose control of that. (Check out videos of spanners flying when shorted accross batteries)

Also, are you using what looks like an AC light switch? Please check that this switch is rated for a reasonable DC current/voltage. DC dosen't have regular "zero-crossings" which makes it more prone to arcing on disconect. I've seen cases where 240VAC switches have fused closed when used with 12VDC. If this is your only disconect point, you may end up with no good way to disconect the battery if you get fault currents (short circuits).

OT: Looks great. Please post a copy of your software if you get a chance, I'd be interested in taking a look.
__________________
Tim W
FIRST® Team 3132 - The Thunder Down Under
Sydney, Australia
Website | Facebook | Youtube
Reply With Quote
  #7   Spotlight this post!  
Unread 08-06-2015, 19:30
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: Building a RogueBot!

Not to worry ya people There is a 20 amp fuse in series with the switch under the switch in the box. and btw you'd be surprised what a light switch can take... I used a light switch to shut off the power supply for my capacitor bank before it fires, the power supply is 4 microwave oven transformers which draw roughly 12amp a piece, and the switch never failed, even after a lot of use. But I understand your cringing and concern for safety.
__________________
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/

Last edited by teslalab2 : 09-06-2015 at 18:44.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-06-2015, 12:45
evanperryg's Avatar
evanperryg evanperryg is offline
IT'S THE BUMP N' DUMP
AKA: Evan Grove
FRC #4536 (The Minutebots)
Team Role: Mentor
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Minneapolis, MN
Posts: 657
evanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond repute
Re: Building a RogueBot!

Quote:
Originally Posted by teslalab2 View Post
Not to worry ya people There is a 20 amp fuse in series with the switch under the switch in the box. and btw you'd be surprised what a light switch can take... I used a light switch to shut off the power supply for my capacitor bank before it fires, the power supply is 4 microwave oven transformers in series which draw roughly 12amp a piece, and the switch never failed, even after a lot of use. But I understand your cringing and concern for safety.
christ... do you have video of that? I've been working off and on (no pun intended) on a capacitor bank of my own, and I'd be interested to see how yours is set up.
__________________
FRCDesigns Contributor | "There is only one corner of the universe you can be certain of improving, and that's your own self." -Aldous Huxley
2012-2016 | FRC Team 2338: Gear it Forward
2013
Wisconsin Regional Winner 2014 Midwest Regional Finalist 2015 Midwest Regional Chairman's Award, Finalist, Archimedes Division Champion, IRI Semifinalist 2016 Midwest Regional Chairman's Award, Finalist, Archimedes Division Gracious Professionalism Award, R2OC Winner
2015 | FTC Team 10266: Mach Speed
2015
Highland Park Qualifier Winner, Motivate Award
2017-???? | FRC Team 4536: The Minutebots

Thanks to the alliances and friends I've made along the way: 33 74 107 111 167 171 234 548 1023 1089 1323 1625 1675 1732 1756 2064 2077 2122 2202 2358 2451 2512 2826 3936 3996 4039 4085 4241 5006 5401 5568 5847 5934
Reply With Quote
  #9   Spotlight this post!  
Unread 09-06-2015, 18:45
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: Building a RogueBot!

Quote:
Originally Posted by evanperryg View Post
christ... do you have video of that? I've been working off and on (no pun intended) on a capacitor bank of my own, and I'd be interested to see how yours is set up.
I'll PM it too you.
__________________
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/
Reply With Quote
  #10   Spotlight this post!  
Unread 13-06-2015, 01:15
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: Building a RogueBot!

HERE WE GO!!! A video of it finally driving teli-operatedly https://www.youtube.com/watch?v=dZdm...ature=youtu.be

next im gonna add a gyro for driver centric control, as well as maybe run the jags in speed mode and use the built in encoders on the wheels. cheers m8's
__________________
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/
Reply With Quote
  #11   Spotlight this post!  
Unread 13-06-2015, 08:39
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: Building a RogueBot!

You're running the Jags on CAN?

Would you mind sharing that code, I'd be very interested...
__________________
Tim W
FIRST® Team 3132 - The Thunder Down Under
Sydney, Australia
Website | Facebook | Youtube
Reply With Quote
  #12   Spotlight this post!  
Unread 13-06-2015, 09:07
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: Building a RogueBot!

Quote:
Originally Posted by timytamy View Post
You're running the Jags on CAN?

Would you mind sharing that code, I'd be very interested...

Of course! It's all going to be released with arduRIO. the arduino is not actually generating the can, its generating TTL, then I built a simple little circuit board to convert TTL to Uart, Then the first jaguar which must be a black jaguar is used as a Uart to can bridge. right now the canjag library I wrote is a mess and only fully supports voltage mode, I'm working on Vcomp mode right now, but I have some kinks to work out with scaling the values correctly. all in good time, hard to find time to write code when you work 10 hour days!

here is a little preview, I reverse engineered BDC-COMM to figure out how this works.

Code:
#include <CanJaguar.h>
#include "Arduino.h"
#include <SoftwareSerial.h>
SoftwareSerial canserial(2,3);
CanJaguar::CanJaguar(int rx,int tx){
}
//SoftwareSerial canserial(10,11);//rx,tx
void CanJaguar::Initialize(void){
vmode = false;
vcmode = false;
cmode = false;
smode = false;
pmode = false;
canserial.begin(115200);
}

void vcompenable(int id){ 
    byte message[] = {0xFF,0x04,id,0x08,0x02,0x02};
 canserial.write(message,sizeof(message));
}
void venable(int id){ 
    byte message[] = {0xFF,0x04,id,0x00,0x02,0x02};
 canserial.write(message,sizeof(message));
}

void encodebytes(float val,int data[]){
   int integer = (int)val;
   float decimal = val - integer;
   int numofdata = 0;
    if(decimal == 0xFF){
         data[numofdata++] = 0xFE;
         data[numofdata++] = 0xFE;
        }
            else if(decimal == 0xFE){
         data[numofdata++] = 0xFE;
         data[numofdata++] = 0xFD;
            }
                else{
                data[numofdata++] = decimal;
                }
        
        if(integer == 0xFF){
         data[numofdata++] = 0xFE;
         data[numofdata++] = 0xFE;
        }
            else if(integer == 0xFE){
         data[numofdata++] = 0xFE;
         data[numofdata++] = 0xFD;
            }
                else{
                data[numofdata++] = integer;
                }
    }
    
void CanJaguar::SetVoltage(int id,float value){
    if(!vmode){venable(id);vcmode=false;vmode=true;cmode=false;smode=false;pmode=false;}
    int stuff =  value*127.5;
    power = (stuff & 0xFFFF) | stuff << 8;          
    int data[3] = {0};  
    encodebytes(power,data);
    byte message[] = {0xFF,0x06,0x80+id,0x00,0x02,0x02,data[0],data[1],data[2],data[3]};  
 canserial.write(message,sizeof(message));
}

void CanJaguar::SetVcomp(int id,float value){
    if(!vcmode){vcompenable(id);vcmode=true;vmode=false;cmode=false;smode=false;pmode=false;}
    int stuff =  value;
    power = (stuff & 0xFFFF) | stuff << 16; //the first value converts the int, the second converts the float, serperate to 2 differnt values
        if(value < 0){ //also should be stuff&0xff
        power = 0xFFFF - power;
        }
    int data[3] = {0};  
    encodebytes(power,data);  
    byte message[] = {0xFF,0x06,0x80+id,0x08,0x02,0x02,0xfe,0xfe,0xfe,0xfe};// neg values subtraced from max end

 canserial.write(message,sizeof(message));
}
__________________
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/

Last edited by teslalab2 : 13-06-2015 at 09:18.
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 11:28.

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