Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 50
121  Using Arduino / Programming Questions / Multiplexing multiple analog values on: May 20, 2014, 01:03:23 am
Dear all,

I have hall sensor that can measure current upto 25 A .with analog output 0~5v. I am using Arduino mega Board for programming. There are totally 30 Hall sensor and where arduino mega has 16 analog channel. Because of this i am planning to use multiplexer circuit

question:

1)Is above circuit is write to build multiplexing circuit??
2)How Multiple analog output values are read
3)What is purpose of selector pins S0,s1,s2 . it say that depend on state of pin it read value . is it true or false. means to say if s0=s1=s2=0 it read analog out put of hall sensor 1 , if S0=0 s1=0s2=1 it read HS4 it is correct or not.
4)using multiplexer i can read one value @ time but multiple IO connected or using delay in program i can say read value after every 1000ms
122  Using Arduino / Networking, Protocols, and Devices / Re: MODBUS protocol Library on: May 15, 2014, 07:38:50 am
Y ai already solved the problem , Thanks for support
123  Using Arduino / Project Guidance / Open loop Solar tracking system on: May 12, 2014, 01:24:30 am
Dear all,
I need some Design steps to constructing open loop Solar tracking mechanism.I am planning to construct open loop solar tracker.
these are designed component.Let me know How could start it . If any one can suggestion will be appreciable

Arduino UNO Board
DS1307 RTC
Linear actuator
and motor Driver.

Closed loop system
http://www.instructables.com/id/Arduino-Solar-Tracker/
http://www.engineersgarage.com/contribution/solar-tracker-using-arduino

124  Using Arduino / Networking, Protocols, and Devices / Re: Webserver username and password validation on: May 07, 2014, 07:00:03 am
Example Arduino :

Login page user enter username and passsword When press enter on submit . Server Check validity of password and username
If available emter into website , else gives out error saying invalid username and password
Code i pasted it takes input from user  and once submit button  how to make check condition username is valid or invalid
125  Using Arduino / Networking, Protocols, and Devices / Re: Webserver username and password validation on: May 07, 2014, 06:18:35 am
Here i get data from The Username and password. How to  get data and compare with username and password stored
126  Using Arduino / Networking, Protocols, and Devices / Webserver username and password validation on: May 07, 2014, 03:00:01 am
Dear all,

I am trying to get data from webserver and want to check user name and password is valid or not. Here i have put method of taking username and password from webserver. Now Question is how to compare result
Code:

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

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,128);

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup() {
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}


void loop() {
  // listen for incoming clients
  EthernetClient client = server.available();
  if (client) {
    Serial.println("new client");
    // an http request ends with a blank line
    boolean currentLineIsBlank = true;
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        Serial.write(c);
        // if you've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so you can send a reply
        if (c == '\n' && currentLineIsBlank) {
client.println("<!DOCTYPE html>");
          client.println("<html>");
           client.println("<body>");
            client.println("<form action=='demo_form.asp'> Birthday: <input type='date' name='bday'> <input type='submit'>");
        
        client.println("<form>");
        client.println("</form>");
        client.println("USER name:<input type='text' name='firstname'><br>");
         client.println("PASSWORD:<input type='password' name='pwd'><br>");

        
        
        
        
        
        
        
        
        
        
         client.println("</form>");
         client.println("<body>");
          client.println("</html>");
          
          
          
          
          
          
          
          
          
          
          
          
          break;
        }
        if (c == '\n') {
          // you're starting a new line
          currentLineIsBlank = true;
        }
        else if (c != '\r') {
          // you've gotten a character on the current line
          currentLineIsBlank = false;
        }
      }
    }
    // give the web browser time to receive the data
    delay(1);
    // close the connection:
    client.stop();
    Serial.println("client disonnected");
  }
}

127  Using Arduino / Project Guidance / Re: Incorporate HTML code and Arduino on: May 07, 2014, 12:17:59 am
Thanks Zoomkat/. These code i am already using.
I need Information on this.Is it possible to load code  from MicroSd card if yes how.
Intillay i am using c code directly on board . Now c code are copied to memory card. Is there any way to run code from SD card instead  directly running. I know my question seems stupid. But Is it possible or not . If yes how to do it.

For remote control perameter access which controller is best .
128  Using Arduino / Project Guidance / Incorporate HTML code and Arduino on: May 06, 2014, 11:35:41 pm
Dear all,
 I wanted to develop remote monitoring solution . I need some guideline for developing this code.project idea is as follow

1) As we know arduino uno uses 32 kb flash memory . So  using Ethernet shield and SD card Is possible to take all code from SD card only execution process take place in Controller. Assume that all my code in SD card instead of arduino board so i call only function  used in calculation in loop function . IS it possible to DO or not. If yes how to do it . If any example will be helpful.
2)I wanted to write some HTML script that can incorporate with arduino. Idea is to instead of using control led with switch i can  create my HTML tag on web server and  control action of each unit. In future say if add temperature sensor to pin A0 . i can create tag on web server read analog port A0 so i get started reading analog value. IS it possible to it.

For Developing Such application arduino UNo is best  or Which controller is best to develop such application

http://www.w3schools.com/html/default.asp
129  Using Arduino / Programming Questions / Re: Arduino and Rockwell - ModBus RS485 on: May 06, 2014, 05:24:14 am
ya SURE.tELL US ABOUT setup and also paste your code
130  Using Arduino / Installation & Troubleshooting / Re: avrdude stk500_getsync() not in sync resp=0x00 on: May 05, 2014, 11:55:06 pm
I think your UART IC might burnout. When you connected just check any IC get heating up.
131  Using Arduino / Programming Questions / Re: function not declared in the scope on: May 05, 2014, 12:25:58 am
Include relvant header file. and also you not specified  'cli () function going to do
132  Using Arduino / Programming Questions / Re: Altering value on webserver. on: April 29, 2014, 06:41:43 am
I have used code From Ajax . They using same HTML syntax for  there code developemnt.
I don't understand why it wont work.

Code:
client.println(F("<META HTTP-EQUIV=REFRESH CONTENT=5 URL=>"));
used instead
client.println("<META HTTP-EQUIV=REFRESH CONTENT=5 URL=>");
In arduino forum  mentioned that it print single Byte.instead of whole word.

Code:

 client.println("</form>");
                    client.println("</body>");
                    client.println("</html>");
How start tag and end tag should look like.If there is synatx like C , Where i can find . Link you mentioned above They also use like within <representation here.>
133  Using Arduino / Programming Questions / Re: Altering value on webserver. on: April 29, 2014, 01:15:51 am
Dear paul;

Here is my code i wanna edit latitude and longitude . I would like to see changes made from latitude and longitude.The out put seem like lmage attached. Now i can enter latitude and longitude . How to assign the variable  data received from server.


For example given. http://www.w3schools.com/html/html_forms.asp if you create username and password. How to receive data /read  data entered from user.

Code:
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = {   192, 168,1, 120 }; 
EthernetServer server(80);
float latitude=13.08;
float longitude=80.20;
void setup()
{
   Serial.begin(9600);
   Ethernet.begin(mac, ip);
   server.begin();
}
void loop()
{
   Ethernet_Control();
}

void Ethernet_Control()
{
 EthernetClient client = server.available();
  // detect if current is the first line
  boolean current_line_is_first = true;

  if (client) {
    // an http request ends with a blank line
    boolean current_line_is_blank = true;
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
          if (c == '\n' && current_line_is_blank) {
          client.println(F("HTTP/1.1 200 OK"));
          client.println(F("Content-Type: text/html"));
          client.println();
          client.println(F("<META HTTP-EQUIV=REFRESH CONTENT=5 URL=>"));
          client.println(F("<center><p><h5>Web application  V1.0</h5></p><center><hr><br />"));
          client.print(F("<p><h5>DATE: = <font color=indigo>"));
    client.print(" <font> <color=blue> latitude: <input type=text name=01 value=");
        client.println(latitude);
          client.print(" <font> <color=black> Longitude: <input type=text name=01 value=");
          client.println(longitude);
           client.println("</form>");
                    client.println("</body>");
                    client.println("</html>");

            client.println("<p>NOTE: This page will automatically refresh every 5 seconds.</p></center>");

          break;
        }
        if (c == '\n') {
          // we're starting a new line
          current_line_is_first = false;
          current_line_is_blank = true;
        }
        else if (c != '\r') {
          // we've gotten a character on the current line
          current_line_is_blank = false;
        }
       }
    }
    // give the web browser time to receive the data
    delay(1);
    client.stop();
  }
}


134  Using Arduino / Programming Questions / Re: Altering value on webserver. on: April 28, 2014, 04:13:34 am
Is there any link you are aware where  i can use HTML tag creation.

Quote
to make sure that all close tags follow the corresponding open tag (yours do not), and that all open tags have matching close tags.
i didn't understand this.

Quote
It wouldn't hurt to post a picture of the web page you are serving now, and explain how the user is supposed to change latitude and/or longitude.
For this i would like to create tag name edit and view. In edit user can set value like example
http://www.timeanddate.com/date/timeduration.html adding 2 times. it takes data from user and gives result but i wanted if changes made it should refelect in Serial monitor.

if view button pressed . view changed data or current data.
Question is how to create tag of our own
135  Using Arduino / Programming Questions / Access data Remotely using Ethernetsheild on: April 28, 2014, 01:28:36 am
Dear all.

I have completed program on Webserver. Now I wanted to access data remotely From any location . I have Question as below
1) Any example code available to try this out
2) How to configure port forwarding.

My current setup . all the computer on same network 192.168.1.xx . Where i can access via mobile,PC. Now Same i thing i wanna try with remotely.
How to do this
below example code from Example of web server. the same i need to implement for remotely
Code:
/*
  Web Server
 
 A simple web server that shows the value of the analog input pins.
 using an Arduino Wiznet Ethernet shield.
 
 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 * Analog inputs attached to pins A0 through A5 (optional)
 
 created 18 Dec 2009
 by David A. Mellis
 modified 9 Apr 2012
 by Tom Igoe
 
 */

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

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1,177);

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup() {
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}


void loop() {
  // listen for incoming clients
  EthernetClient client = server.available();
  if (client) {
    Serial.println("new client");
    // an http request ends with a blank line
    boolean currentLineIsBlank = true;
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        Serial.write(c);
        // if you've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so you can send a reply
        if (c == '\n' && currentLineIsBlank) {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println("Connection: close");  // the connection will be closed after completion of the response
  client.println("Refresh: 5");  // refresh the page automatically every 5 sec
          client.println();
          client.println("<!DOCTYPE HTML>");
          client.println("<html>");
          // output the value of each analog input pin
          for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
            int sensorReading = analogRead(analogChannel);
            client.print("analog input ");
            client.print(analogChannel);
            client.print(" is ");
            client.print(sensorReading);
            client.println("<br />");       
          }
          client.println("</html>");
          break;
        }
        if (c == '\n') {
          // you're starting a new line
          currentLineIsBlank = true;
        }
        else if (c != '\r') {
          // you've gotten a character on the current line
          currentLineIsBlank = false;
        }
      }
    }
    // give the web browser time to receive the data
    delay(1);
    // close the connection:
    client.stop();
    Serial.println("client disonnected");
  }
}


Pages: 1 ... 7 8 [9] 10 11 ... 50