Society of Robots - Robot Forum

Software => Software => Topic started by: soninja8 on April 18, 2012, 07:27:13 PM

Title: Sonar Upgrade for $50 Robot
Post by: soninja8 on April 18, 2012, 07:27:13 PM
Hi, I was wondering if anyone had the completed HEX file for the sonar upgrade for the $50 robot. I would try and add the coding into the original files myself, but it is too confusing right now. So if anyone had a complete HEX file with all the code for the $50 robot and sonar upgrade, I would be very  :)

Soninja8
Title: Re: Sonar Upgrade for $50 Robot
Post by: Admin on April 20, 2012, 01:27:12 AM
I highly encourage you to swap over to WebbotLib - my old code is seriously outdated. In the Project Designer menu, just choose $50 Robot. Then on the left drop down menus, look for the sonar and drag-n-drop.

The instructions are the same as for the Axon:
http://www.societyofrobots.com/axon/axon_getting_started_software.shtml (http://www.societyofrobots.com/axon/axon_getting_started_software.shtml)
Title: Re: Sonar Upgrade for $50 Robot
Post by: soninja8 on April 20, 2012, 03:33:00 PM
I appreciate the help Admin! But, I am still confused on what to do after dragging stuff in...im not that good at programming yet...
Title: Re: Sonar Upgrade for $50 Robot
Post by: Admin on April 20, 2012, 09:37:39 PM
I appreciate the help Admin! But, I am still confused on what to do after dragging stuff in...im not that good at programming yet...
Just follow the written instructions.

After you drag it in, you select the I/O pins you want to use - although it'll automagically chose some for you that will most likely work anyway.

You then tell it to generate, and it will create all the code and files for you.

Open up the folder and then double click the AVR Studio project file it made.

It will then have all the *working* sample code you need, of which you can play around with until you really understand it.