Society of Robots - Robot Forum
Electronics => Electronics => Topic started 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?
-
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.
-
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
-
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.
-
I'll look over my code again I may have loaded the wrong pin into something. I was just afraid my axonII was dead.
-
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.
-
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.