Direct Programming to the Create

19 replies [Last post]
amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 6 years 15 weeks ago.

So for downloading...

What kind of cables do I use? Or what's some other information that might come in handy?

-amehta (Andrew Mehta)

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 8 years 1 week ago.

You have two choices. 1: You can download your code to a CBC (as normal), and connect the CBC to the Create using the standard cable. This is what I recommend. 2: You can use the "This Machine" target in KISS-IDE, and directly download to the Create. Elena Nadolinski used this method, and she can probably tell you more about it if you wish.

The reason I prefer method 1 is that if your Create loses power, the script is wiped, and method 1 will allow you to reload the script at the game table with a CBC. (Otherwise you might need to use a Timeout card.)

As an aside, you can also use an XBC instead of a CBC. That's what my papers cover, but this is now outdated. If you can't figure out how to make my papers' explanation work with a CBC, an XBC will be easier. (This assumes that you have an XBC lying around; they're becoming quite rare.) Either a CBC or an XBC is permitted under KIPR's rules, since it's considered a setup tool and not part of your entry. My library that I'm publishing at GCER will use the CBC.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 6 years 15 weeks ago.

So how is the program saved onto the Create then?

-amehta (Andrew Mehta)

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 8 years 1 week ago.

The script just sits in the Create's RAM (either the conventional script buffer or the serial input buffer). It doesn't get saved to flash or anything.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 6 years 15 weeks ago.

So do you just unplug the CBC right before gameplay?

-amehta (Andrew Mehta)

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 8 years 1 week ago.

Yep. Load the script from the CBC to the Create, unplug the CBC from the Create, and you're good to go.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

amehta
Title: NooBot
Joined: 07/18/2011
Posts:
BotPoints: 136
User offline. Last seen 6 years 15 weeks ago.

Ok thanks.

-amehta (Andrew Mehta)

AdamF
Title: MiniBot+
Joined: 03/17/2010
Posts:
BotPoints: 62
User offline. Last seen 10 years 2 weeks ago.

You should know that it's entirely possibly to just transfer the bytecode to the create directly from your computer, without the middleman cbc. Use any serial transfer program (I like realterm). I wrote a really crappy IDE for the standalone create one year, might post that instead of letting it rot on one of my old hard drives.

Adam Farabaugh
Hampton High School

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 8 years 1 week ago.

Yep, I mentioned that Elena had done that. As I stated in my previous post, relying on a PC instead of a CBC makes it harder to reload programs in an emergency, and this can be a problem since Create scripts are wiped both on reboot and after the script executes once. What happens when your robots have a false start and you need your Create to do its script a 2nd time? If you need a PC, you're in trouble.

That said, it'd be cool to see the code you have, even if it's not strictly ideal for Botball purposes. It'd make a cool GCER paper too.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS