Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: digitalSmooth with quicksort of arrays... on: March 24, 2010, 08:05:40 am
search on google for a pdf called "An Introduction to the Kalman Filter"

Authors "Greg Welch and Gary Bishop"

There is an incremental way of smoothing that will give you some quick performance
2  Forum 2005-2010 (read only) / Interfacing / Re: Ethernet problem on: December 11, 2009, 12:26:22 pm
Webduino was the solution. Up and running!!!
Thanks all
 smiley smiley smiley
Nick
3  Forum 2005-2010 (read only) / Interfacing / Re: Ethernet problem on: December 10, 2009, 06:16:53 pm
>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : config
   Link-local IPv6 Address . . . . . : fe80::f06e:e9c:8054:9089%9
   IPv4 Address. . . . . . . . . . . : 192.168.1.64
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.254

Tunnel adapter Local Area Connection* 6:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 7:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : config

So In the code I've this line

byte ip[] = { 192,168,1,236 };

Still no joy  :'(
4  Forum 2005-2010 (read only) / Interfacing / Re: Ethernet problem on: December 10, 2009, 05:55:19 pm
OK,

I've changed the IP address to 192,168,157,229 and reloaded the software.

No joy.

Tried one more IP address, just in case!

No joy either.



5  Forum 2005-2010 (read only) / Interfacing / Ethernet problem on: December 10, 2009, 05:29:56 pm
I'm having a little trouble getting an ethernet shield going.

DFRobot Shield which uses a W5100 chip.

Board is a seeedstudio with an atmega 168 chip

Software is version 0016

Program is this, a pretty standard test from what I can see

Code:
/*
 * Web Server
 *
 * A simple web server that shows the value of the analog input pins.
 */

#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 169,254,157,229 };

Server server(80);

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

void loop()
{
  Client client = server.available();
  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 we've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so we can send a reply
        if (c == '\n' && current_line_is_blank) {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
          
          // output the value of each analog input pin
          for (int i = 0; i < 6; i++) {
            client.print("analog input ");
            client.print(i);
            client.print(" is ");
            client.print(analogRead(i));
            client.println("<br />");
          }
          break;
        }
        if (c == '\n') {
          // we're starting a new line
          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();
  }
}

On the board when the ethernet cable is plugged in to the ethernet card and the router, the 100m led is on, the Fulld is on, the Link led is on. On the router the led for that port is on too.

When it go to the address 169.254.157.229 I get nothing.

Any ideas what I'm doing wrong?

Nick
6  Forum 2005-2010 (read only) / Interfacing / Re: Accelerometer and gyro kalman filter on: May 03, 2010, 05:21:58 am
I would start off by just building a recorder. Then you can work offline.

One book I've found on the subject is this.

Title: Aircraft Control and Simulation, 2e
Author: Stevens
7  Forum 2005-2010 (read only) / Interfacing / Re: Ambitious Gimbal Project on: August 10, 2010, 02:57:24 pm
Do some research on gimbal lock first

Nick
8  Forum 2005-2010 (read only) / Interfacing / Re: accelerometer question??? on: April 18, 2010, 06:03:11 pm
No. It's possible to do a one g barrel roll from a climb. What would a gyro show? What would an accelerometer show?
9  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: diy fridge alarm on: November 01, 2010, 05:16:40 am
First you need to find out if the light goes off when you shut the door!
 ;D ;D ;D
10  Forum 2005-2010 (read only) / Frequently-Asked Questions / Determining location on: July 03, 2010, 04:52:20 am
http://www.dailymail.co.uk/sciencetech/article-1291090/Scientists-track-single-nightingale-3-000-mile-migration-Africa.html?ITO=1490

Scientists tracked a nightingale from the UK to africa. They didn't use a gps, but a clock, recorder and light sensor.

It got me intrigued, and its interesting reverse engineering the approach.

You need to determine two things. Latititude and longitude.

Latitude is relatively easy. For a given day of the year, if the day length is 13 hours, then that corresponds to a given latitude. So if you record regular samples of light intensity, you can fit a curve to it, and from the curve workout sunrise and sunset. Hence latitude.

Longitude is slightly different. There is a line corresponding to sunrise on a given day.

http://www.daylightmap.com/index.php is a map. for sunrise at a given time you have to be on a given line.

An alternative for the day length approach is to say, when was sunset, I must be along the other line.

Given the assumption in both cases that you haven't move locations large distances, you can locate yourself using the intersection.

All in all, rather clever.

Interestly, its a feature of some forms of tracking. You need to know where you have been (past tense) and not where you are in real time. ie. You can track a package when its received, but not all the time.

There is a variant on this that was relevant for GPS. GPS used to push out a deliberate wobble. However, for GPS close to each other, the wobble is the same. Differential GPS broadcast the wobble from a fixed GPS. It's movement is the wobble. The mobile GPS then adjusts.

You don't need to do this in realtime. You can always adjust latter if your requirement is for historical tracking, not real time positioning

Nick
Pages: [1]