Show Posts
Pages: 1 2 [3] 4 5 ... 640
31  Using Arduino / Programming Questions / Re: Arduino control led via HTML on: August 25, 2014, 12:27:34 pm
No i don't have a form can you help me ?

Sure, open the below web page then look at the source code. No forms.  smiley-wink

http://web.comporium.net/~shb/armbat.htm
32  Using Arduino / Project Guidance / Re: Need Help on creating a code for my Tank Project. on: August 24, 2014, 11:49:21 pm
Quote
Just did a quick search for Skid Steering and just picked three of the ones I helped with.

Well, I took a quick look at those three discussions. Looks like the first two ended with no working joystick code developed. The third had the below, but that is not a joystick being used. I read a lot of related material in the forum and don't remember seeing good joystick code for complex differential steering posted. Forward/reverse/spin clockwise/spin counter clockwise should be fairly easy. Code for using a joystick in positions beyond left/right/forward/back would probably be more complex.

http://forum.arduino.cc/index.php?topic=161927.msg1211113#msg1211113
33  Using Arduino / Project Guidance / Re: Need Help on creating a code for my Tank Project. on: August 24, 2014, 07:55:33 pm
Differential steering with a single joystick is extremely simple, and there are countless examples on the forum that show just that.

"Countless"? Just post links to four or five of them.
34  Using Arduino / Project Guidance / Re: Need Help on creating a code for my Tank Project. on: August 24, 2014, 05:34:05 pm
zoomkat,

Let's cut the noise and get to the point. Page 3. Turn the joystick 45 degree and each motor driven by one axis of the stick. I've mentioned this long ago on the forum. It must have been done by countless others.

Perhaps you can provide a link to what ever it was you mentioned long ago. Better yet post up your code that does what you are describing.  If you don't have working code perhaps you can explain your thinking  in the statement "Turn the joystick 45 degree and each motor driven by one axis of the stick.".
35  Using Arduino / Project Guidance / Re: Robot following a person on: August 24, 2014, 12:02:23 pm
Robot suite case that follows with some construction info.

http://revision3.com/tbhs/robotluggage
36  Using Arduino / Project Guidance / Re: Need Help on creating a code for my Tank Project. on: August 24, 2014, 11:51:39 am
Controlling a tank with a single joystick is somewhat complex. Below is a previous discussion that might be of interest.

http://forum.arduino.cc/index.php/topic,157967.0.html
37  Using Arduino / Programming Questions / Re: Problems with firecracker x10 library on: August 24, 2014, 11:16:04 am
Make sure you have the X10Firecracker folder in the arduino libraries folder. The below test code compiles for me without issues.

Code:
// zoomkat 1-15-13 test
// for use with x10 CM17A "Firecracker"
// and X10Firecracker library
// in X10Firecracker.cpp replace #include "wiring.h"
// with #include "arduino.h"

#include <X10Firecracker.h>

void setup()
{
  //wires inserted in female side of firecracker DB9
  //Serial DB9 connection: RTS - pin 7, DTR - pin 4, Gnd - pin 5
  //arduino pins: RTS > pin 2, DTR > pin 3, Gnd > Gnd
  //below Arduino pins 2,3, and delay 1
  X10.init( 2, 3, 1 );  // origional 0 delay didn't work
}

void Test()
{
  X10.sendCmd( hcA, 1, cmdOn ); //TM751 transceiver on
  X10.sendCmd( hcA, 1, cmdDim );
  //extra commands removed fot testing
  X10.sendCmd( hcA, 1, cmdBright );
  X10.sendCmd( hcA, 1, cmdOff ); //TM751 transceiver off
}

void loop()
{
  delay(2000);
  Test();
  delay(8000);
}

38  Using Arduino / Motors, Mechanics, and Power / Re: Turnigy Trust 70A sbec brushless speed controller help on: August 23, 2014, 06:20:24 pm
Note that most ESCs require an arming sequence to operate. Below are previous post concerning ESCs that may have useful information.

https://www.google.com/search?as_q=esc&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=http%3A%2F%2Fforum.arduino.cc%2Findex&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=&gws_rd=ssl
39  Using Arduino / Project Guidance / Re: Robotic arm, need help with servo movement on: August 23, 2014, 03:28:14 pm
Quote
You need to add (say) delay(50); as the last thing in loop(). And you shouldn't use delay() in your real code - just for this demo.

New code should be based on using Millis and not delay. Maybe a little more complex, but probably better control.
40  Using Arduino / Programming Questions / Re: Questions about Serial for continuous data project on: August 23, 2014, 12:33:35 pm
It appears your data is comma delimited. if so, you might use code similar to the below.

Code:
//zoomkat 3-5-12 simple delimited ',' string 
//from serial port input (via serial monitor)
//and print result out serial port

String readString;

void setup() {
  Serial.begin(9600);
  Serial.println("serial delimit test 1.0"); // so I can keep track of what is loaded
}

void loop() {

  //expect a string like wer,qwe rty,123 456,hyre kjhg,
  //or like hello world,who are you?,bye!,
 
  if (Serial.available())  {
    char c = Serial.read();  //gets one byte from serial buffer
    if (c == ',') {
      //do stuff
      Serial.println(readString); //prints string to serial port out
      readString=""; //clears variable for new input     
     } 
    else {     
      readString += c; //makes the string readString
    }
  }
}

41  Using Arduino / Project Guidance / Re: Robotic arm, need help with servo movement on: August 23, 2014, 11:57:41 am
Interesting project. Making code that controls servo movement speed would make for some interesting robotic arm and camera pan/tilt setups. I've tinkered with an arduino controlled ssc-32 servo controller which has speed control and the results were interesting. Basically a web  page GUI to control the servo positioning.

edit: below are some web page GUIs I made for controlling the servos





42  Using Arduino / General Electronics / Re: How to make an H-Bridge cicuit on: August 23, 2014, 11:07:02 am
I've got doubts that the instructable h-bridge would actually work. If it did work one would see that design being widely used. Some of the comments on the h-bridge indicate that it doesn't work.
43  Using Arduino / Project Guidance / Re: Parsing a String on: August 23, 2014, 12:05:41 am
Quote
The String indexOf method can identify only single character position

Well, that is not exactly correct. The indexOf can locate character strings in a String. Bottom is code that looks for specific character strings. Below is more info.

http://arduino.cc/en/Reference/StringIndexOf

Code:
// zoomkat 8-6-10 serial I/O string test
// type a string in serial monitor. then send or enter
// for IDE 0019 and later

//A very simple example of sending a string of characters
//from the serial monitor, capturing the individual
//characters into a String, then evaluating the contents
//of the String to possibly perform an action (on/off board LED).

int ledPin = 13;
String readString;

void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
  Serial.println("serial on/off test 0021"); // so I can keep track
}

void loop() {

  while (Serial.available()) {
    delay(3); 
    char c = Serial.read();
    readString += c;
  }

  if (readString.length() >0) {
    Serial.println(readString);

    if(readString.indexOf("on") >=0)
    {
      digitalWrite(ledPin, HIGH);
    }

    if(readString.indexOf("off") >=0)
    {
      digitalWrite(ledPin, LOW);
    }

    readString="";
  }
}

44  Topics / Robotics / Re: Robot Surveillance Car on: August 22, 2014, 11:54:58 pm
If you have a wireless router available, you might use an arduino with an ethernet shield to make a basic routerbot setup like below.

http://www.lynxmotion.net/viewtopic.php?f=20&t=6343
45  Using Arduino / Motors, Mechanics, and Power / Re: Trouble getting servo to work properly with keypad on: August 22, 2014, 08:02:01 pm
How is your setup wired? You may have issues with pin 5 floating high. May be better to set pin 5 high, then pull it low with the button like in the below code.

Code:
//zoomkat servo button test 12-29-2011
// Powering a servo from the arduino usually *DOES NOT WORK*.

#include <Servo.h>
int button1 = 4; //button pin, connect to ground to move servo
int press1 = 0;
int button2 = 5; //button pin, connect to ground to move servo
int press2 = 0;
Servo servo1;

void setup()
{
  pinMode(button1, INPUT);
  pinMode(button2, INPUT);
  servo1.attach(7);
  digitalWrite(4, HIGH); //enable pullups to make pin high
  digitalWrite(5, HIGH); //enable pullups to make pin high
}

void loop()
{
  press1 = digitalRead(button1);
  if (press1 == LOW)
  {
    servo1.write(170);
  }   
 
  press2 = digitalRead(button2);
  if (press2 == LOW)
  {
    servo1.write(10);
  }
}

Pages: 1 2 [3] 4 5 ... 640