Pages: [1]   Go Down
Author Topic: Java error while compiling  (Read 498 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Greetings every one, i have compiled a small project that i am working on which contains three libararies and the code below:
// This Arduino sketch reads DS18B20 "1-Wire" digital
// temperature sensors.
// Tutorial:
// last modified on 28.1.13
// Notes: the addresses have to be double checked.
//        each sensor can be connected to one port/pin with one pullup resistor 4.7KOhms.
#include <OneWire.h>
#include <DallasTemperature.h>
#include <FreqCounter.h>

// Data wire is plugged into pin 3 on the Arduino 0x28, 0x6B, 0xDF, 0xDF, 0x02, 0x00, 0x00, 0xC0
#define ONE_WIRE_BUS 7

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

// Assign the addresses of your 1-Wire temp sensors.
// See the tutorial on how to obtain these addresses:

DeviceAddress insideThermometer = { 0x28, 0xF3, 0x70, 0x75, 0x04, 0x00, 0x00, 0xEF };
DeviceAddress outsideThermometer = { 0x28, 0xE0, 0x0B, 0x75, 0x04, 0x00, 0x00, 0xF0 };
DeviceAddress dogHouseThermometer = { 0x28, 0x59, 0xBE, 0xDF, 0x02, 0x00, 0x00, 0x9F };

long int frq;

void setup(void)
  // start serial port
  // Start up the library
  // set the resolution to 10 bit (good enough?)
  sensors.setResolution(insideThermometer, 10);
  sensors.setResolution(outsideThermometer, 10);
  sensors.setResolution(dogHouseThermometer, 10);

int readFrequency()
  FreqCounter::f_comp= 8;             // Set compensation to 12
 FreqCounter::start(100);            // Start counting with gatetime of 100ms
 while (FreqCounter::f_ready == 0)         // wait until counter ready
 frq=FreqCounter::f_freq;            // read result
 return frq;


void printTemperature(DeviceAddress deviceAddress)
  float tempC = sensors.getTempC(deviceAddress);
  if (tempC == -127.00) {
    Serial.print("Error getting temperature");
  } else {
    Serial.print("C: ");
    Serial.print(" F: ");

void loop(void)
  Serial.print("Getting temperatures...\n\r");
  Serial.print("Inside temperature is: ");
  Serial.print("Outside temperature is: ");
  Serial.print("Dog House temperature is: ");

  Serial.print("The Water flow frequency is =  ");
  Serial.println( readFrequency());                // print result

I am getting this error below, now i am not sure if it has compiled, it does upload it to the arduino board regadless of the error. i am confused some help please? Couldn't create: C:\Users\SHAN-D~1\AppData\Local\Temp\build7330095268426436344.tmp\OneWire\utility
Binary sketch size: 8,386 bytes (of a 32,256 byte maximum)

Pages: [1]   Go Up
Jump to: