Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
942 Views

How to interface Intel Galileo Gen 2 with ds1820 ?

Jump to solution

Hi,

I interfaced ds1820 with Intel Galileo Gen 2 and i using MRAA libraries to develop code . i can't get the digital value .

any body know share with me. how to get the value from ds1820


Accepted Solutions
Highlighted
Employee
19 Views

Hello chinna007,

There are some issues with one-wire devices such as the DS18x20 sensors. Some users have been trying to use one-wire devices with no success with Galileo. The issue is caused by the Galileo's I/O speed. Please check the following threads about this topic:

The threads above discuss the use of the DS18x20 sensors. Also, in the second thread there is an user who was able to use the sensor successfully, but he had to create a library to make it work, so you will probably have to do the same since the libraries already available are not compatible with the way the sensor works.

Regards,

Diego.

View solution in original post

5 Replies
Highlighted
Employee
20 Views

Hello chinna007,

There are some issues with one-wire devices such as the DS18x20 sensors. Some users have been trying to use one-wire devices with no success with Galileo. The issue is caused by the Galileo's I/O speed. Please check the following threads about this topic:

The threads above discuss the use of the DS18x20 sensors. Also, in the second thread there is an user who was able to use the sensor successfully, but he had to create a library to make it work, so you will probably have to do the same since the libraries already available are not compatible with the way the sensor works.

Regards,

Diego.

View solution in original post

Highlighted
Novice
19 Views

Hi DiegoV_Intel,

I tried the below following Arduino code .

# include

# include

// Data wire is plugged into pin 2 on the Arduino

# define ONE_WIRE_BUS 2

// Setup a oneWire instance to communicate with any OneWire devices

// (not just Maxim/Dallas temperature ICs)

OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.

DallasTemperature sensors(&oneWire);

void setup(void)

{

// start serial port

Serial.begin(9600);

Serial.println("Dallas Temperature IC Control Library Demo");

// Start up the library

sensors.begin();

}

void loop(void)

{

// call sensors.requestTemperatures() to issue a global temperature

// request to all devices on the bus

Serial.print(" Requesting temperatures...");

sensors.requestTemperatures(); // Send the command to get temperatures

Serial.println("DONE");

Serial.print("Temperature for Device 1 is: ");

Serial.print(sensors.getTempCByIndex(0)); // Why "byIndex"?

// You can have more than one IC on the same bus.

// 0 refers to the first IC on the wire

}

After compiling in Arduino IDE the following warning will come.

WARNING: library OneWire claims to run on [i585-uclibc] architecture(s) and may be incompatible with your current board which runs on [i586-uclibc] architecture(s).

 

But i want how to interface DS1820 using MRAA libraries .

 

 

 

Regards,

chinna007

 

 

 

0 Kudos
Highlighted
Employee
19 Views

Hello chinna007,

The message you got is because of the Arduino IDE version that you are using. I recommend you to use the Arduino IDE 1.6.0 which is the most stable version to work with Galileo and Edison boards: http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Windows.7z http://downloadmirror.intel.com/24783/eng/IntelArduino-1.6.0-Windows.7z

On the other hand, as I explained to you in my previous post, there are issues with the one-wire devices. These issues are caused by the Galileo's I/O speed. This means that regardless of the library used, the issues are going to be present. Unfortunately, there are not MRAA examples for one-wire devices. In the following thread a user was able to make the sensor work but he wrote his own library for it:

You can try to write your own library too, based on the Arduino OneWire library and the MRAA library, but as I said, there are not MRAA examples for one-wire devices.

Additionally, in the following threads you will find interesting information about working with one-wire devices in Galileo and the I/O speed, which is the main issue with these devices:

Regards,

Diego.

0 Kudos
Highlighted
Novice
19 Views

Hi DiegoV_Intel,

In Intel Galileo Gen 2 in between I/O and Quark processor MUX/SHIFT is there.

But an Arduino board means there is no MUX in between I/O port and ATMEGA controller. I/O directly connected to ATMEGA controller.

https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf

 

May be that reason we can't interface 1-wire device with Galileo Gen 2.

 

Regards,

chinna007

0 Kudos
Highlighted
Beginner
19 Views

Can I assume this is still an issue ?

is there any work-around to getting the DS1820 to work with the Gen 2

0 Kudos