Author Topic: Axon Questions  (Read 2537 times)

0 Members and 1 Guest are viewing this topic.

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Axon Questions
« on: January 06, 2009, 01:44:29 PM »
I just got my axon and I have a few questions.

1. With the provided photovore code, which ports do I plug the photoresistors and servos into?
2. How do I upload the provided pre-compiled code?
3. When I bootload do I automatically overwrite the previous code?
« Last Edit: January 06, 2009, 01:47:33 PM by Jdog »

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: Axon Questions
« Reply #1 on: January 06, 2009, 04:17:08 PM »
1. Dig around the hardware.c and the SoR_Utils files, somewhere it will mention PORTE , 2 or something which means E2 on the Axon.
2. Follow the instructions on the Axon page, step by step instructions on how to upload code.
http://www.societyofrobots.com/axon/axon_getting_started_bootloader.shtml
3. Yes

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Re: Axon Questions
« Reply #2 on: January 06, 2009, 05:43:17 PM »
For number 2, I mean the hex files he gives you.
Also the code does not say what ports to plug the sensors into. I'm using http://www.societyofrobots.com/axon/downloads/Axon_Source_070408.zip
Thank you very much for your answers.
« Last Edit: January 06, 2009, 05:56:51 PM by Jdog »

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: Axon Questions
« Reply #3 on: January 06, 2009, 06:29:18 PM »
I found the sensors in control.c
Code: [Select]
void update_sensors(void)
{
sensor_right=a2dConvert8bit(2)+auto_calib_R;
sensor_left=a2dConvert8bit(14)+auto_calib_L;//right sensor is off, so I fudged it . . . mmmmm fudge!
}

So the right sensor goes into the ADC port marked 2 and the left one goes in the ADC port marked 14.

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Re: Axon Questions
« Reply #4 on: January 07, 2009, 01:42:10 PM »
Ok, thank you.

Offline ambcorp2000

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: Axon Questions
« Reply #5 on: September 07, 2011, 06:13:35 PM »
For those of us who do not wish to dig into codes (as yet), the left servo goes on port marked E6 (on the left of the board), right servo on C7(on the right just over the 3 pin horizontal connector), Left LDR (also called photocell) goes on 14 and right LDR goes on 2 both on the top but swapped in terms of orientation.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,658
  • Helpful? 169
    • Society of Robots
Re: Axon Questions
« Reply #6 on: September 18, 2011, 06:32:47 AM »
Just a side note, I strongly recommend using WebbotLib now (see Axon Mote getting started tutorial for general instructions). I plan to redo the Axon tutorial in a few weeks, once I settle down from my travels.

 


Get Your Ad Here

data_list