Show Posts
Pages: 1 ... 3 4 [5]
61  Using Arduino / Installation & Troubleshooting / Arduino Mega & Ethernet+SD Shield Problems on: February 08, 2012, 06:59:19 am

I'm trying to work with an Arduino Mega and an Ethernet+SD shield, but I'm having some troubles. I'm going to write them all here so in case someone could help me about.

- After doing several writings, I can't read anything from my microsd card. It's like it would be dead. I'm going to try to read it by an adapter. Is there someone with the same problem?

- Another one, I make a program with a web server which makes some measurements and write one by one in a file, so a client could read these values from a browser. But when I'm trying to write to a file continously, I mean: I opened a file, write on it, close it, and after a while, I repeat the operation. I want it adds lines, one after one. But even using the example, I could make it right. It always overwrite the file and only shows the last measurements done. How can I solve this?

- The last one, I was trying to did the measurement with A0 and A1 pines, but I was surprise that in Ethernet+SD shield this pins are at high value (5V), instead of low, so I couldn't do any measurements. How can this be possible??

Any answer you have, please don't hesitate to post it.


62  International / Español / XBEE Packet Structure on: January 19, 2012, 04:08:34 am

estoy empezando a utilizar el protocolo ZigBee para arduino, de forma que pueda establecer comunicaciones entre ellos.

He visto que el tamaño de los paquetes (los datos que quiero enviar) se puede modificar dentro de un rango, creo que hasta un máximo de 1024 Bytes (corregidme si me equivoco, por favor). Pero me gustaría saber cual es la cabecera que añade el propio zigbee a los mensajes, para de esta forma, evitar introducir información redundante dentro de los datos, como por ejemplo dirección de destino.

¿Podría alguién echarme una mano con la estructura de los paquetes zigbee?


Un saludo.
63  Forum 2005-2010 (read only) / Interfacing / Re: Digipicco I2C Humidity Sensor on: November 25, 2010, 03:17:50 am
Ok, I'm trying to search any help, but you're too clever.

The first I said it is I'm using a libelium arduino, if you want to help me you have to know that their compiler already includes by itself all the libraries which the code needs.

And the RTC is hooked to the arduino so if I remove it I break the arduino.

So if you don't know how to use the sensor... ok!! it doesn't matter but don't mess with the people who are trying to develop their hobbies.

Ah!! Baseball sucks!!
64  Forum 2005-2010 (read only) / Interfacing / Re: Digipicco I2C Humidity Sensor on: November 24, 2010, 10:06:46 am
Ok, I had to tell you several things before writing all this.

I don't need to include the libraries because the compiler already knows it has to include them.

The sensor doesn't need nothing from the RTC but the arduino seller recommends me that I switched it on for avoiding bus interferences.

And the sensor starts send data after its initialization, it send 4 following bytes. They are 2 for humidty (15 bits) and other 2 for temeprature (15 bits).

Digipicco I2C from data sheet:

First of all the external microcontroller (master) sends the start condition to the slave (DigiPicco). Then the master transmits the standard 7 Bit address (0x78) or a factory customizable address. The eight bit (LSB) determines the direction of data flow and has to be set during this operation. Following, the slave (DigiPicco) acknowledges the receipt of data with the acknowledge condition (SDA kept low during a positive clock cycle). After that, the slave (DigiPicco) outputs the data values. After each data byte the master has to acknowledge the receipt of the data values by the acknowledge condition, except before the stop condition has been sent by the master itself.

The humidity and the temperature values exist of two bytes each. The first two bytes are the humidity values and the second two bytes are the temperature values, 15 bit each. This sequence is repeated indefinitely until the stop condition has been sent (also refer to diagram below).

Start Condition:
SDA changes from high to low during SCL is in high condition.

Stop Condition:
SDA changes from low to high during SCL is in high condition.

PD: I have to say that I'm new with arduino, so I'm trying to do this the better I can. Thanks
65  Forum 2005-2010 (read only) / Interfacing / Re: Digipicco I2C Humidity Sensor on: November 24, 2010, 07:18:42 am
Ok, I'm going to tell you all the things I've been finding until now.

First of all, its website:

I talked with their engineers and they said me that we have to use address 0x78 (7 bit) plus one bit for read (1) or write (0).

I'm working with a waspmote from Libelium, and I'm using their libraries, but when I tried to use the 'requestFrom' or 'endTransmission' instructions the system halts.

Asking for this to the Libelium staff, they told me that i have to switch on the RTC (it uses the I2C bus too), but when I do that, my system halts too when it arrives to the 'RTC.begin' instruction.

Also I don't know how to read the humidity correctly.

After a lot of test, I have a code that seems to work sometimes.

uint8_t ADDRESS   = B1111000;     //0x78;
uint8_t ADDRESS_2 = B11110000;    //0xF0;
uint8_t ADDRESS_3 = B11110001;    //0xF1;
uint16_t MASK     = B01111111;
uint8_t REG       = 0x00;

uint8_t quantity=4;
uint8_t info[4];
uint16_t     temperature=0;
uint16_t     humidity=0;
int     i=0;

void setup()
  if( !Wire.I2C_ON ) Wire.begin();

void loop()
  USB.println("\tHumidity & Temperature:\n");
//  Wire.requestFrom(ADDRESS_3, quantity);

  for (i=0;i<quantity;i++)
    if (Wire.available())
//  Wire.endTransmission();

        if (i==0 || i==2)
          info = info & MASK;
  humidity = (info[0] << smiley-cool + info[1];
  USB.print("Humidity: ");

  temperature = (info[2] << smiley-cool + info[3];
  USB.print("Temperature: ");

66  Forum 2005-2010 (read only) / Interfacing / Digipicco I2C Humidity Sensor on: November 03, 2010, 09:53:35 am

I've got a libelium waspmote and a digipicco I2C humidity sensor.

I' ve been reading a lot of posts and  trying several to use programs but I couldn't received nothing from my sensor.

I feed it by the 5V power of the waspmote and read it by SDA and SCL I2C channels, but it stops when it arrives to "Wire.endTransmission()" instruction, or "Wire.requestFrom(address, quantity)".

I checked this with another sensor and another waspmote but it doesn't works neither.

Is there anybody who has used this sensor??
Can someone help me??
Pages: 1 ... 3 4 [5]