Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re: 1000 booleans? on: October 21, 2009, 01:27:40 pm
if it is possible i would love to know how. it would make life so much easier for me.

2  Forum 2005-2010 (read only) / Troubleshooting / Re: 1000 booleans? on: October 19, 2009, 11:45:15 am
Quote
The character thing seems like a good idea. I'm using this to record input from an IR remote and play them back later.

Quote
i would like to point to this:
http://www.arduino.cc/en/Reference/PROGMEM
(just for completeness)...

-arne

You can change the stuff store in the PROGMEM at runtime. Cool tell me how so i can do it.
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: Passing multipul arrays on: October 06, 2009, 11:06:01 am
that will work for me. now if i can get the arduino IDE to stop  crashing when i try to compile my Inverse Kinematics port i am good.
4  Forum 2005-2010 (read only) / Syntax & Programs / Passing multipul arrays on: October 03, 2009, 12:39:20 pm
I am trying to get this function right.
 I have an set of array's each with 33 numbers. I want pass a different of amount of arrays to a function to process them.

this is what i am doing now:
Code:
void actionscript2s(int arrayH[], int array1[],int array2[], int repeat){
 
  int i = 0;
  int temp = 0;

   for (int x = 0;  x < repeat; x++){
    
  
    for (i = 0; i < servocount; i++)
    {
        Serial.print(" #");
        Serial.print(i);
        Serial.print(" P");
        
        temp = (array1[i]+arrayH[i]);
        Serial.print(temp);    
      }
        finishoutput((array1[servocount]));
        delay((array1[servocount]));
  
    for (i = 0; i < servocount; i++)
    {
        Serial.print(" #");
        Serial.print(i);
        Serial.print(" P");
        
        temp = (array2[i]+arrayH[i]);
        Serial.print(temp);
        
    }
       finishoutput((array1[servocount]));
       delay((array1[servocount]));  
  }
}

its for my octobot. I want to save some space and rewrite to be able to pass any number of arrays to and it have it process them x times

any help would be awesome.
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Do anybody ever managed to interface a PS2 joypad? on: October 19, 2009, 11:15:40 am
in the first post are some links they show the wiring layout.

I used the GPSX library and it worked for me and i just plug it right into the board.
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Do anybody ever managed to interface a PS2 joypad? on: October 11, 2009, 10:53:50 am
I got my controller and it also works.. no issues.. awesome.
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Do anybody ever managed to interface a PS2 joypad? on: October 10, 2009, 09:18:09 am
 PS2 Controll Pins are hard coded in the library and i dont
 see a need to change them for my use but you need to change to this:
 Digital Pin 3 to PS2 9 (green) acknowledge
 Digital Pin 4 to PS2 7 (blue) clock
 Digital Pin 5 to PS2 6 (yellow) attention
 Digital Pin 6 to PS2 2 (orange) command
 Digital Pin 7 to PS2 1 (brown) data

or edit the .cpp for the values
8  Forum 2005-2010 (read only) / Troubleshooting / Re: Do anybody ever managed to interface a PS2 joypad? on: October 10, 2009, 08:44:53 am
thats cool. Now i wait to see if the pad works then we are in business.
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Do anybody ever managed to interface a PS2 joypad? on: October 10, 2009, 03:55:22 am
I got it to compile for me. here is how

Seems i was getting an error in math.h not stlib.h. (same error almost)

I commented out. double round in math.h and it compiles. I wont be able to test it to make sure till my ps2 controller get here(its in the mail).

But it seems the Arduino ide has round as a key word and that is interfering with the compiling of this.
10  Forum 2005-2010 (read only) / Exhibition / Re: Centipede Shield - also a contest! on: December 18, 2009, 06:04:37 am
You thinking about selling these? guess i am gonna need one after all for my robot... what fun. And this might be a bit cheaper than making one myself.
11  Forum 2005-2010 (read only) / Exhibition / Re: Centipede Shield - also a contest! on: November 11, 2009, 12:54:13 am
Consider mine withdrawn.

I needed more I/O which the Centipede could give me

But i also need more room for my program so i am upgrading to the Maple (http://leaflabs.com/Maple)

and that will give me the I/O needed also. But if i need more i can add your board on later.
12  Forum 2005-2010 (read only) / Exhibition / Re: Centipede Shield - also a contest! on: November 08, 2009, 12:28:29 pm
i could use this for my 8 legged freak (octopod robot) to add all the sensors i want for everything.

Wind speed.
Whiskers
Contact sensors for each of the 3 joints in all 8 legs.
Foot Sensors
 
the list goes on. I am trying to put as many sensors on a robot as the arduino can handle  ;D
Pages: [1]