Show Posts
Pages: 1 ... 7 8 [9] 10
121  Forum 2005-2010 (read only) / Syntax & Programs / Re: Retrieving "GET" HTML Form Data on: January 04, 2011, 01:19:42 pm
Is it possible to get some sample code?
This is what I have right now, and I don't think it's working:
Code:
web_browser.println("<form name=\"input\" action=\"password\" method=\"get\"> Password: <input type=\"password\" name=\"PASSword\"> <input type=\"submit\" value=\"Submit\"> </form>");
          String input_password = String(web_browser.read());
122  Forum 2005-2010 (read only) / Syntax & Programs / Re: Retrieving "GET" HTML Form Data on: January 02, 2011, 02:38:26 pm
But how do I only get the data from the form submission and not all the other stuff?  On this web page I have multiple forms, so how can I specify the form?
123  Forum 2005-2010 (read only) / Syntax & Programs / Retrieving "GET" HTML Form Data on: January 02, 2011, 10:52:25 am
Hi everyone,
I am trying to serve a simple webpage with the ethernet shield and arduino dum.   If I have a command such as this:
Code:
client.println("<form name=\"input\" action=\"subnet\" method=\"get\"> Subnet: <input type=\"text\" name=\"newSubnet\"> <input type=\"submit\" value=\"Submit\"> </form>");
What command can I do afterwards to read the form data that was submitted?

Something like a client.read("...");

Thanks for any help
124  Forum 2005-2010 (read only) / Syntax & Programs / send email from arduino on: January 02, 2011, 03:01:56 pm
Hi, for a project I am trying to automate sending an email from the arduino dum. (like a conditionally based alert).  the method I am currently trying, unsuccessfully, is to use telnet kind of commands but cant get that to work at all.  Any other ideas of how I could send an email from the arduino and the Ethernet shield.

thanks for any help
125  Forum 2005-2010 (read only) / Troubleshooting / Re: noob to arduino, need help with simple code on: July 20, 2010, 10:54:38 am
Did the serial print stuff and all is good.  Thanks for the servo thing, I went and got a different servo and that worked.  I decided to give up with that motor driver and got the qik 2s12v10 serial controller from pololu.  I will have to wait until that comes to try stuff out with that.
126  Forum 2005-2010 (read only) / Troubleshooting / Re: noob to arduino, need help with simple code on: July 18, 2010, 04:22:46 pm
this will sound very noobish, but what do you mean by debug prints?
also, i went and got a new servo motor, but every time i put power to the arduino the servo turns a couple degrees.  ideas?
127  Forum 2005-2010 (read only) / Troubleshooting / Re: noob to arduino, need help with simple code on: July 18, 2010, 02:56:42 pm
Don't I need the inByte option? Is there another better way to do it?  What do you mean by ex-servo?  I tried 255, still nothing.
128  Forum 2005-2010 (read only) / Troubleshooting / Re: noob to arduino, need help with simple code on: July 18, 2010, 02:38:15 pm
AWOL:  I didn't have much hope in the (-10) degrees.  What you said about the analogwrite function makes sense, so I changed the value to be written to be like 1000 or so.  Still nothing.

PaulS:  I removed the parentheses around inByte but it didn't make any difference.  I'm not sure about the continuous rotation servo thing, the servo worked fine with the knob and sweep examples in arduino 0018.  Here is where I got the servo: http://www.sparkfun.com/commerce/product_info.php?products_id=9347  After looking at this again, you are right, its a full rotation one, but it did work with the two examples so thats confusing.  In the beginning of the code I have written up how I hooked up the motor driver.

Thanks
129  Forum 2005-2010 (read only) / Troubleshooting / noob to arduino, need help with simple code on: July 18, 2010, 12:15:52 pm
Hi, I can't seem to get my code/circuit working, can someone please help me with this?
I have a Mega hooked up to a SN754410 motor driver and servo for steering the front two wheels.  The motor driver only has 1 motor attached (to the back two wheels).  I can't find anything wrong with the code but then again I am completely new to programming.  When I input a 'f' or a 'b' (see code) nothing happens and when I input 'r' or 'l' the servo just spins constantly.  I have checked and rechecked the circuit and the code multiple times, as well as rebuilding the circuit, all to no avail.
Would someone please point me in the right direction?
Quote
//circuit:
//servo power-->6v battery
//servo ground-->arduino gnd
//servo signal-->pwm pin 4
//SN754410 1A-->pwm pin 3
//SN754410 2A-->pwm pin 2
//SN754410 VCC1&1,2EN-->arduino 5v
//SN754410 ground-->arduino gnd
//SN754410 1Y-->motor (+)
//SN754410 2Y-->motor (-)
//SN754410 VCC2-->6v battery

#include <Servo.h>

#define motorAp 3  //to SN754410 1A
#define motorAd 2  //to SN754410 2A
#define SteeringServo 4 //to servo signal pin
#define SerialBaud 9600
#define Buffer 16

Servo steering;
char inputBuffer[Buffer];
void setup()
{
  steering.attach(SteeringServo);
  pinMode(motorAp, OUTPUT);
  pinMode(motorAd, OUTPUT);
  Serial.begin(SerialBaud);
}
void loop()
{
  if (Serial.available()>0)
  {
    int (inByte)=Serial.read();
    switch (inByte)
      {
        case 'f':  //motor Forwards
          analogWrite(motorAp, HIGH);
          digitalWrite(motorAd, HIGH);
          break;
        case 'b':  //motor Backwards
          analogWrite(motorAp, HIGH);
          digitalWrite(motorAd, LOW);
          break;
        case 'r':  //steering servo move 10 degrees
          steering.write(10);
        case 'l':  //steering servo move 10 degrees the opp direc.
          steering.write(-10);
          break;
        case 's':  //stop all motor activity
          analogWrite(motorAp, LOW);
          digitalWrite(motorAd, LOW);
          break;  
        default:
          break;
      }
    }
  }


Thanks in advance for any guidance/help smiley
130  Forum 2005-2010 (read only) / Interfacing / Re: arduino reset itself with 555 timer on: January 23, 2011, 11:00:32 pm
so not using any part of the arduino yet, i used a couple different types of transistors, with confusing results.  first i tried an npn (p2222a) in your configuration and it didn't work.  then i tried a 2SK2962 which is a "MOSFET Small Signal N-ch 100V 1A 0.7 ohm" with the same setup and it worked.  then with the same setup used a 2n4403 "pnp" and it worked.

so in conclusion, npn didn't work, n chan mosfet worked, pnp worked.  i dont understand these results, shouldnt the npn work and pnp not work?

i'd like to understand these results as id like to find another transistor that would work and find it in a smt package.  the two transistors stated as working above do not exist in a smt package

thanks
131  Forum 2005-2010 (read only) / Interfacing / Re: arduino reset itself with 555 timer on: January 23, 2011, 05:17:00 pm
im trying to use your npn method of inversion with either of the following transistors:  mouser part number 757-2SK2962 or mouser part number 512-PN2222ATAR.  And instead of using having the collector set tied to the arduino reset pin I have it connected to an led so i can see if it actually is inverting or not, which currently I am not, the link is to my current setup:  http://i462.photobucket.com/albums/qq345/phinsil6/arduinoresetckt.png
132  Forum 2005-2010 (read only) / Interfacing / Re: arduino reset itself with 555 timer on: January 23, 2011, 03:21:26 pm
does it have to be 1k?  how about 1.8k?
133  Forum 2005-2010 (read only) / Interfacing / Re: arduino reset itself with 555 timer on: January 23, 2011, 02:52:13 pm
the inverter is a simple 7404 logic ic (something you would use in intro ee course) i would like to use some other kind of inverting hardware, but i don't know what.

so i already have the 10k resistor on pin 2, and i will try putting the 1k in series with the arduino ouput port.  but what is the purpose of adding capacitance to pin 2?
134  Forum 2005-2010 (read only) / Interfacing / Re: arduino reset itself with 555 timer on: January 23, 2011, 12:26:31 pm
I appreciate the response.  Right now I have the circuit setup as a retriggerable monostable like it is set up here:  http://www.doctronics.co.uk/Images_swf/p555_retriggerable.swf
Only addition is that I invert the signal from the output of the 555 and i have pin 9 on the arduino attached to pin 2 of 555.  The reset of the arduino is on the inverted signal of the 555.  I also suspect that its constantly retriggering but i can't seem to stop that.  the pullup resistor doesn't seem to be helping.

thanks
135  Forum 2005-2010 (read only) / Interfacing / arduino reset itself with 555 timer on: January 22, 2011, 10:44:28 pm
Hi, I am trying to reboot the arduino with a 555 timer set up as a monostable trigger and an inverter.  Inserted is an image of my drawn circuit, sorry if it's kinda messy  smiley.  So basically, I start the program writing the output port high, then when I want to reboot the device, I write the port to LOW and thus triggering the monostable 555 timer.  However, whenever I do so, the output goes haywire and and the arduino never starts back up again.  Why is this happening, can anyone help?
http://i462.photobucket.com/albums/qq345/phinsil6/arduino-reset.png

Thanks
Pages: 1 ... 7 8 [9] 10