Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Asellith on November 30, 2010, 08:18:47 AM

Title: AxonII Error 13?
Post by: Asellith on November 30, 2010, 08:18:47 AM
I had to switch to my trusty Axon1 last night because the AxonII started showing what looks like error 13 on the LED display. Same code worked great on the AxonI I've never used this axonII so I still have not been able to get a program to run on it. Ideas?
Title: Re: AxonII Error 13?
Post by: knossos on November 30, 2010, 04:18:17 PM
Well, if its the exact same code, did you account for the changes in pinout between the Axon I and Axon II?  If you have, try loading one of the default Axon II programs from SoR and see that you can get it to work properly.  Let us know what happens and we'll go from there.
Title: Re: AxonII Error 13?
Post by: Asellith on November 30, 2010, 07:11:15 PM
I'm using webbots library so it a matter of deleting a 2 to change the code to Axon 1 vs axon 2. I am also using the code from the roborealm servo controller code. Should work right out of the box. Did for the axon 1
Title: Re: AxonII Error 13?
Post by: Webbot on December 01, 2010, 09:45:23 PM
If you look at errors.h in WebbotLib you will see that error 13 means that a PWM pin is already in use.

Without knowing more about your code its hard to comment further.
Title: Re: AxonII Error 13?
Post by: Asellith on December 02, 2010, 10:35:09 AM
I'll look over my code again I may have loaded the wrong pin into something. I was just afraid my axonII was dead.
Title: Re: AxonII Error 13?
Post by: Webbot on December 02, 2010, 12:51:48 PM
What you could try is using Project Designer and add in the hardware you are using. If there are any conflicts it should show you what/where they are.
Whether you then use Project Designer to generate the project code or not is up to you.
Title: Re: AxonII Error 13?
Post by: Asellith on December 02, 2010, 03:39:17 PM
I tried that but I couldn't get the auto generate avr studio button to work. It was greyed out. I was in a hurry that night and didn't sit down to figure out what was wrong. All I wanted was to set a constant rotate servo to a specific speed and be done. I selected Axon2 and added a hardware servo controller to a pin then tried to generate and it wouldn't let me.