Show Posts
Pages: 1 ... 323 324 [325] 326 327 ... 598
4861  Using Arduino / Networking, Protocols, and Devices / Re: auto refresh on browser on: April 30, 2012, 11:12:24 pm
I suggest you make two simple pages for the arduino to serve up. The main page would have a frame in which the refreshing page would appear. The refreshing page probably can be modified such that if a request contains r, the meta refresh line is added to the refreshing page. If the request has a n, the meta refresh line is not included in the meta refresh page that is returned, so it stops refreshing. Two buttons on the main page would determine whether the link would contain an r or n, which would switch the page in the frame from refreshing or not refreshing. Below is some simple html with a frame that contains various linked pages/images that will appear in the box when selected. You can copy the below code, paste in notepad, and save on the desktop as frame.htm, then double click to open a browser to see how it works.

Code:
<HTML>
<HEAD>
<TITLE>Zoomkat's cgi test</TITLE>
</HEAD>
Zoomkat's SSC-32 cgi test 2/28/10
<BR>
<BR>
Get data from SSC-32:
<BR>
|<a href="http://web.comporium.net/~shb/pix/slider1.jpg" target="DataBox"
title="'SSC-32 version'">VER</a>|
<a href="http://web.comporium.net/~shb/pix/82_0_550.jpg" target="DataBox"
title="'Voltage on A analog input'">VA</a>|
<a href="http://web.comporium.net/~shb/arduino.txt" target="DataBox"
title="'Voltage on B analog input'">VB</a>|
<a href="http://zoomkat.no-ip.com:88/cgi-bin/cgi1.bat?hello" target="DataBox"
title="'Voltage on C analog input'">VC</a>|

<BR>
 <iframe src="http://zoomkat.no-ip.com:88/cgi-bin/cgi1.bat?hello" width="30%" height="100"
name="DataBox">
</iframe>
<BR>
</HTML>
 
4862  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet Shield 06 schematic and actual discrepancy, need clarification on: April 30, 2012, 10:27:04 pm
Your pictures are showing up as red x. You might need to host them on another site accessable to all.
4863  Using Arduino / Motors, Mechanics, and Power / Re: New to servos, need some help on deciding which to buy on: April 30, 2012, 10:19:00 pm
Instead of asking in this forum, you should first study proven multileg designs that are known to work with particular servos. The below forum has multileg discussions and the bottom site sells proven designs. Best to see what works instead of guessing. The length of the legs will have a lot to do with what strength servos will be needed. The bots in your video have fairly short legs, which may allow the use of inexpensive servos.

http://www.lynxmotion.net/viewforum.php?f=8
http://www.lynxmotion.com/
4864  Using Arduino / Motors, Mechanics, and Power / Re: Controlling servo without needing to use delay on: April 30, 2012, 09:58:07 pm
You may need to revisit your mechanical setup for ringing a bell with a servo. Servos move slowly, which may require a mechanical setup different from what you have to be successful. 
4865  Using Arduino / Project Guidance / Re: 3 servos for robot arm interfering big time on: April 30, 2012, 09:13:50 pm
Quote
No one has any ideas?

I think your wiring choise is bad. Power your pots from the arduino instead of the servo power supply. Also, putting capacitors on servo motors has yet to solve any servo issues in my experience.
4866  Topics / Robotics / Re: ROV on: April 30, 2012, 12:05:37 am
I think Elvis has left the building...
4867  Using Arduino / Networking, Protocols, and Devices / Re: auto refresh on browser on: April 29, 2012, 09:54:37 pm
Meta refresh server test code.

Code:
// zoomkat meta refresh server test code
// arduino IDE 1.0
// for W5100 ethernet shield
// the IP address will be dependent on your local network/router
// port 80 is default for HTTP, but can be changed as needed
// use IP address like http://192.168.1.102:84 in your brouser
// or http://zoomkat.no-ip.com:84 with dynamic IP service
// use the \ slash to escape the " in the html
// meta refresh set for 2 seconds

#include <SPI.h>
#include <Ethernet.h>

int x=0; //set refresh counter to 0
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,102); // ip in lan
EthernetServer server(84); //server is using port 84

void setup()
{
  // start the server
  Ethernet.begin(mac, ip);
  server.begin();
}

void loop()
{
  // listen for incoming clients
  EthernetClient client = server.available();
  if (client) {
     while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        // see if HTTP request has ended with blank line
        if (c == '\n') {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
         
          //meta-refresh page every 2 seconds
          x=x+1; //page upload counter
          client.println("<HTML>");
          client.print("<HEAD>");
          client.print("<meta http-equiv=\"refresh\" content=\"2\">");
          client.print("<TITLE />Zoomkat's meta-refresh test</title>");
          client.print("</head>");
          client.println("<BODY>");
          client.print("Zoomkat's meta-refresh test IDE 1.0");
          client.println("<br />");
                   
          client.print("page refresh number ");
          client.println(x); //current refresh count
          client.println("<br />");
          client.println("<br />");
         
          client.print("Zoomkat's arduino analog input values:");
          client.println("<br />");
          client.println("<br />");
         
          // output the value of each analog input pin
          for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
            client.print("analog input ");
            client.print(analogChannel);
            client.print(" is ");
            client.print(analogRead(analogChannel));
            client.println("<br />");
            }
           break;
          client.println("</BODY>");
          client.println("</HTML>");
         }
        }
    }
    // give the web browser time to receive the data
    delay(1);
    // close the connection:
    client.stop();
  }
}

4868  Using Arduino / Project Guidance / Re: HI, how to build osteoporosis detection device??? on: April 29, 2012, 05:46:19 pm
The arduino can measure DC voltages from 0v to +5v, and monitor digital high/low voltages on certain pins. It can also generate pulsed voltage outputs on certain pins. Various librarys take advantage of these propertys to support various popular external gizmos and communication protocols. Your best path probably is to research medical and bio engineering archives, patents, and similar for osteoporosis related info.  
4869  Using Arduino / Programming Questions / Re: Controlling 2 servos with motor shield on: April 29, 2012, 05:06:46 pm
Thanks for the help, but it still will not allow me to upload the code.

Who is "it" that won't let you upload code? Mom? Dad? Space alien?
4870  Using Arduino / Project Guidance / Re: leak sensor that sends text message on: April 29, 2012, 04:48:51 pm
If you rent, you need to tell the landlord to get it fixed. If you own the property, tell the neighbor that he will be taken to court to get any damage from the leaks settled. sometimes registered mail is handy for proof of notifiction.
4871  Using Arduino / Networking, Protocols, and Devices / Re: Serial - Is possible to put a received data in an array of char ? on: April 29, 2012, 11:25:10 am
Quote
i need to read a char from serial and the compose an array of char.

You may want to just capture the individual chacters and form them into a string, which is a fairly simple operation. Below is a very simple example where a string is sent from the serial monitor and captured by the arduino, then sent back to the serial monitor.

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

String readString;

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

void loop() {

  while (Serial.available()) {
    delay(2);  //delay to allow byte to arrive in input buffer
    char c = Serial.read();
    readString += c;
  }

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

    readString="";
  }
}

4872  Using Arduino / Motors, Mechanics, and Power / Re: Controlling servo without needing to use delay on: April 29, 2012, 11:01:09 am
Quote
Any ideas?

Not really, as you talk of code that doesn't work for you without explaining what you are actually trying to do. If you are using "hobby" servos, I've never seen one containing worm gears. Having a servo strain against a spring might not be a good idea unless the spring is used as a counter balance for some type of a load. You should also describe what function a delay in your code serves.
4873  Using Arduino / Programming Questions / Re: Troubles using "Serial." library on: April 29, 2012, 10:40:50 am
Quote
I wrote a little code to control an RGB LED matrix but it seems that the Serial communication doesn't want to work (better to say I'm not good at writing codes probably!).

You may need to describe in more detail just what you are trying to do. First, do you have control of the application sending the data to the arduino so that it can be modified if needed? What exactly is the data format of the data being sent to the arduino? Is the data being sent to the arduino being sent to the arduino as single data packets one at a time for each the LEDs, or is all the LED data being sent as a single large data packet that needs to be parsed to recover the individual LED data? 
4874  Using Arduino / Programming Questions / Re: Email send question. on: April 29, 2012, 01:06:21 am
Quote
Ok...the program seems to work,

What program are you refering to?
4875  Using Arduino / Networking, Protocols, and Devices / Re: High Definition Wireless Micro/Mini Video Camera with a Live Feed on: April 28, 2012, 08:07:03 pm
To meet your specs you may need to expect to spend significant $$$. Are the tx/rx locations fixed or moble? Below are some can companys that have been around a while you can study for your equipment.

http://www.supercircuits.com/
http://www.matco.com/
http://www.cctvco.com/
http://www.polarisusa.com/
 
Pages: 1 ... 323 324 [325] 326 327 ... 598