Jump to content

290128050_ConstellationBanner.jpg.6eb5d1fe82e0853d4c3b80a745d12d74.jpg

DIY cloud and rain sensor with ascom support?


Corpze
 Share

Recommended Posts

Not quite (bad at explaining)

When i first open up my sequence program, i choose your ASCOM driver and check the settings in the dialog, all values are correct (higher delta than 21 degrees and not raining) - Is Safe, i then press ok and closes ASCOM chooser box.

The sequence program indicates Safe - everything is in order.

I then open up the ASCOM chooser and setup dialog and maybe here is what is wrong (that i am opening it again) - when i do this, i cannot see the values in the setup dialog from the Hardware, it display N/A at all values.

This is what i came up with during som more tests;

Assumed sensor values (can't check them)                  Sequence program
Dry                                                                                      - Safe, i than applied water (read next line)
Rain                                                                                    - Still reports Safe
Delta lower than 21                                                             - Not Safe, i than applied heat to the sensor making it (next line)
Delta higher than 21                                                            - Still reports Not safe, even after 10minutes with heat present to make a high delta
In conclusion;
Applied water before choosing ASCOM driver, opened setup dialog, that said Not safe,
 pressed ok and now the sequence program sais Not OK - as it should
I than dried off the rain sensor, the sequence program still sais Not ok. I cannot now open the setup dialog because it
can't display the values (N/A)
I don´t know if it is the sequence program that is not updating the values or the driver :/

/ D

Wish I could test this "sequence" software here.  Below is how I expect this to work...

Open the sequence software, open the ASCOM Safety Monitor chooser. 

Select my ASCOM driver, select [Configure], my setup dialog opens, set the serial port, see that the readings are ok and all is working.

Then, select [Ok] in setup dialog. Then, select [Ok] in the chooser.  Then, select [Connect] in the sequence software. 

The sequence software should then connect and start polling the IsSafe() function which talks to the Arduino and returns true or false.

Disconnect manually or, normally, automatically on exit from sequence software (which closes the port.)

The ASCOM install has a "Device Connection Tester" that's able to do all of the above instead of the sequence software.  This is what I've been testing on.

Howard

Link to comment
Share on other sites

Update (again) :-)

I tried with MaxPilote and that works like a charm, it looks like a bug in the ASA's Sequence program then... I will consult on their forum if there is anyone there that has similar problems.

/D

Edited by Corpze
Link to comment
Share on other sites

Indeed the Sequence program that works a bit different, it changes status first when i activate a imaging plan, so it seems to be working after all.

I will post a comment to perhaps change this in the upcoming version of Sequence, that it changes status even when a plan is not active.

Does the driver send commands to the sequence programs or is the Sequence programs requesting status?

/Daniel

Link to comment
Share on other sites

Indeed the Sequence program that works a bit different, it changes status first when i activate a imaging plan, so it seems to be working after all.

I will post a comment to perhaps change this in the upcoming version of Sequence, that it changes status even when a plan is not active.

Does the driver send commands to the sequence programs or is the Sequence programs requesting status?

/Daniel

That's good to know, thanks for hunting down the problem.  It's the sequence program that requests the status through the ASCOM driver's IsSafe() property.

I've started adding the rain sensor threshold setting support to the driver, still a few odds and ends to tie up though.  Busy working around the house over the weekend, soon.

Take it easy,

Howard

Link to comment
Share on other sites

Yea, i will keep on testing different conditions and see how the Sequence program responds during an active image session.

That sounds good, and don't feel any pressure at all, it's just a DIY project :)

I am writing up a complete read me with sll components needed, how to load the code, command.ino and fine tuning the thresholds, will upload it when i'm finished with that.

/Daniel

Link to comment
Share on other sites

Absolutely, upload it.

Yea, that might come in handy when setting the threshold.

/Daniel

The updated ASCOM driver and firmware is on GitHub, I also added your readme.  The firmware needed to be updated since a new command (:Gr#) was added to return the rain sensor reading (as a floating point value between 0.0 to 1.0)  Let me know if it works alright.

Howard

Link to comment
Share on other sites

It seems to work good, it´s looks nice and clean, really like the look.

The sliders work properly, and i could trigger different states just by changing the sliders.

But let me see if i understand them correctly:

When i am altering the "Dry"slider, i am just changing the sensitivity when the Arduino is receiving values from the rain sensor that corresponds to the values "Dry"?

so to get "Dry", i had to move the slider all the way up to 100%, otherwise it was "raining"

As by now, i have not tested it with water (mist/droplets/big drops/soaked)

But it works nice!

Awesome work!

Link to comment
Share on other sites

The 10bit ADC of the Arduino returns a value of 0 to 1023.  I do a little math on it and turn that into a floating point number of 0.0 to 1.0 which is then passed to the ASCOM firmware when requested (:Gr#).  For the dry slider, if rain sensor value is < the dry setting the indication is dry.  For the wet slider, if rain sensor value (0 to 1 = 0 to 100%) is > the wet slider the indication is raining (which is also unsafe.)  Anything between gives a damp indication.

[so to get "Dry", i had to move the slider all the way up to 100%, otherwise it was "raining"]

The dry slider should never be above the wet slider.  Probably you didn't have the wet slider far enough to the right. 

I just updated the ASCOM driver automatically keep dry thresholds below wet thresholds since it should always be that way.

Glad you like, enjoy.

Howard

Link to comment
Share on other sites

Just updated, it seems that it is reporting 100% rain or 100% dry, nothing in between, and the only way to get "Dry" is to have both sliders to 100%

And even then, it won't report Status: Safe

Check the picture for the settings and status.

post-28724-0-64450200-1438639934.png

/Daniel

Link to comment
Share on other sites

I'm thinking firmware issue or the hardware is really returning that value...

You updated to the firmware I posted earlier today?  Even if you didn't, the rain sensor value shouldn't go to (100%.)

The :Gr# command should return a number between 0.0 and 1.0, if the sensor is dry more toward 0.0 if wet more toward 1.0  Try this and let me know,

If every thing is working, a (100%) value indicates that the input is at maximum, at or above 5V?

This is the one sensor input that actually kind of works here... the open input floats up and down at around (24%) on my Arduino.

Link to comment
Share on other sites

It could be hardware indeed, i am not excluding any options.

Newest fw, .ino and driver -

I have suceeded triggering Safe, Unsafe in different scenarios. The cloud -part are working flawless.

The rain sensor seems to work a bit backwards.

I applied two small drops of water, (sensor indicates around 40% +/-1 %) that will be about where i want to trigger the unsafe command, adjusted the "Wet-threshold" to 40% to report raining, that works just fine

I then dried of the sensor, (sensor Indicates 98%) and now it reports "raining" and triggering an "Unsafe" Status.

So after this test, it looks like the hardware does what it should, at least it reports some values :)

/Daniel

Link to comment
Share on other sites

Looks like that did the trick, i am remotely checking the parameters from Norway now, tomorrow evening, i am most certain home again and can verify with water as well. But it seems to be acting properly now!

Link to comment
Share on other sites

I have been testing the new slider settings and they work very well, i have tested with waterdrops, a spray, and fine tuned the settings as well it can be done without the sensor enclosure mounted outside under the real conditions.

I will now test it further with a real sequense run in my Sequence program.

I will also refine the Read Me file with how to fine tune the sliders.

Looks like we are closing in to releasing 1.0 :)

Glad you deside to give this a go, and a big cheer to hdutton who has done a remarkable job, truly awesome.

/Daniel

Link to comment
Share on other sites

I have updated the Read Me with instructions how to set the threshold sliders and a picture of the setup dialog.

/Daniel

attachicon.gifCloud Sensor Evo Plus.doc

Nice to hear that things are working so far.  I'll upload the the new readme to GitHub later today.

The information you created here really ties everything together.  I didn't know the cheap eBay rain sensor existed and I'll be adding one to my (half started project) weather station.

Link to comment
Share on other sites

No need to rush, i have just received my waterproof enclosure, and mounted all sensors with silicon. Should have dried by tomorrow, then it will be mounted outside :)

Note that there is different rain sensors, one with bigger gaps between the wires, and one with tighter gaps. I have the one with bigger gaps, don't know witch is the best though.

/Daniel

Link to comment
Share on other sites

Trying to upload the codes and geting this? is this something I had overlook

Arduino: 1.6.5 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Using library dallas-temperature-control in folder: C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control (legacy)

Using library OneWire in folder: C:\Users\Les\Documents\Arduino\libraries\OneWire (legacy)

Using library SoftI2CMaster-master in folder: C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master (legacy)



C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega -IC:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control -IC:\Users\Les\Documents\Arduino\libraries\OneWire -IC:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master C:\Users\Les\AppData\Local\Temp\build443094298286724310.tmp\New_clould_rain_sensor.cpp -o C:\Users\Les\AppData\Local\Temp\build443094298286724310.tmp\New_clould_rain_sensor.cpp.o

In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'void i2c_wait_scl_high()':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:170:31: error: 'SCL_PORT' was not declared in this scope
 #define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)
                               ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:208:23: note: in expansion of macro 'SCL_IN'
      : : [sCLIN] "I" (SCL_IN), [sCLPIN] "I" (SCL_PIN));
                       ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:208:46: error: 'SCL_PIN' was not declared in this scope
      : : [sCLIN] "I" (SCL_IN), [sCLPIN] "I" (SCL_PIN));
                                              ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'boolean i2c_init()':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:166:38: error: 'SCL_PORT' was not declared in this scope
 #define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:262:23: note: in expansion of macro 'SCL_DDR'
        [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN),
                       ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:262:47: error: 'SCL_PIN' was not declared in this scope
        [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN),
                                               ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:264:23: note: in expansion of macro 'SDA_DDR'
        [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN),
                       ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:264:47: error: 'SDA_PIN' was not declared in this scope
        [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN),
                                               ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'bool i2c_start(uint8_t)':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:282:25: note: in expansion of macro 'SDA_DDR'
      : : [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN),
                         ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:282:49: error: 'SDA_PIN' was not declared in this scope
      : : [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN),
                                                 ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:170:31: error: 'SCL_PORT' was not declared in this scope
 #define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)
                               ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:283:21: note: in expansion of macro 'SCL_IN'
        [sCLIN] "I" (SCL_IN),[sCLPIN] "I" (SCL_PIN));
                     ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:283:43: error: 'SCL_PIN' was not declared in this scope
        [sCLIN] "I" (SCL_IN),[sCLPIN] "I" (SCL_PIN));
                                           ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'bool i2c_rep_start(uint8_t)':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:166:38: error: 'SCL_PORT' was not declared in this scope
 #define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:307:25: note: in expansion of macro 'SCL_DDR'
      : : [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN),[sCLIN] "I" (SCL_IN),
                         ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:307:49: error: 'SCL_PIN' was not declared in this scope
      : : [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN),[sCLIN] "I" (SCL_IN),
                                                 ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:308:25: note: in expansion of macro 'SDA_DDR'
          [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN));
                         ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:308:49: error: 'SDA_PIN' was not declared in this scope
          [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN));
                                                 ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'void i2c_start_wait(uint8_t)':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:335:24: note: in expansion of macro 'SDA_DDR'
     : : [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN),
                        ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:335:48: error: 'SDA_PIN' was not declared in this scope
     : : [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN),
                                                ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:170:31: error: 'SCL_PORT' was not declared in this scope
 #define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)
                               ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:336:20: note: in expansion of macro 'SCL_IN'
       [sCLIN] "I" (SCL_IN),[sCLPIN] "I" (SCL_PIN));
                    ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:336:42: error: 'SCL_PIN' was not declared in this scope
       [sCLIN] "I" (SCL_IN),[sCLPIN] "I" (SCL_PIN));
                                          ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'void i2c_stop()':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:166:38: error: 'SCL_PORT' was not declared in this scope
 #define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:355:25: note: in expansion of macro 'SCL_DDR'
      : : [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN), [sCLIN] "I" (SCL_IN),
                         ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:355:49: error: 'SCL_PIN' was not declared in this scope
      : : [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN), [sCLIN] "I" (SCL_IN),
                                                 ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:356:25: note: in expansion of macro 'SDA_DDR'
          [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN));
                         ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:356:49: error: 'SDA_PIN' was not declared in this scope
          [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN));
                                                 ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'bool i2c_write(uint8_t)':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:166:38: error: 'SCL_PORT' was not declared in this scope
 #define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:431:22: note: in expansion of macro 'SCL_DDR'
       [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN), [sCLIN] "I" (SCL_IN),
                      ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:431:46: error: 'SCL_PIN' was not declared in this scope
       [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN), [sCLIN] "I" (SCL_IN),
                                              ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:432:22: note: in expansion of macro 'SDA_DDR'
       [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN), [sDAIN] "I" (SDA_IN));
                      ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:432:46: error: 'SDA_PIN' was not declared in this scope
       [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN), [sDAIN] "I" (SDA_IN));
                                              ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h: In function 'uint8_t i2c_read(bool)':
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:166:38: error: 'SCL_PORT' was not declared in this scope
 #define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:500:22: note: in expansion of macro 'SCL_DDR'
       [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN), [sCLIN] "I" (SCL_IN),
                      ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:500:46: error: 'SCL_PIN' was not declared in this scope
       [sCLDDR] "I"  (SCL_DDR), [sCLPIN] "I" (SCL_PIN), [sCLIN] "I" (SCL_IN),
                                              ^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
                 from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
                 from C:\Users\Les\Documents\Arduino\libraries\OneWire/OneWire.h:7,
                 from C:\Users\Les\Documents\Arduino\libraries\dallas-temperature-control/DallasTemperature.h:22,
                 from New_clould_rain_sensor.ino:1:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:165:38: error: 'SDA_PORT' was not declared in this scope
 #define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
                                      ^
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:501:22: note: in expansion of macro 'SDA_DDR'
       [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN), [sDAIN] "I" (SDA_IN)
                      ^
In file included from New_clould_rain_sensor.ino:5:0:
C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master/SoftI2CMaster.h:501:46: error: 'SDA_PIN' was not declared in this scope
       [sDADDR] "I"  (SDA_DDR), [sDAPIN] "I" (SDA_PIN), [sDAIN] "I" (SDA_IN)
                                              ^
New_clould_rain_sensor.ino: In function 'void processCommands()':
New_clould_rain_sensor.ino:47:24: error: 'FirmwareNumber' was not declared in this scope
New_clould_rain_sensor.ino:53:24: error: 'FirmwareName' was not declared in this scope
New_clould_rain_sensor.ino:63:19: error: 'ds18b20_celsius' was not declared in this scope
New_clould_rain_sensor.ino:69:19: error: 'MLX90614_celsius' was not declared in this scope
New_clould_rain_sensor.ino:77:19: error: 'delta_celsius' was not declared in this scope
New_clould_rain_sensor.ino:84:19: error: 'avg_delta_celsius' was not declared in this scope
New_clould_rain_sensor.ino:91:19: error: 'rainSensorReading' was not declared in this scope
New_clould_rain_sensor.ino:92:23: error: 'invalid' was not declared in this scope
New_clould_rain_sensor.ino:100:19: error: 'rainSensorReading2' was not declared in this scope
Multiple libraries were found for "SoftI2CMaster.h"

 Used: C:\Users\Les\Documents\Arduino\libraries\SoftI2CMaster-master

 Not used: C:\Program Files (x86)\Arduino\libraries\SoftI2CMaster-master

'FirmwareNumber' was not declared in this scope

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.