Show Posts
Pages: [1] 2 3 ... 5
1  Using Arduino / Networking, Protocols, and Devices / Xbee wifi on: March 07, 2014, 11:34:14 am
Hello all,
I bought a xbee wifi moudle and I am trying to connect to my home wifi network.
The XCTU finding my home network and manage to connect (the xbee gets a IP address).

But when I am trying to send or recive any data it just dont send(or recive).

I upload all my xbee options as a picture.
Thank you!
2  Using Arduino / Sensors / Re: MLX90614 sensor on: March 02, 2014, 03:50:33 am
And I did change the address. Now I have 0x5A and 0x57. But when I try to scan them all in the same time , the scan returns me black. When I scan them individualy they are working perfect.
3  Using Arduino / Sensors / Re: MLX90614 sensor on: March 01, 2014, 04:38:09 am
I am sorry, maybe I wasn't clear. I made one of them works, but when I attach 2 sensors to the arduino the I2C scanner doesn't find any of them.

What's the best method to connect 2 sensors?

4  Using Arduino / Sensors / Re: MLX90614 sensor on: February 28, 2014, 04:33:52 pm
Ok guys, thank you for the information!
I found several exmaples for multiple sensros(codes), but I didnt found any circulate(the datasheet doesnt spesificate capasitor and resistors values. And he is workign in 3.3v). Does any one have an example ?
BTW, when I attach 2 sensors to the same pins( analog 4 and 5), the I2C scaner cant find anything.
Thank you
5  Using Arduino / Sensors / MLX90614 sensor on: February 28, 2014, 12:29:52 pm
Hello all,
I am trying to use the ir thermometer sensor "MLX90614".

I Connected the sensor to the arduino and I am runnig this code;
Code:
#include <i2cmaster.h>


void setup(){
Serial.begin(9600);
Serial.println("Setup...");

i2c_init(); //Initialise the i2c bus
PORTC = (1 << PORTC4) | (1 << PORTC5);//enable pullups
}

void loop(){
    int dev = 0x5A<<1;
    int data_low = 0;
    int data_high = 0;
    int pec = 0;
   
    i2c_start_wait(dev+I2C_WRITE);
    i2c_write(0x07);
   
    // read
    i2c_rep_start(dev+I2C_READ);
    data_low = i2c_readAck(); //Read 1 byte and then send ack
    data_high = i2c_readAck(); //Read 1 byte and then send ack
    pec = i2c_readNak();
    i2c_stop();
   
    //This converts high and low bytes together and processes temperature, MSB is a error bit and is ignored for temps
    double tempFactor = 0.02; // 0.02 degrees per LSB (measurement resolution of the MLX90614)
    double tempData = 0x0000; // zero out the data
    int frac; // data past the decimal point
   
    // This masks off the error bit of the high byte, then moves it left 8 bits and adds the low byte.
    tempData = (double)(((data_high & 0x007F) << 8) + data_low);
    tempData = (tempData * tempFactor)-0.01;
   
    float celcius = tempData - 273.15;
    float fahrenheit = (celcius*1.8) + 32;

    Serial.print("Celcius: ");
    Serial.println(celcius);

    Serial.print("Fahrenheit: ");
    Serial.println(fahrenheit);

    delay(1000); // wait a second before printing again
}

The code himself is running good, my problem is the measurements.

When I am putting my hand 5cm infront of the sensor I am geting result of 22+-, but when I am taking my hand away(15-20cm) the result are changing,.

Is this sensor has some distance limit?

Thank you.
6  Using Arduino / LEDs and Multiplexing / Re: 74F675A problem on: May 11, 2012, 01:20:21 am
I dont want to use this option. Its usng all arduino's pins.
I want to use a serial shifter. Whats the best shifter for ths application?
7  Using Arduino / LEDs and Multiplexing / Re: 74F675A problem on: May 10, 2012, 02:22:30 pm
HY_TFT320
8  Using Arduino / LEDs and Multiplexing / Re: 74F675A problem on: May 10, 2012, 01:13:53 pm
What's the best module  for my purpose (Connecting a 16 bit lcd) ?
9  Using Arduino / LEDs and Multiplexing / Re: 74F675A problem on: May 09, 2012, 10:14:51 am
I connected this chip like you said and upload this code:
Code:
const int latchPin = 5;
const int chipselect = 4;
const int clockPin = 3;
const int dataPin = 2;

void setup()
{
    pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT); 
  pinMode(clockPin, OUTPUT);
    pinMode(chipselect, OUTPUT);
  Serial.begin(9600);
  Serial.println("reset");
}
void loop()
{
      if (Serial.available() > 0) {
    int bitToSet = Serial.read() - 48;
    registerWrite(bitToSet);
    Serial.println(bitToSet);
  }

}

void registerWrite(int your_int_data)
{
  digitalWrite (chipselect, LOW); // select the part for data transfer
digitalWrite (latchPin, LOW); // set up to move the data to the output register

shiftOut (dataPin, clockPin, MSBFIRST, highByte (your_int_data) ); // shift in the data
shiftOut (dataPin, clockPin, MSBFIRST, lowByte (your_int_data) );

digitalWrite (latchPin, HIGH); // move data to output register on low to high edge
digitalWrite (chipselect, HIGH);  // deselect the chip
}

all leds are off.

Any thing wrong with my code?
10  Using Arduino / LEDs and Multiplexing / 74F675A problem on: May 09, 2012, 08:58:23 am
Hello,
I am trying to output 16 bits with the 74F675A.

I am using this tutorial.
I connected:
 SI -> D2
SHCP ->D3
STCP ->D5
CS -> 5V


I cant make this chip work.
11  Using Arduino / General Electronics / Re: 16 bit conventor on: April 18, 2012, 07:33:28 am
I cant understand from the tutorial what to connect to the arduino.
in my chip, there are some extra more function like the r/w and the SHCP and the STCP.

Can you please help me with some diagram?
SI - serial input (I get this)
CP - active low (ground)
Witch pin goes where?
12  Using Arduino / General Electronics / Re: 16 bit conventor on: April 17, 2012, 06:37:02 am
I connect Q0 - > db01 ...etc?
And I need to change the tft library code right?

Witch pin goes to the arduino?

Thank you.
13  Using Arduino / General Electronics / 16 bit conventor on: April 16, 2012, 06:01:41 am
Hello,
I am trying to connect this tft screen to an arduino nano.

The problems is there is enough digital pins.
I googled for "serial to 16 bit" and found this: http://www.fairchildsemi.com/ds/74/74F675A.pdf.
Is thisvrealy what I need?

Thank you.
14  Forum 2005-2010 (read only) / Forum / Just wanted to ass on: July 01, 2010, 01:47:23 pm
Hi,
it was a little problem to find the new" topic button"..
Thank you.
15  Forum 2005-2010 (read only) / Troubleshooting / char array to intiger on: September 04, 2010, 07:11:25 am
Hello,
I am getting from my gps array of chars in this format:
Code:
$GPGGA,161229.487,3723.2475,N,12158.3416,W,1,07,1.0,9.0,M,,,,0000*18

All I need are thous numbers:
deg1 = 37
min1 = 232475

deg2 = 12
min2 = 1583416

How do I convert some of the chars to integer?

Thank you.
Pages: [1] 2 3 ... 5