Yes, the SDI-12 library will conflict with SoftwareSerial, EnableInterrupt, and every single other library that defines and uses pin change interrupt vectors. This report would have more information with Not used: C:\Users\Stephanie Fulton\Documents\Arduino\libraries\Adafruit_Unified_SensorĮrror compiling for board Arduino/Genuino Mega or Mega 2560. Used: C:\Users\Stephanie Fulton\Documents\Arduino\libraries\Adafruit_Sensor Multiple libraries were found for “Adafruit_Sensor.h” Not used: C:\Program Files (x86)\Arduino\libraries\SD Used: C:\Users\Stephanie Fulton\Documents\Arduino\libraries\SD (.text+0x0): multiple definition of _vector_10′Ĭollect2.exe: error: ld returned 1 exit status (.text+0x0): multiple definition of _vector_11′ Libraries\Arduino-SDI-12-master\ (symbol from plugin):(.text+0x0): first defined hereĬ:/program files (x86)/arduino/hardware/tools/avr/bin/./lib/gcc/avr/4.9.2/././././avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions (.text+0x0): multiple definition of _vector_9′ Libraries\SoftwareSerial\ (symbol from plugin): In function SoftwareSerial::read()’: In file included from C:\Users\Stephanie Fulton\Documents\Arduino\libraries\Arduino-SDI-12-master/SDI12.h:44:0,įrom C:\Users\Stephanie Fulton\Documents\Arduino\Mega\SedPondV11\SedPondV11.ino:52:Ĭ:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\parity.h:36:2: warning: #warning “This file has been moved to. I am also including below the compile errors I received when trying to compile with the new POL code.Ĭould you please tell me how to install and/or edit your modified Software Serial library to accommodate our POL system? I am using digital pin 62 (Serial) = A8 on Mega (RX) and digital pin 63 (Serial) = A9 on Mega (TX) to communicate with the Pro Mini/Uno.Īrduino: 1.8.4 (Windows 7), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)” It looks as though I am running up against the conflict between the Software Serial library (included in the Mega code to send the “k” to the Pro Mini/Uno) and your SDI12 library we’re using to run a Decagon CTD-10 (which I have now learned is based on the Software Serial library). While looking online, and then here on your SDI12 forum, I found that folks have received compiler errors similar to the ones I have received. If it doesn’t receive a “k” from the Mega after a certain number of cycles, the Pro Mini/Uno reboots the Mega. The Pro Mini/Uno polls the Mega every cycle looking for the letter “k” coming from the Mega to ensure that the Mega is still running. My code was compiling fine until I added the code to the data logger code on the Mega for the POL system, which uses Software Serial to communicate with the Pro Mini/Uno. We are powering everything with a 12V battery regulated down to 5V with Pololu voltage regulators. Additional sensors/components include: Sparkfun MS5803 with a 3V/5V bi-directional level shifter Adafruit SHT31-D Adafruit real time clock DS3231, an LCD screen with two hall effect sensors to turn the backlight on/off and flip pages of text, and a microSD card with green/red LED which triggers red when the SD card write fails. Water quality sensors include Atlas conductivity, ORP, DO, and pH and a Decagon CTD-10. We are using the Arduino Mega as the primary data logger with a separate “proof-of-life” (POL) system (read below in next paragraph) on a separate board using an Arduino Pro Mini programmed as an Uno. We are developing a data logger to collect climate, water chemistry (Atlas Scientific sensors) and water level data (Decagon CTD-10).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |