Author Topic: Analyzing the Axon series: Coding, Construction, and Contraptions  (Read 20103 times)

0 Members and 1 Guest are viewing this topic.

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
 ;D Hello!  ;D
In this thread, I will explore the Axon MCU series. If you have any questions
about the programming, testing, software, pinouts(ADC, I/O), motor hookups,
or special projects, hopefully, this thread can help you.
When I address a specific topic, I will label the mail at the top of the post,
so when you are looking back through this thread, you can find the subject
you would like to use.
I just received my Axon II today, so the fun now begins.The tutorial section in this forum provides you with information to start.
I will search out documentation of the processor and applications, and work through them in this thread.
Programming, construction, and applications are quite a task, to me,
to integrate, and so, presentation of the "work - through" of projects may benefit everyone.

I will approach the task, first, by working through some projects, and then
by focusing on component coding/construction, where necessary.
Projects to tackle, but will skip around;
<1> Axon II,  - What is this thing, and how can I check it out to make sure it is working?
<2> Axon series - Component coding and construction.
<3> Axon II - Serial Datatrain assimilator
<4> "Star Trek" Tricoder. (hp calculator to Axon)
<5> Axon Mote - What is this thing, and how can I check it out to make sure it is
working?
<6> Axon series - voice commands for the Axon II robot
<7> Axon II & Axon Mote - Building your own droid Army(flying, walking, Etc,.)
If anyone has comments or questions, please jump in. Any information that
you have will help everyone. Thanks for your participation! Let's have fun!  ;D ;D
« Last Edit: April 21, 2015, 06:46:49 AM by mklrobo »

Offline mallster

  • Jr. Member
  • **
  • Posts: 27
  • Helpful? 2
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #1 on: March 23, 2015, 03:08:21 AM »
Hi mklrobo,

Just a suggestion- Maybe Webbot studio would be a good way to document and share your project. As a lot of the heavy lifting is already done.

Look forward to seeing what you can come up with.

Mallster

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Construction, and Contraptions
« Reply #2 on: March 23, 2015, 08:16:47 AM »
 :) Great idea, mallster!
Also, any mechanical drawings that need to be done, I plan to
put them in Inventor autodesk software. The tutorials are good
reference; but, as I look into the forum, I do not see many people
sharing code for their robots, in the Axon series.  It will take awhile
to get to the end project, but it will be fun! (have to save up money too!)
Thanks!  ;D ;D ;D
« Last Edit: April 21, 2015, 06:48:27 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #3 on: March 24, 2015, 10:31:02 AM »
Axon series: What is this thing?
:o Whew! reviewed the datasheet, and, oh my!  :o
Here are some of the features;
Features
• High Performance, Low Power AVR® 8-Bit Microcontroller
• Advanced RISC Architecture
– 135 Powerful Instructions – Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16 MIPS Throughput at 16 MHz
– On-Chip 2-cycle Multiplier
• Non-volatile Program and Data Memories
– 64K/128K/256K Bytes of In-System Self-Programmable Flash
Endurance: 10,000 Write/Erase Cycles
– Optional Boot Code Section with Independent Lock Bits
In-System Programming by On-chip Boot Program
True Read-While-Write Operation
– 4K Bytes EEPROM
Endurance: 100,000 Write/Erase Cycles
– 8K Bytes Internal SRAM
– Up to 64K Bytes Optional External Memory Space
– Programming Lock for Software Security
• Peripheral Features
– Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode
– Four 16-bit Timer/Counter with Separate Prescaler, Compare- and Capture Mode
– Real Time Counter with Separate Oscillator
– Four 8-bit PWM Channels
– Six/Twelve PWM Channels with Programmable Resolution from 2 to 16 Bits
(ATmega1281/2561, ATmega640/1280/2560)
– Output Compare Modulator
– 8/16-channel, 10-bit ADC
– Two/Four Programmable Serial USART (ATmega1281/2561,ATmega640/1280/2560)
– Master/Slave SPI Serial Interface
– Byte Oriented 2-wire Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator
– Interrupt and Wake-up on Pin Change
• I/O and Packages
– 51/86 Programmable I/O Lines (ATmega1281/2561, ATmega640/1280/2560)
– 100-lead (ATmega640/1280/2560)
A lot of features on the chip. Does the endurance feature mean that I can only program it 10,000 times? ???
Anyway, I also reviewed the programs involved with it, and it is all in
C language. Specific sensors commands are encased in header files, in which
you have to have in order to control I/O from the sensor. I downloaded
AVR Studio, and that has the datasheet in the help section, with all the other
products in that MCU line.
I have been spoiled by programming the Parallax propeller, in which I could
immediately start programming, and enjoy the accessories.
In the Axon series, I will have to find the commands allowed in building
the code, along with getting copies of the header files, in order to learn
how they are called. I have found some demo code, which is in C, but have
to find out exactly how they are used, in order to use them in my programs.
Accessing a single pin, seems to be linked to a port, in which is programmed
in bytes.(?) I would like to take advantage of the on-board features of
the chip, but have to find the commands to do so.
WHEN I find the commands, I will write a simple C code to turn on each
I/O pin, in sequence, in order to make sure the pin works. The analog
inputs will have to be treated differently, because they are not regular
I/O ports, but take voltage and convert it to a byte translation.
Whew!   ::)

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #4 on: March 24, 2015, 12:48:35 PM »
Axon Series: What is this thing?
One of the features of the Axon is the Output Compare Modulator. From the
description, it can take a main frequency and modulate it with another
frequency. This feature could make a great AM radio transmitter/reciever.
If the PWM could be used like this, might be able to produce FM reciever/transmitter.
This could be done from the MCU itself, at 6 meters, alot of ham radio operators
would like that.   ;D ;D
« Last Edit: March 30, 2015, 02:14:45 PM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #5 on: March 25, 2015, 06:12:08 AM »
 Axon II & Axon Mote - Building your own droid Army(flying, walking, Etc,.)
A droid could be made to also be a healthcare companion, in the droid army.
(Got this idea from another thread).  ;D ;D ;D
May also make a good PLC, (programmable logic controller) for small
applications. It might be easier to make the internal programming of a
droid to conform to a PLC format. The ADC inputs are akin to Allen Bradley's "analog" inputs.  Ladder Logic is intuitive and widely
used, so it presents many options, instead of nonstandard free hand
programming.(?) ???
« Last Edit: April 02, 2015, 11:50:26 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #6 on: March 26, 2015, 06:09:08 AM »
Axon series: What is this thing?
When programming, you must have AVR Studio 4 software. This software lets you
program the Axon, and its related MCU product line. It has tools, and user guides to
help in the using of the software. Assembler, is helped to be written by the program;
and for devices. they want your file to end in .def.
I like the software, it appears alot like a KDE C programming enviroment, which is
pretty friendly. The programming is linked to physical icons on the right of  your screen,
which seems to let you address the features of the MCU in a GUI way. Alot of work went into
this program, and it looks like a good program to spend alot of time programming in it.  :)
« Last Edit: March 26, 2015, 06:12:13 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #7 on: March 26, 2015, 09:04:45 AM »
Axon Series: What is this thing?
I tried to build one device file, and found, that when writing a more complex
program, the memory may be used up quickly. I am glad there is 64 K of memory.
The price of the nice GUI platform may be memory. In that case, in more complex
programs, will have to push down more commands into assembly, to save memory.
Alot of support files are used; not sure how much memory that takes, if any.  :-\

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #8 on: March 27, 2015, 12:33:14 PM »
Axon Series: What is this thing?
I was looking for a way to power the Axon II board, and the specs in the
tutorial say 5.35 Volts is minimal, and if it drops below, the MCU resets.
So, I either get a battery, (which I will have to get anyway), or get a
12 volt power supply and attach a regulator to get 6 volts.  ;)
On the board;  8)
Each pin on the I/O bus from the Axon can not supply more that .020 amps, or
20 miliamps to drive a load. The 3.3 Voltage pin on the board can not
deliver more that .073 amps, or 73 milliamps. Since I will be programming
most of the time, I will just make a dedicated box (from Harbor Frieght)
to house the power supply and the Axon II board, plus any boards that
I may need in the future (Axon Mote). Makes things tidy and simple. ;D
« Last Edit: March 27, 2015, 02:53:27 PM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #9 on: March 27, 2015, 04:35:28 PM »
Axon Series: What is this thing?
When you order the Axon II, you get the Axon II, a USB to
mini-usb cable, and a switch with terminal pins connected on
it.(a Society of Robots card, too!  ;D )
I downloaded Webbot library, (have not checked it out yet), :'(
then downloaded the USB connectivity software, the CP210v
USB to UART Bridge Virtual Com Port software. U2 and U0 are on
the upper left corner, three prong pins, while the mini-USB is
on the lower right of the board.
The instructions indicate to download a bootloader.  Found out the
bootloader is for the Axon Mote, not the Axon II.(?) :-\
« Last Edit: March 27, 2015, 06:23:33 PM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #10 on: March 28, 2015, 07:04:53 AM »
Axon Series: What is this thing?
To use the Axon, you definitely need to download the
example library, Axon_WebbotLib_examples. This has all
sorts of code goodies, that allows you to program some of the
motors and sensors that are sold by some of the vendors in
this forum. (plus generic code, too) So, you can acquire these libraries, get the sensor/motor
you want, then start programming!( Not as simple as that, but
llife is a journey.  :P )  Now, I have to figure out the command/programming
structure......... ???
« Last Edit: March 28, 2015, 07:11:09 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #11 on: March 29, 2015, 11:41:33 AM »
Axon series: What is this thing?
While looking through the Webbot Library, I tried to approach a simple
action first, turn on a pin, then turn off. That way, I could always check to
see if the pins worked, and have a practical code "snippet" to use and learn.
The categories found were; Displays, speech (The EasyVR voice control shield could be used to
direct control of the robot in your proximity.),
header files, timers, Uart, buffers,
clock, PID, copy strings and math functions.
Also, I/O pin control, in which the following
example was use to turn on/off ONE pin;

#include "../iopin.h"

/******************************************************

   Set a port pin to high

******************************************************/
void pin_high(const IOPin* io){
   if(io){
      const IOPort* portDef = (const IOPort*)pgm_read_word(&io->port);
      PORT port = pgm_read_word(&portDef->port);
      PORT ddr = pgm_read_word(&portDef->ddr);
      PIN mask = pgm_read_byte(&io->pin);

      // make sure its an output
      if(_SFR_MEM8(ddr) & mask){
         CRITICAL_SECTION{
            // set the bit
            _SFR_MEM8(port) |= mask;
         }
         // Allow any output to be reflected on the input pin
         nop();
      }else{
         setError(PIN_SET_ON_INPUT);
      }
   }
 }

/******************************************************

   Set a port pin to low

******************************************************/
void pin_low(const IOPin* io){
   if(io){
      const IOPort* portDef = (const IOPort*)pgm_read_word(&io->port);
      PORT port = pgm_read_word(&portDef->port);
      PORT ddr = pgm_read_word(&portDef->ddr);
      PIN mask = pgm_read_byte(&io->pin);

      // make sure its an output
      if(_SFR_MEM8(ddr) & mask){
         CRITICAL_SECTION{
            // clear the bit
            _SFR_MEM8(port) &= ~mask;
         }
         // Allow any output to be reflected on the input pin
         nop();
      }else{
         setError(PIN_SET_ON_INPUT);
      }
   }
}

**************************
I do not know about you, but this code, was alot of code for one pin maniputation, for me. There must be an easier way to turn on one pin. ??? (maybe used as an object file for specific functions?)
****
I found this code, which takes a pulse in, and is more my speed... ;D
#include "../iopin.h"
#include "../clock.h"

TICK_COUNT pin_pulseIn(const IOPin* pin, boolean activeHigh){
   TICK_COUNT start;
   TICK_COUNT end;
   TICK_COUNT duration;

   pin_make_input(pin,FALSE);            // Switch pin to INPUT with no pull up
   while(pin_get(pin)==activeHigh);      // Loop until the the pin goes inactive
   while(pin_get(pin)!=activeHigh);      // Loop until the the pin goes active
   start = clockGetus();               // Get the start time
   while(pin_get(pin)==activeHigh);      // Loop until the the pin goes inactive
   end = clockGetus();                  // Get the end time

   duration = end - start;               // Get the duration in uS
   return duration;
}


Now, this is the code I can deal with! ;D I will try to use the simplest code I can to get the basics
working. The header file, iopin.h, may hold all the commands that may let me control the pins.  ;D ;D ;D
« Last Edit: April 01, 2015, 06:32:16 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #12 on: March 30, 2015, 09:27:17 AM »
Axon series: What is this thing?
I am beginning to figure out the AVR Studio 4 front end.  8) To create a program,
you have to do this:
Open a project, and give it a name.
Then, you must select what kind of program, Atmel AVR assembly, or AVR GCC.
( I selected AVR GCC)
The next screen (left part) wants to know what Debug Platform you would like to
use. I chose AVR Simulator. (other selections are AVR II Simulator, AVR dragon, AVR ONE!, etc)
On that screen, to your right, it asks what device you are going to use. I selected
Atmega640, (the Axon II processor).
Once I clicked finish, it took me to at least 4 seperate screens, with a GUI type of interface on the
right, the source access in the middle, error report screen on the bottom, and files used on the left.
I guess, when a program is ran, you can step through the code one level at the time, and see what
registers are used, affected, or otherwise. Still can not locate the iopin.h file.... :'(

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #13 on: March 31, 2015, 11:02:05 AM »
Axon series: What is this thing?
I found a reliable 6 volt power supply, and applied power to the
Axon, via the supply power cord. (Power plugged in at top left of board)
The red power LED on the board came on, with an "8" in the mini LED readout.
(a dot came on too, and stayed on) Now, I just need to program it!  :o Wow!
I found a 6 volt power supply at radio shack, but measured the actual volts out,
and it was 8.5 Volts. Usually, this means that the power supply is poorly regulated.
What that means, is, that the power will drop with load; usually not dropping below the
stated output. However, this is not a good power supply, because if the load changes,
the voltage changes with it, which can cause RF feedback in your circuit,  >:( , and
no one wants that! So, it is back to the drawing board (or electronic board) to work on the
Axon's power supply. :'(
« Last Edit: April 02, 2015, 11:51:25 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #14 on: April 01, 2015, 06:06:04 AM »
Axon series: What is this thing?
 ;D ;D ;D Ya! I found the actual PDF that has descriptions of the
commands that can be used for the Axon II. You must download
the Webbot library, BUT, in the zip file, there is a
PDF file named Webbotlib-Version2.11.pdf. This file
is the one needed, to begin to start to program.(commands)  8)
Could not attach the file, sorry; and still can not find the iopin.h header!
Without this file no pin can be accessed.  :'( :'( :'(
« Last Edit: April 01, 2015, 09:13:32 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #15 on: April 01, 2015, 02:17:38 PM »
 Axon series: What is this thing?
 ;D I found the iopin.h file. (right in front of me! :-[ )
It was in the Webbot download.
Some listed commands are:  8)
void high(void) const { pin_high(m_cstr); };
void low(void) const{ pin_low(m_cstr); };
void toggle(void) const{ pin_toggle(m_cstr); };
void set(boolean val) const{ pin_set(m_cstr,val); };
boolean get(void) const{ return isHigh(); };
boolean isHigh(void)const { return pin_is_high(m_cstr); };
boolean isLow(void)const { return pin_is_low(m_cstr); };
void makeInput(boolean val)const {pin_make_input(m_cstr,val);};
void makeOutput(boolean val)const {pin_make_output(m_cstr,val);};
boolean isInput(void)const { return pin_is_input(m_cstr); };
boolean isOutput(void)const { return pin_is_output(m_cstr); };
TICK_COUNT pulseIn(boolean activeHigh)const {return pin_pulseIn(m_cstr,activeHigh);};
void pulseOut(TICK_COUNT us, boolean activeHigh)const {return pin_pulseOut(m_cstr,us,activeHigh);};

Brief descriptions of what each function does, is included next to the command in the header file. Ok, now I can begin to program, and include the proper header files.  ::)
« Last Edit: April 01, 2015, 08:02:48 PM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #16 on: April 02, 2015, 03:04:45 PM »
Axon series: What is this thing?
Tried to download project designer, and integrate
Webbot library. I have no idea of what to do. Searched
the instructions, but I am still lost. The project designer
is a java file(?), so do I run that in AVR Studio? This
may take awhile....... :'( :'( :'(

Offline mallster

  • Jr. Member
  • **
  • Posts: 27
  • Helpful? 2
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #17 on: April 02, 2015, 05:42:26 PM »

Its easiest to download the downloader application and run programs from there.
The one your looking for is webbot studio- its on the bottom of list.


http://webbot.org.uk/iPoint/48.page

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #18 on: April 03, 2015, 05:14:01 AM »
 :) Thanks mallster!
Many blessings be upon you! (hope you win the lottery! ;D )

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #19 on: April 03, 2015, 09:17:33 PM »
Axon Series: What is this thing?
I downloaded the Webbot project designer and associated
files, but they are in Java. This requires a java package in your
computer to be able to install the packages.(like a zip file)
I have not done this before, and could not find a link until I
looked at Blackfin project. I think I found the link to be able to
install the Java package installer.  :P

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #20 on: April 03, 2015, 09:39:21 PM »
Axon series: What is this thing?
 ;D Ya! Downloaded the Java development tools, which has the
Oracle mission console, and is Java 1.8.0 version. You have to have
this installed, or you can not install or run the Webbot studio or project
designer. There are versions listed for Linux and Mac platforms at the
download site, which I found in the Blackfin page. Now, I can try to
program the axon, and proceed.

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #21 on: April 06, 2015, 05:23:34 AM »
Axon series: What is this thing?
Got the Project Designer to work; opened up the projects, could not find any,
so started a new one. Voila!  ;D a pretty picture of the board comes up in the
right frame of my screen. As I select any pin on the left, in a spreadsheet type
format, the associated pin that was selected blinks on the picture on the right.
(so I know which pin I am using, I think) There are several variables next to
the spreadsheet pin selection, and I guess, they are avaliable features for
that particular pin.( ??? ) Could not generate any code; do not know how to use this
at this time. working on it....  8)

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #22 on: April 07, 2015, 05:03:10 AM »
Axon series: What is this thing?
Using the Webbot PDF instructions, Project Designer, and the Datasheet of
the Axon II, I have tried to patch together what exactly
the program is doing, when it creates the source program.
When running the Project Designer, the variables in the spreadsheet
on the left, seem to be the options available to program that
particular pin. When you program in the software, the options that
you selected are updated to the control register for that pin.(?) ???
The question is, can the header files for the Webbot software be used for
the AVR Studio? I could not find the header files for AVR Studio, so
where are the header files that are needed, or do I transfer the
Webbot headers to the needed files for AVR Studio?

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #23 on: April 07, 2015, 05:16:12 AM »
 Axon II & Axon Mote - Building your own droid Army(flying, walking, Etc,.) I was watching the new science fiction movie, Interstellar; but also
remembering the movie, Silent Running, with Huey, Duey, and Louey. (Robots) One possible purpose for the droid army, is to maintain a garden. I was thinking about the Army maintaining a garden in my back yard, and maintaining an aquaponics system that I would have. The Axon could be used to navigate/control a farms combines, or tractors.
« Last Edit: April 08, 2015, 04:29:30 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #24 on: April 07, 2015, 05:22:40 AM »
Axon series - Component coding and construction.
Recently talked to a friend, and his Clothes Washer had stopped working.
The control to the Washing Machine had gone out, and the cost of it is
about $300 - $400 dollars. I am wondering if the Axon II or Axon could be
used to replace the control
. It would be a whole lot less expensive, and
work forever, notwithstanding the replacements of the motor and sensors.
Relays would power the motors/devices, while the selections would be inputs
to the Axon. What do you think?

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #25 on: April 08, 2015, 05:25:26 AM »
Axon II & Axon Mote - Building your own droid Army(flying, walking, Etc,.) 
I had been working on this objective, as a personal project, for 15 years, on
and off. I would build the "droid" from the nuclear heart, to the collective
consciousness. I coded the heart of a "droid" , as a trinity; the commander,
the recorder, and the Ex-O. 256 droids would inhabit a sector on a hard drive, working together.
1/2 of the droids were the work force, their "minds" in habiting droid bodies, while their "soul" was on the hard drive. This way, if a droid body was destroyed, another body was activated, and
took over the work that the other body was doing. This way, no work
data was lost, nor the "droid" destroyed. Another 1/4 of the "droids" were the Dr.'s, monitoring and surveying the
working robots, repairing any problems that arose.
The last 1/4 of the "droids" are running the mission in a simulator. They
make sure the rest of the droids are following their mission. They also report
to the "collective" other disks, to join in on what the total collective is doing.
If any parts of the mission of the working "droids" are jeopardized, the
problem is reported to the collective, and a problem solution is generated.
Using this method, an infinity amount of "droids" would be generated to
solve the problem, assuming the hardware is available. I learned something
incredible while working on this; a single AI can be in several bodies at one time, relative to us.
If that were you, you would be like the Superhero, the Flash, because almost several places at once!
(Like a scheduler in the Linux Kernel) Simply put, it is like multiplying yourself, and your work potential.  8)
« Last Edit: April 08, 2015, 06:26:55 AM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #26 on: April 08, 2015, 10:46:30 AM »
Axon series: What is this thing?
Finally got the program described in the tutorials to come up in
AVR Studio 4.  :o WOW!  :o ! This is going to take some explanation.
You open Project Designer to designate the resources that you want your
pins to control. THEN, you create a project with the parameters that you
specified in Designer software, name it and put it in a folder, specific to
that program. THEN, you make sure all your header files are accessible
very close to the directory that you just put your project in, if not in the
folder itself. DO NOT mix up any other project in that folder, or evil will
befall you. NOW, open up AVR Studio, and open that project you just made, in the directory you just put it in. Project designer collected all the files and sources/header you will need, based on the
specifications that you selected in the Project designer software.
When you bring up the project file (has a ladybug picture on it, an APS file)
you will be able to bring up all the files.(located on the left hand side screen)
In my case, the "hello world" code that the tutorial tells you to make, was
already in the main file that was intended for the user to program. The files
that were generated by Webbot were not intended to be
modified by the user, and so, I will go by that directive.......
Whew!  :P ! Now, I will proceed to run the tutorial, and then go to making a
program to control the pins!   ;D ;D ;D ;D ;D
« Last Edit: April 08, 2015, 12:02:23 PM by mklrobo »

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #27 on: April 08, 2015, 11:02:10 AM »
Axon series: What is this thing?
I hope I have helped answer some questions; ??? unless I am
the only person in the world who has not programmed this
thing yet.  :-[  If anyone has any questions, I will try to answer them
the best I can..... 8) 8) 8)

Offline mallster

  • Jr. Member
  • **
  • Posts: 27
  • Helpful? 2
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #28 on: April 09, 2015, 04:40:46 AM »
Hi mklrobo,

You know you can just flash from webbot studio and add your own header and program files aswell ;)

I flash mine using avrII programmer but i'm sure there is a usb option also.

 

Offline mklroboTopic starter

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Analyzing the Axon series: Coding, Contruction, and Contraptions
« Reply #29 on: April 09, 2015, 10:00:41 AM »
 :o Wow !
I did not know that I had to flash the Axon every time I program it, or that I would
need a seperate unit, just to program the Axon. I was under the impression that I
could program it from the PC, with the USB cable. I will try to program it from AVR Studio
from the PC. Reflashing the Axon every time I program it will be VERY tedious. Mainly
because, my code may compile with no error, but that does not mean the
applied system will work like I thought it would. That is why I will have to reporgram the
Axon ALOT. If I had a dedicated system to use it in, like a washing machine controller,
then that would be an acceptable application. I will be dissapointed, if I have to do
the flashing every time I reprogram.  :'( I never had to do this with the Propeller made
by Parallax.  ::)

 


data_list