Show Posts
Pages: 1 [2]
16  Forum 2005-2010 (read only) / Interfacing / Re: arduino programming on-the-go on: January 15, 2008, 07:02:57 am
Right now, I would need to adjust it to any value, but after I test and calibrate the robot, I could limit it down to ~10 specific numbers
17  Forum 2005-2010 (read only) / Interfacing / arduino programming on-the-go on: January 14, 2008, 05:59:23 pm
Hello, I have a question for you guys. I need some way to change a variable on the arduino at least, or reprogram it entirely on some type of portable device. The easiest option (I believe) would be to use two buttons and a Binary display, most complicated some sort of Pocket PC with a serial terminal and a serial prompt on the arduino. Does anyone have a simpler idea or an implementation example?

Here is my code:
(Dists is the variable that I need to modify)
int pin = 9;
volatile int state = LOW;
volatile int Count = 0;
volatile int Dists = 1024;

void setup()
  pinMode(pin, OUTPUT);
  attachInterrupt(1, Dist, FALLING);

void loop()
  digitalWrite(pin, HIGH);

void Dist()
  if (Count >= Dists)
    digitalWrite(pin, LOW);
PS. Does this code look Ok? It is meant to be a very basic odometer, to make a car travel a certain distance and then stop.
18  Forum 2005-2010 (read only) / Exhibition / Re: Kalman Filtered Nunchuck & Motion Plus-the seq on: January 01, 2010, 01:44:29 pm
So I just started making a board so that I could get working on code, and I'm running into some problems. I have the nunchuck board soldered directly to the MP board, with the P1-P3 jumper on the MP board. The MP board is connected, through a WiiChuck adapter on analog pins 2-5, to an Arduino NG 168. I'm using the following bit of code to power the devices:
 byte pwrpin = PC3;
  byte gndpin = PC2;
  DDRC |= _BV(pwrpin) | _BV(gndpin);  // make outputs
  PORTC &=~ _BV(gndpin);
  PORTC |=  _BV(pwrpin);
  delay(100);  // wait for things to stabilize

When I use the 'Through-port' code, I get only MotionPlus values that seem to work. I can also, however, run Nunchuk only code and read valid Nunchuck data.

I guess my question is: Has anyone got the Through-port working on 5 volts?

I got this working, turns out it was a soldering problem on the Nunchuck board. I had peeled back the trace on the clock pin and only soldered to the top, forgetting the bottom trace.
19  Forum 2005-2010 (read only) / Exhibition / Re: Arduino 3DOF Head Tracker on: January 18, 2009, 07:18:25 pm
Check out the Angle complementary filter on this site: Its in the file, in PDF form. Its for filtering out drift using Gyro and Accel, mainly for a segway, but I think it would work for this.
20  Forum 2005-2010 (read only) / Bar Sport / Re: Do you know any suppliers near Pittsburgh PA? on: January 24, 2008, 04:59:51 pm
Hey, finally someone in the pittsburgh area who messes around with electronics. I live north of Pittsburgh (about an hour) and thought there was no one in the area into electronics. AS for suppliers, unfortunatly I know of no good electronics suppliers in our area. There is a hobby shop at the Pittsburgh Mills, but it is only good for expensive servos. If I need a part quickly, The only place I know to go is radioshack. If I can wait, I like getting parts online from Sparkfun, Futurlec, and ebay. You can Pm me if you want to calloborate on an arduino or other electronic project. It would be nice to have a Pittsburgh area electronics club.
Pages: 1 [2]