Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Arduino UNO + GSM shield + Xbee shield on: August 05, 2013, 01:46:10 pm
Hello, I am using Arduino UNO with:

GSM shield: http://arduino.cc/en/Main/ArduinoGSMShield

Xbee shield: http://arduino.cc/es/Main/ArduinoXbeeShield

I am trying that system with Xbee shield above gsm shield (I have to connect with wires the ICSP of Arduino UNO to Xbee shield, as you an see in the link: http://www.sindono.com/stacking-an-arduino-ethernet-shield-and-an-xbee-shield/).

I am trying a code that works correctly if I try it with the shield separated, but when I try it with the whole system it reset at first.

Has anyone tried it? Help please.

Alberto.
2  Using Arduino / Project Guidance / Re: Arduino + Xbee + 3G on: November 18, 2012, 02:51:42 pm
But I think I should use 3G, and that is GSM/GPRS. My project is:

(1) Arduino + GPS + ZigBee (mote)
(2) Arduino + ZigBee + 3G ("Gateway")
(3) Smartphone Android (application)

The GPS data of (1) is sent from (1) to (2) via ZigBee. Then, (2) sends that data received (GPS data of (1)) to (3) via 3G. Can I use GSM/GPRS for that instead of 3G? I have doubts. Enough bandwith?

Is easy to connect (2) and (3) via 3G or GSM/GPRS? How can I do it?

Any project like this?

Thanks!


3  Using Arduino / Project Guidance / Arduino + Xbee + 3G on: November 18, 2012, 12:53:43 pm
Hello! I did a project with Arduino LilyPad, Bluetooth and some sensors. Now, my new project requires Arduino and both communications 3G and Zigbee. So, the device receive data via Zigbee, and then it send this data via 3G to a smartphone (application Android).

Can I use Arduino UNO + 3G/GPRS SHIELD FOR ARDUINO (http://www.cooking-hacks.com/index.php/3g-gprs-shield-for-arduino-3g-gps.html) + XBEE for Arduino (what type?) ?

Arduino UNO has enough pins? Will I need multiplexor? Will I need Arduino Mega instead of Arduino UNO?

Actually, I am a little lost. Can somebody help me?

Thansk!

Alberto.
4  International / Proyectos / Arduino + Xbee + 3G on: October 28, 2012, 03:07:23 pm
Hola, realicé un proyecto anterior con Arduino LilyPad, Bluetooth y varios sensores. Ahora, en mi nuevo proyecto, quiero usar Arduino con comunicaciones Zigbee y 3G. Es decir, la placa recibiría datos de sensores externos mediante protocolo Zigbee, y luego enviaría esos mismos datos mediante 3G ó GPRS hacia una aplicación móvil en Android.

Por favor, no estoy muy informado sobre Zigbee y 3G, por lo que toda información al respecto es bienvenida. Me gustaría saber si debo utilizar alguna placa Arduino en especial, y qué módulos de Zigbee y 3G debo usar para que ambos puedan convivir en la misma placa.

Por otra parte, la pasarela entre Zigbee y 3G, ¿será muy complicada?

Muchas gracias de antemano, y un saludo cordial a todos,

Alberto.

5  Using Arduino / Sensors / MinImu-9 (Acc, Compass and gyro) and Arduino LilyPad on: June 02, 2012, 07:55:14 am
   Hello, I used the code-example of the Pololu MinImu-9 to connect it to the Arduino LilyPad. I changed Serial.print() of the values roll, pitch and yaw in Serial.write() in order to send these values to an Android application.

   The problem is that, after a few seconds of success, the sending crash (saturate?) 4-5 seconds and later continue, but now the app receive erroneous values. Also, while the sending crash, the green light on the LilyPad board turn off.


   Can bluetooth+I2C saturate LilyPad?

   What's the meaning of the green light in the LilyPad board?

    I will be very grateful of any help! Thanks!!!
6  Using Arduino / Sensors / Accelerometer+Android on: May 18, 2012, 02:12:22 pm
    Hello! I am doing a project. I have an accelerometer connected to LilyPad. And the LilyPad is connected by bluetooth to a Android device. So an Android Application is receiving the values from the accelerometer.

    In the application I hace a cube (OpenGL), so I want to move the cube in order to get the same inclination. I saw this:


float roll = Math.atan2((Math.sqrt((yvalue*yvalue)+(xvalue*xvalue))),zvalue)*(180/(Math.PI));
float pitch = Math.atan2((Math.sqrt((xvalue*xvalue)+(zvalue*zvalue))),yvalue)*(180/(Math.PI));

gl.glRotatef(pitch, 0.0f, 0.0f, 1.0f);
gl.glRotatef(roll, 1.0f, 0.0f, 0.0f);

Where xvalue, yvalue and zvalue are the values I receive from the acceleromter of 3 axis. But it doesnt work! The cuve rotate a little, but not good.


Can anybody help me? Thanks!!
7  International / Español / Re: Saber el voltaje de referencia del ADC on: March 21, 2012, 10:15:28 am
Claro, se supone que son 5 voltios teóricos, pero el hilo conductor disipa y la alimentación que llega es menor. De unos ~4V por lo que veo. Pero claro, para saber con exactitud qué voltaje está utilizando, esperaba encontrar algún método que me dijera cuál es el voltaje que se está utilizando.
8  International / Español / Saber el voltaje de referencia del ADC on: March 20, 2012, 11:50:44 am
  Hola. Estoy realizando unas pruebas del sensor de temperatura MCP9700 (http://www.sparkfun.com/products/8777) con mi placa LilyPad. Estoy utilizando también una pila AAA como alimentación de la placa (http://www.sparkfun.com/products/8466). Para pasar la temperatura a grados centígrados, necesito conocer el voltaje que se está utilizando en el ADC, que es de 10 bits, haciendo: lectura = lectura * (Volt * 1024.0); donde lectura es: lectura = analogRead(pinTemperatura);

¿Cómo puedo conocer este voltaje? Se supondría que es de 5V, pero al usar los hilos conductores, el voltaje que llegará de la pila será menor (a ojo veo que es de unos ~4V). ¿No hay ninguna función de Arduino que me dé dicho voltaje que utiliza?

Un saludo y gracias!
9  Using Arduino / Project Guidance / LilyPad voltage refence of ADC of 3.3V on: March 20, 2012, 09:39:52 am
I am feeding the LilyPad with a power supply (http://www.sparkfun.com/products/8466) so it should supply a Vcc of 5V. However, I believe I am getting 3.3V, because I have connected a temperature sensor, and I get the correct read of temperature in degrees when I suppose that the voltage reference of de ADC is 3.3V doing that:

read = read * (3.3/1024.0);       //and I get ~22ºC (correct).

If I write: read = read * (5.0/1024.0), I get ~60ºC (degrees). It is not correct, although it should be. Why?

Thanks!
10  Using Arduino / Project Guidance / Re: To know the voltage reference on: March 19, 2012, 04:47:26 pm
I am using the MCP9700 temperature sensor (http://www.sparkfun.com/products/8777). Could you show me how can I use this internal reference? Thanks!
11  Using Arduino / Project Guidance / To know the voltage reference on: March 19, 2012, 01:08:17 pm
Hello! I am building a project, and now I need to get the temperature by a temperature sensor, but I have fluctuation of the power supply (AAA battery), so I can`t get the temperature in degrees if I can't know the voltage reference of de adc (Vcc). How can I know this voltage? I am using an Arduino LilyPad, so I cant`t use AREF pin because I think it has the AREF pin join to the Vcc externa (I am not sure about this). Thanks!
12  Using Arduino / Sensors / Re: Lilypad + Temperature Sensor on: March 18, 2012, 02:38:52 pm
I show the code I am using (I use a bluetooth mate gold in order to transmit the value to an Android Aplication, so I only transmit a value of byte because the degrees measured wont be higher than 255, and bluetooth only write a byte).




//LilyPad + Temperature Sensor

int tsensorPin = 2;           // Temperature sensor is connected to analog pin 2.
int tempValue;                // Variable to store the value coming from de temperature sensor.

#define BANDGAPREF 2    // Special indicator that we want to measure the bandgap.

float lectura=0;
float supplyvoltage;
int refReading;
float temp;
 
void setup()
{
  Serial.begin(115200);
}
 
 
void loop()
{
 
    //Read the temperature.
    lectura = analogRead(tsensorPin);

    //Get voltage reading from the secret internal 1.1V reference
    refReading = analogRead(BANDGAPREF);
   
    //Now calculate our power supply voltage from the known 1.1V reference.
    supplyvoltage = (1.1 * 1024.0) / refReading;
   
    lectura = lectura * (supplyvoltage/1024.0);
    temp = (lectura - 0.5) * 100;
    tempValue = (byte)temp;
   
    Serial.write(tempValue);

    //Delay
    delay(1000);
}
13  Using Arduino / Sensors / Re: Lilypad + Temperature Sensor on: March 18, 2012, 02:30:39 pm
I have could decrease the fluctuation. Now, with the battery supply, I am getting values between 56-63. But these should be around 22-23 degrees. With the FTDI USB, that supply 3.3V, I do:  read = read * (3.3/1024.0); and I get the correct 22-23. The battery supply provides 5V. In adittion, I am using the internal reference with the rule of thrre I show in the last post. It seems to be that the ADC is not using Vcc as the reference, why?
Thanks!
14  Using Arduino / Sensors / Re: Lilypad + Temperature Sensor on: March 18, 2012, 10:52:42 am
I thought use the internal reference of 1.1V in order to do a rule of three like that:

#define BANDGAPREF 14
int refReading = analogRead(BANDGAPREF);
float supplyvoltage = (1.1 * 1024) / refReading;

But the result is a power supply of ~15V, and this is impossible!

What am I doing wrong?
15  Using Arduino / Sensors / Lilypad + Temperature Sensor on: March 18, 2012, 09:14:10 am
  Hello!

   I have a Arduino LilyPad ATmega328V with a temperature sensor MCP9700. I have a correct read of temperature when the LilyPad is connected by USB FTDI of fixed 3.3V, because when I read the value of analog pin, I do this: lectura = lectura * (3.3/1024.0); But the problem occurs when I supply the LilyPad with a LilyPad Power Supply (AAA battery) (http://www.sparkfun.com/products/8466), because I think it does not supply a fixed 5V. It has fluctuation, and probably supply less than 5V because of the resistence of wire and other factors.

  So I want to know the real power supply that the LilyPad is receiving, in order to do correctly this:  lectura = lectura * (powersupply/1024.0);

  I have read something about internal reference of 1.1V, but I dont know how to use it.

  I am an amateur in Arduino, so I will very grateful of all helps. Thanks!
Pages: [1]