Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Interfacing / Using Arduino and Logomatic V2 - RTC use on: March 29, 2010, 10:13:07 am
Hi all.

I would like to use Arduino2009 to :
  1. Acquire analog data
  2. Work on data (conversion, mathematical operations)
  3. Send them over the air (with Zigbee modules)
  4. Log them on SD card

Everything is OK for the first 3 steps.

To log data on SD card, I use the logomatic V2 data logger. My problem is that I want to use RTC on logomatic to add a timestamp to arduino's measured data.

It seems I have to update / create a specific firmware to load on the logger through SparkFun LPC2148 USB bootloader.
I just found this on the web http://forum.sparkfun.com/viewtopic.php?p=65542 and unfortunately, it sounds a bit like chinese to me.

Do you know where to get kind of complete information ? (firmware extension files, detailled instruction on RTC activation, ...)
Does someone succeeds in writing timestamp with logomatic V2 ?

Thanks.

Jérémy
2  Forum 2005-2010 (read only) / Troubleshooting / Re: XBEE module compatibility - Chip/antenna version on: February 15, 2010, 08:09:55 am
Hi.

Thanks both. I have set the PAN ID properly (3332 both) and now it works.
Thanks Pauls for the MY and DL explanation. Very clear.

The connection "out of the box" is now OK.

A last question to sylvie369 : How did you updated firmwares ? I remember I tried to set the 1084 to 10E6 and click on XCTU "write" button without success.

Thanks.

Jérémy
3  Forum 2005-2010 (read only) / Troubleshooting / XBEE module compatibility - Chip/antenna version on: February 15, 2010, 04:05:57 am
Hi all.

I have bought 2 XBEE modules from Sparkfun. Reading the exemples, everything looks very simple (serial connection without ZIGBEE specific configuration). But I do not manage do make them communicating.

I have read that if there are differences in module versions, the module may not be able to communicate.

I am using Arduino2009 + XBEEShield + XBEE module.
The modules I use are the 1mW chip and 1mW wire antenna :
- http://www.sparkfun.com/commerce/product_info.php?products_id=8664
- http://www.sparkfun.com/commerce/product_info.php?products_id=8665

I use default settings (restore options with XCTU). PAN ID is 3332 for both.

With XCTU, I notice that the "serie" is the same (XB24 and 802.15.4 thus serie 1 module) but the version is not the same (10E6 and 1084).

Can you confirm me that these modules are able to communicate without specific configuration or firmware update ?
Even with the simple "L" / "H" physical pixel test (arduino xbee topic) ?

Thanks for your help.

Jérémy
4  Forum 2005-2010 (read only) / Troubleshooting / Broken PIN on ATMEGA328P on: February 15, 2010, 04:24:06 am
Hi all.

I am using Arduino2009 with ATMEGA328P. I use XBEE module thus I have to remove frequently the microcontroller to configure the XBEEs.

As these pins are pretty weak and my hands are pretty rough, I finally succeed in breaking a pin...  :-/

According to this file (http://www.atmel.com/dyn/resources/prod_documents/8271.pdf), the broken pin is pin 15( PB1 (OC1A/PCINT1), page 2, PDIP version).

Looking at pages 84/85, I read this :
[color=#0000ff]OC1A, Output Compare Match output: The PB1 pin can serve as an external output for the Timer/Counter1 Compare Match A. The PB1 pin has to be configured as an output (DDB1 set(one)) to serve this function. The OC1A pin is also the output pin for the PWM mode timer
function.
PCINT1: Pin Change Interrupt source 1. The PB1 pin can serve as an external interrupt source.
[/color]

This is a bit chinese for me. Can anyone explain me the kind of functionnality I lost ? I uploaded with sucess several program on the broken microcontroller and everything looks fine...

Thanks for your help.

Jérémy
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Using Arduino2009 and XBee module on: February 04, 2010, 03:58:27 am
Mistake with previous message :

Replace "To conclude with the sparkfun usb shield" by "To conclude with the sparkfun XBEE shield"...

Sorry for confusion.  :-/
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Using Arduino2009 and XBee module on: February 04, 2010, 03:55:59 am
Hi jscott.

Well the thing is I am using XBEE Serie 1 module (FCC ID = OUR-XBEE) thus I was thinking these module were easier to set up than the 2.5.

I'll have a look at your hardware. My real problem with the shield I use is the lack of documentation (or I am too stupid to find it on the web...)

To conclude on the sparkfun usb shield (if it may help someone), here are my tests :

  UP JUMPER  I  DOWN JUMPER I XCTU CONFIGURATION
 ----------------------------------------------------------------
      USB       I       USB            I    SUCCESSS
-----------------------------------------------------------------
      XBEE     I       XBEE           I     FAIL
---------------------------------------------------------------
      USB      I       XBEE           I    FAIL
-----------------------------------------------------------------
      XBEE     I       USB            I   FAIL
-----------------------------------------------------------------
       NONE   I       NONE          I    FAIL (plus a windows
                  I                         I    usb peripheral recognition
                  I                         I    problem message)
-----------------------------------------------------------------

=> My conclusion : both jumpers have to be switched to either XBEE or USB on the sparkfun XBEE shield.


Thanks.

Jérémy

7  Forum 2005-2010 (read only) / Troubleshooting / Re: Using Arduino2009 and XBee module on: February 03, 2010, 11:33:45 am
Hi.
Thanks for your answer, you was right. I had seen the "remove the microcontroller" but was thinking it was the XBEE module.

I just had an issue with the jumpers on the XBEE shield. On the board, it is written XBEE/USB and there is a jumper above and below.
For the time being, I still don't know if :
   - both jumpers have to be moved for switch to USB/XBEE mode
   - just one jumper is the USB/XBEE switch (but which one ?)
And I can't manage to find any reliable documentation on this shield.

If anyone knows more about these jumpers...

Thanks anyway.

Jérémy

8  Forum 2005-2010 (read only) / Troubleshooting / Using Arduino2009 and XBee module on: February 02, 2010, 12:45:21 pm
Hi.
I am pretty new with arduino and already lost !
I have a arduino USB board (2009), the sparkfun USB shield (ref DEV-09063), and a XBee serie 1 module (ref WRL-08665 on sparkfun site).

I can't manage to get in command mode.
1. I tried with XCTU software and the XBee module is not detected
2. I tried with arduino 0017 (code extract below)

Thus I was wondering if the Xbee serie 1 module are compatible with my USB shield. Does any one experimented my problem ?

Or any idea why it doesn't work with XCTU ?

Do you know any step-by-step tutorial to assemble an arduino2009 + XBEE shield + XBee module Serie 1 ?

Thanks.

Jérémy

-----------------------------------------------------------------------------
Code extract to get command mode with arduino environnement :

#include <XBee.h>

XBee xbee = XBee();
int STATUS_LED = 13;
void setup()
{ xbee.begin(9600);
  Serial.begin(9600);
  setDestination();
  }

void setDestination() {
  long count = 0;
  // put the radio in command mode:
  Serial.print("+++");
  // wait for the radio to respond with "OK\r"
  char thisByte = 0;
  while (thisByte != '\r') {
    if (Serial.available() > 0) {
      thisByte = Serial.read();
    }
    if (count++ > 100000){
     Serial.print("Break code");
     break;
    }
  }
  if (count <= 100000) {
  Serial.print("Command Mode OK");

=> I always get the "Break code" message in the serial display.
9  Forum 2005-2010 (read only) / Interfacing / Re: Arduino +Sparkfuns 4-digit 7-segment 16pin display on: February 23, 2010, 03:28:14 am
Thanks for the resistance / segment explanation.

I was using 1kOhms with 5V which explains I did not see the difference (I am lucky  smiley )

Have a nice day.

Jérémy

10  Forum 2005-2010 (read only) / Interfacing / Re: Arduino +Sparkfuns 4-digit 7-segment 16pin display on: February 22, 2010, 04:13:26 am
Hi All.

After my fisrt post, I got deeper in the net and found some example here : http://nootropicdesign.com/projectlab/2009/10/.

I managed to use the display. Here is the code and a picture of the "beast" with pins explanation (actually, it only displays 1 2 3 4 but from my point of view a good example to understand how it works).
(Note : I can't manage to post a picture. If someone explain me how to do it, i'll post the picture...)


The code does not use decimal points and colons but as soon as you will have understand the code, you will agree that it is easy to add.

A question for hari : I don't understand why you got so many resistances ? I only used 1 resistance per digit positive entry (not for A, B, C, D, E, F, G...). Is it a mistake ?

If any questions, feel free.

Jérémy

------------------ CODE TESTED OK ------------------------
// These are indexes into the groundPins array
#define G 6
#define F 5
#define E 4
#define D 3
#define C 2
#define B 1
#define A 0

int groundPins[8] = {0, 1, 2, 3, 4, 5, 6, 7};
int digitPins[4] = {8, 12, 10, 11}; // positive voltage supply for each of the 4 digits
int ON = HIGH;
int OFF = LOW;
int number[10][7]; // holds information about which segments are needed for each of the 10 numbers
int digit[4]; // holds values for each of the 4 display digits



void setup()
{
  // Fill the numbers array
  initNumber();  
  // Set ground pin to output/high
  for(int i=0; i < 8; i++)
  {
    pinMode(groundPins, OUTPUT);
    digitalWrite(groundPins, HIGH);
  } // end  for(int i=0; i < 8; i++)
 
  // Set digit pin to output/low
  for(int i=0; i < 4; i++)
  {
    pinMode(digitPins, OUTPUT);
    digitalWrite(digitPins, LOW);
  } // end for(int i=0; i < 2; i++)


  
} // end void setup()


void loop()
{
  digit[0] = 1;
  digit[1] = 2;
  digit[2] = 3;
  digit[3] = 4;
  DisplayNumber();
  

} // end void loop()


void DisplayNumber()
{
    
  
  for(int g=0; g < 7; g++)
  {
    digitalWrite(groundPins[g], LOW);
    for(int i=0; i < 4; i++)
    {
      if (digit < 0)
      {
        continue;
      }
      digitalWrite(digitPins, number[digit][g]);
    }
   // delay(getDelay());
    delay(1); // Don't understand why I Have to set a delay
    digitalWrite(groundPins[g], HIGH);
  }
  
} // end void DisplayNumber()


int getDelay() {
  if (millis() > 10000) {
    return 0;
  } else {
    return (int) (((10000 - millis()) / 10000.0) * 125);
  }
}

void initNumber()
// Fill an array (declared as global variable) with high/low values for numbers
{
  number[0][G]  = OFF;
  number[0][F] = ON;
  number[0][E] = ON;
  number[0][D]  = ON;
  number[0][C] = ON;
  number[0] = ON;
  number[0][A]     = ON;

  number[1][G]  = OFF;
  number[1][F] = OFF;
  number[1][E] = OFF;
  number[1][D]  = OFF;
  number[1][C] = ON;
  number[1] = ON;
  number[1][A]     = OFF;

  number[2][G]  = ON;
  number[2][F] = OFF;
  number[2][E] = ON;
  number[2][D]  = ON;
  number[2][C] = OFF;
  number[2] = ON;
  number[2][A]     = ON;

  number[3][G]  = ON;
  number[3][F] = OFF;
  number[3][E] = OFF;
  number[3][D]  = ON;
  number[3][C] = ON;
  number[3] = ON;
  number[3][A]     = ON;

  number[4][G]  = ON;
  number[4][F] = ON;
  number[4][E] = OFF;
  number[4][D]  = OFF;
  number[4][C] = ON;
  number[4] = ON;
  number[4][A]     = OFF;

  number[5][G]  = ON;
  number[5][F] = ON;
  number[5][E] = OFF;
  number[5][D]  = ON;
  number[5][C] = ON;
  number[5] = OFF;
  number[5][A]     = ON;

  number[6][G]  = ON;
  number[6][F] = ON;
  number[6][E] = ON;
  number[6][D]  = ON;
  number[6][C] = ON;
  number[6] = OFF;
  number[6][A]     = ON;

  number[7][G]  = OFF;
  number[7][F] = OFF;
  number[7][E] = OFF;
  number[7][D]  = OFF;
  number[7][C] = ON;
  number[7] = ON;
  number[7][A]     = ON;

  number[8][G]  = ON;
  number[8][F] = ON;
  number[8][E] = ON;
  number[8][D]  = ON;
  number[8][C] = ON;
  number[8] = ON;
  number[8][A]     = ON;

  number[9][G]  = ON;
  number[9][F] = ON;
  number[9][E] = OFF;
  number[9][D]  = ON;
  number[9][C] = ON;
  number[9] = ON;
  number[9][A]     = ON;
}
---------------------------------------------------------------

11  Forum 2005-2010 (read only) / Interfacing / Re: Arduino +Sparkfuns 4-digit 7-segment 16pin display on: February 19, 2010, 04:25:31 am
Hi.

I was about to send the same post as you...

Did someone successfully used these 4digit 7segment 16 pin displays ?

Thanks.

Jérémy
12  Forum 2005-2010 (read only) / Interfacing / Re: Using Several LM335 with ARDUINO2009 on: July 12, 2010, 02:09:03 am
Hi Ioniser,

I did not found the solution to my problem. I think I have well understood the pins configuration(i.e. bottom view).

Finally, I did the conclusion that arduino power supply was limited to supply 5 or 6 analog sensors as I had sometimes problems to supply sensors with Arduino through USB hub.

All I can say is that I swapped to DS18B20 digital temperature sensors. As it works with one wire bus, you only need one digital pin for ALL sensors which is much more convenient when working with several types of sensors. Nevertheless, do not use them in parasite power mode if you need 1 Hz or higher. I can explain you if you're interested.

The bad bad point is the price (around 5 to 7 dollars as I remember).

If you find a solution with LM335, please let me know. If any questions on DS18B20, I may help you.

Good luck.

Jérémy
13  Forum 2005-2010 (read only) / Interfacing / Re: Using Several LM335 with ARDUINO2009 on: March 16, 2010, 11:59:51 am
I forgot to add what I read on the Arduino :

1;3.25;
2;3.25;
3;3.26;
4;3.26;
5;3.27;

The first column is the sensor ID
The second is the analog value through the ADC 10 bits :
// Analog Read
tp_Analog=analogRead(_pin);
tp_Analog=tp_Analog/(2^5);


As
// Conversion in °C
tp_Analog=tp_Analog*100-273.15;
The temperatures are around 55° and I do not live in the sahara !  smiley
Regards.

Jérémy
14  Forum 2005-2010 (read only) / Interfacing / Re: Using Several LM335 with ARDUINO2009 on: March 16, 2010, 11:54:09 am
   Thanks for your help.

  Here is what I did :


   -------------------------------------------------- (+)5V(-)--
    I                 I            I            I            I                 I
    R                R           R           R            R                I
    I                 I            I           I             I                 I
    I                 I            I           I             I                 I
    (+)-> A1   (+)->A2  (+)->A3(+)->A4  (+)->A5        I
    LM             LM          LM         LM          LM               I
    (-)             (-)          (-)         (-)           (-)              I
    I                 I            I           I             I                I
    --------------------------------------------------------------

I tried with several resistors. Currently, I am using R=2.2KOhms but I also tried with higher resistors, the main thing is to keep the intensity in every branches in the LM335 range (0.4mA<i<5mA).

The adjustement pin is not wired as I am referring to the first example in LM335 documentation (basic temperature sensor).

If any suggestions...

Jeremy
15  Forum 2005-2010 (read only) / Interfacing / Using Several LM335 with ARDUINO2009 on: March 16, 2010, 10:59:42 am
Hi all.

I would like to monitor temperature in an oven to check if temperature is homogeneous in the hot volume.

I have bought 5 LM335A sensors and an Arduino2009.

With one LM335A, the wiring is easy : On the Arduino 5V pin, i wire a 1kOhms resistor then the LM335A positive, then the LM335A negative pin, then the ground. The LM335+ pin is on the analog1 entry.
=> Everything looks fine, temperature seems OK.

I add the 5 LM335A in parrallel on the 5V Arduino pin and :
1. Intensities are high (as the total resistor is low).
2. The signal of the LM335A is constant even if I heat them.
I tried to compute an equivalent resistance and adjust the resistor values (set them higher) but although the tension changes, the temperature value is wrong.

I guess there is an electronic problem behind this, but I can not figure out what is the cause.

Does it means something for you ? Anyone faced this problem ?
In other words, is it stupid to try to wire 5 LM335A in parrallel on the 5V power supply ?
Do I need to have separate 5V power supply ?
Is it possible to use 5 lm335A on an Arduino2009 ? If no, why ?

Thanks for your help.

Regards.

Jérémy
Pages: [1]