What can i use to create an interrupt to wake a sleeping Arduino?
This using your Plant_Moisture_Sensor sketch.
Posts made by y4CdW42Ol8
-
RE: MySensor.h conflict with RF24.h?
-
RE: MySensor.h conflict with RF24.h?
When using the GW library, is there a way to communicate from one node to another, without having to go thru a controller?
I have read some of the 1.5 API, but I cant really tell if this can be done.
What about the LowPower.h library. Does it put the Radio to sleep?
-
RE: MySensor.h conflict with RF24.h?
I forgot to mention I only use the gw libary to put the 3.3v Mini to sleep.
-
MySensor.h conflict with RF24.h?
My goal is simply to Xmit the battery voltage and moisture sensor data from one Pro Mini (with RF24) to another Pro Mini (also with a RF24 radio), not using gw calls. My receiving Pro Mini will simply control a relay.
I'm trying to combine two example sketches:
- Plant_Moisture_Sensor_Low_Power
- Arduino RF24XmitExample
#include <SPI.h>
#include <MySensor.h>
#include "RF24.h"However, I'm getting compile errors. There seems to be a conflict between the MySensor gw library calls and the RF24 library calls.
The first of many compile errors I get are:
C:\Users\Dieter\AppData\Local\Temp\build3316808d9e952884aa2dded546ad6403.tmp\libraries\RF24\RF24.cpp.o: In function `SPIClass::setBitOrder(unsigned char)':C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.11\libraries\SPI\src/SPI.h:293: multiple definition of `RF24::csn(bool)'
In the end, I get: Exit status 1
Error compiling for board Arduino Pro or Pro Mini.Both examples individually compile OK.
Any thoughts?
Dieter -
RE: 3.3v Pro Mini, Radio, Moisture Sensor and StepUp regulator - AA battery power
Wow, I could never come up this sketch! I get the gist of it, but it will take me some time to figure out exactly how it works. I'm still learning the code syntax.
I don't understand: MySensor gw; and your other gw library calls like:
MyMessage msg(CHILD_ID, etc..)
MyMessage voltage,etc... and
gw.present(CHILD_ID ...)
gw.send(msg.set...)Are these explained somewhere?
I was not going to use this library, but rather just another Pro Mini to "receive" the data from the sensor, using the RF24.h library. I have that working.
Can I use the gw library just using another Pro Mini? Do you have the "receive" sketch?
Thanks,
Dieter -
RE: 3.3v Pro Mini, Radio, Moisture Sensor and StepUp regulator - AA battery power
How do you drop the frequency to 1Mhz? Change the crystal? Is there a software way to do that?
I have since removed the Pro Mini power LED and the current dropped to 102 micro amps (with the moisture sensor removed). With the moisture sensor board IN and its LED removed, the draw is 1.4 ma - not so good (regulator still in).
I found that I can read the analog voltage (A0) using only the moisture probe (and not the board). It varies from 1.11v (dry) to 1.66v (fully wet) - but then no interrupts. I will try a 12hr wake up timer (as mentioned)...
Thanks
-
RE: 3.3v Pro Mini, Radio, Moisture Sensor and StepUp regulator - AA battery power
I hesitate to remove the regulator. I rendered one Pro Mini useless trying to cut the trace to the Power LED.
I will try removing the StepUP. But not sure what will happen to the Pro Mini when the voltage dropes below 3.3v...
I was hoping that the Pro Mini will continue to run when the voltage to it drops below 2 volts.
-
RE: 3.3v Pro Mini, Radio, Moisture Sensor and StepUp regulator - AA battery power
I will try all your suggestions.
Thanks much. -
3.3v Pro Mini, Radio, Moisture Sensor and StepUp regulator - AA battery power
Hello,
The current draw from 2 AA batteries (in series) when running this configuration is 2ma when in sleep mode. In my view is way to high. At 2200 mah, I calculate only getting about 45 days of battery life (2200mah / 2ma / 24 hrs/day).
Are my calculations correct?
While sleeping, removing the radio does not change the load on the batteries (it remains at 2ma).
Removing the Power LED on the PRO Mini will only reduce the current draw to about 1ma, giving 90 days of battery life.
I have tried the gw.sleep mode and my own sleep mode and get the same results.
Not sure how people are getting current draws below 1ma...
Dieter
-
RE: Waking up 3.3v Pro Mini
Thanks.
I do have another question on what happens when an interrupt occurs. In the below example sketch, what code gets executed when the interrupt occurs: Is it at the interrupt handler "wakeUP()", or is it after the "detachInterrupt(1); ??
Typically when the interrupt happens, the interrupt handler code gets executed, and then it goes back to whatever code it was running when the interrupt happened.
Since, in this case, the interrupt handler does nothing, will it then execute the line after the "detachInterrupt(1);" ?
#include "LowPower.h";
void wakeUp(){
}
void setup() {
pinMode(3, INPUT_PULLUP);Serial.begin(115200);
delay(1000);
}void loop() {
Serial.println("Sleep Mode Entered");
delay(500);
attachInterrupt(1, wakeUp, CHANGE);
LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF);
detachInterrupt(1);Serial.println(F("woke up"));
delay(500);}
-
Waking up 3.3v Pro Mini
Hello,
Other than using an interrupt on a pin level change (ie: D2), what are the ways to wake up a 3.3v Pro Mini from "sleeping"?Or are using interrupts the only way?
I would like to put the Pro Mini to sleep for 12 hours, then wake it up to transmit data, and put it back to sleep...
Thanks.
-
RE: Connecting NRF24L01+ to Arduino ProMini
Thanks much, I got it working. Changed the sketch to use Pins 9 & 10...
It works without IRQ. I think this Pin can be used to wake up the Arduino... My project does not require that.
Onward to test the distance I'm getting between the radios.
Thanks again.
Dieter
-
Connecting NRF24L01+ to Arduino ProMini
Hello,
The documentation of the NRF24L01+ calls for pins CE to be connected to Pin 9 of the Pro Mini, and SCK to Pin 13 of the Pro Mini, and IRQ to Pin 2.Yet the simple transmit/receive sketches in the RF24 library calls for CE to be connected to Pin 7 of the Pro Mini, and CSN to Pin 8 of the Pro Mini. IRQ is not used.
Also, IRQ in the sketch is NOT used, whereas IRQ is connected to Pin 2 of the Pro Mini in the NRF2L01+ documentation.
I trying to get the simple sketch working. Should I go with the documentation in the Sketch code?
Is the another sketch with uses the Pins as shown in the NRF24L01+ documentation?
Thanks.
-
RE: FTDI module
Problem Solved! When compiling, you must select Processor: ATmega 328 (3.3v, 8Mhz). Then the Serial Monitor will be fine at 9600 baud with the 3.3v Pro Mini.
-
RE: FTDI module
Speed is set to 9600baud in the Sketch. I have hooked up everything per your original reply. Using 3.3v Pro Mini, and jumper is set to 3.3v on ftdi board. Power is being supplied from USB.
Still getting garbled data on the Arduino IDE Serial Monitor. If I change the SERIAL Monitor to 4800 baud, I CAN read everything!!
However, if I leave the Sketch to 9600 baud and change the Arduinio Pro Mini to a 5v unit, and just chang the FTDI to the 5v strapping, everything is readable with the Serial Monitor set to 9600 baud.
I don't get it.
-
RE: FTDI module
So maybe this is why my sketch is probably not working on a 3.3v Pro Mini being powered from the FTDI.
I'm running the ReadAnalogVoltage sketch in the Arduino Basic Examples. It runs fine on a 5v Pro Mini being powered from the FTDI, outputting the read voltage to the Serial Monitor just fine.
However, on a 3.3v Pro Mini being powered from the FTDI, the sketch runs but the serial monitor displays gibberish...
Not enough power going back to the USB from the FTDI?
-
FTDI module
Hello,
I purchased an AliExpress FTDI FT232RL USB to TTL Serial Converter Adapter Module. It has a jumper for either 5v or 3.3v operantion. It has FTD1232 marked on the back side.
It will be hooked up to program a 3.3v Arduino Pro Mini.
In the 3.3v position, any thoughts on whether I can connect a USB port from my laptop? And will it power the Pro Mini in that position?
Or do you think I need to provide the 3.3v from the Pro Mini?
I'm thinking that power from Either the 3.3v Pro Mini or USB will work with the jumper in the 3.3v position.
Thanks.
-
RE: Moisture Sensor example sketch
@mfalkvidd
So in the build example, should the DO pin of the sensor be hooked to D2 of the Arduino? -
RE: Moisture Sensor example sketch
Has MySensors 2 been released? Where can I find it and its documentation?
-
RE: Moisture Sensor example sketch
Also, since this sketch does not use the Interrputs() and noInterrupts() funtions, does the library take care of handling the interrupt while sleeping? I guess interrupt handling is a bit confusing to me.
-
Moisture Sensor example sketch
Hello, I'm an Arduino newbie.
This example sketch has the lines:
#define Digital_Input_Soil_Sensor 3
#define INTERRUPT DIGITAL_INPUT_SOIL_SENSOR-2Looking in the Arduino Reference Help, there is only the interrupts() function.
I get what the 1st line does.
What exactly does this 2nd line in code above do? Does it declare Pin 2 as an interrupt (even though nothing is connected to Pin 2 in the Moisture Sensor build example). Does the MySensor library interpret this line?
Or is it declaring PIN 3 as the interrupt?
I'm getting confused by the "-2"...
Thanks.
-
What does a gateway do?
I'm a newbie and have noticed many example sketches send data to a gateway.
Is there a gateway overview document (wiki) available on this site?
Thanks.
-
Moisture sensor example - pin A0
Hello,
Does anyone know the purpose of Pin A0 (it is not connected in the example)? Does it present a voltage depending to moisture level?
Is there a schematic?
Thanks,
Dieter -
RE: SoilMoistSensor will not compile for Arduino Due
It seems like all of the MySensors library example will NOT compile for an Arduino Due. It would be great to get this working...
Any help would be appreciated.
Dieter -
SoilMoistSensor will not compile for Arduino Due
Hello, Henrik Ekblad's SoilMoistSensor example will not compile for an Arduino Due using the Arduino IDE. It will compile for a Nano and others. For debugging, I use a Due. Below is the error log ...
Any thoughts as to why?
DieterArduino: 1.6.9 (Windows 10), Board: "Arduino Due (Programming Port)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Dieter\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Dieter\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Dieter\Desktop\sketches\libraries" -fqbn=arduino:sam:arduino_due_x_dbg -ide-version=10609 -build-path "C:\Users\Dieter\AppData\Local\Temp\buildf357ba4a413e1a72afd1c4469bde56d9.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Dieter\Desktop\Sketches\MySensors\SoilMoistSensor\SoilMoistSensor.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Dieter\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Dieter\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Dieter\Desktop\sketches\libraries" -fqbn=arduino:sam:arduino_due_x_dbg -ide-version=10609 -build-path "C:\Users\Dieter\AppData\Local\Temp\buildf357ba4a413e1a72afd1c4469bde56d9.tmp" -warnings=default -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Dieter\Desktop\Sketches\MySensors\SoilMoistSensor\SoilMoistSensor.ino"
WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
Build options changed, rebuilding all
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "C:\Users\Dieter\AppData\Local\Temp\buildf357ba4a413e1a72afd1c4469bde56d9.tmp\sketch\SoilMoistSensor.ino.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "C:\Users\Dieter\AppData\Local\Temp\buildf357ba4a413e1a72afd1c4469bde56d9.tmp\sketch\SoilMoistSensor.ino.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Users\Dieter\AppData\Local\Temp\buildf357ba4a413e1a72afd1c4469bde56d9.tmp\sketch\SoilMoistSensor.ino.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src\SPI.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MyHw.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MyHwATMega328.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MyHwESP8266.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "C:\Program Files (x86)\Arduino\libraries\MySensors\MyMessage.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MyParser.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MyParserSerial.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MySensor.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MySigning.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/Device/ATMEL/" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\cores\arduino" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\variants\arduino_due_x" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\libraries\MySensors" "C:\Program Files (x86)\Arduino\libraries\MySensors\MySigningAtsha204.cpp" -o "nul"
"C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10609 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Due"' "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/libsam" "-IC:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\system/CMSIS/CMSIS/Include/" "- ^In file included from c:\users\dieter\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\stdlib.h:11:0,
^
.
.
.
SoilMoistSensor:176: error: cannot convert 'int' to 'char*(const char*, int)' in assignmentUsing library SPI at version 1.0 in folder: C:\Users\Dieter\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.8\libraries\SPI
Using library MySensors in folder: C:\Program Files (x86)\Arduino\libraries\MySensors (legacy)
exit status 1
call to 'MySensor::MySensor(MyTransport&, MyHw&)' uses the default argument for parameter 2, which is not yet defined -
RE: Cant get I2C LCD working
Hello All,
Everything is working… The problem was that the Arduino DUE puts out SCL and SDA on pins 21 & 20, respectively.
Thank you. -
RE: Cant get I2C LCD working
100% sure it's wired correctly. Tried your addresses, and cut/paste your line - nothing works.
I'm pretty sure the LCD is dead or pin A4 or A5 on the DUE is dead.
Thanks. -
RE: Cant get I2C LCD working
Your suggestions did not work. I ran the YourDuino address scanner, and got:
I2C scanner. Scanning ...
Done.
**Found 0 device(s).
** -
RE: Cant get I2C LCD working
@NotTooTechy said:
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3,POSITIVE); // Set the LCD I2C address
What do I declare POSITIVE as?
-
RE: Cant get I2C LCD working
@y4CdW42Ol8
Let me be more specific. I have the 20x4 line LCD connected to a Arduino DUE using 5v, GND, A4 > SDA, and A5 > SCL. The back light come on when power is ON, and that's it. I have successfully compiled the Blinking Cursor and Hello World examples in the MySensory I2C libary (changing: LiquidCrystal_I2C lcd(0x20, 20, 4); because my LCD A0-A2 not jumpered). But nothing happens on the LCD. The LED on the small I2C board is ON. The DUE is working, since I have run other sketches.What could I be doing wrong? A bad LCD? Bad PINS on the DUE? How do I change the PIN numbers on the DUE.
Some other Examples in the LiquidCrystal_I2C library use the following:
#define BACKLIGHT_PIN 13
LiquidCrystal_I2C lcd(0x38); // Set the LCD I2C addressOR
//LiquidCrystal_I2C lcd(0x38, BACKLIGHT_PIN, POSITIVE); // Set the LCD I2C addressWhat does Backlight_PIN 13 do?
Also, what does the potentiometer on the small I2C board?
Hope someone can help...
-
Cant get I2C LCD working
Hello,
Hooked up a new 20x4 I2C lcd pannel as in the described in the irrigation controller drawing (A4 & A5, PWR, and GND). Used the fmalpartida-new-liquidcrystal-bb6d545c00c3 library form GITHUB, but cant get Hello World working. Changed LCD Address to 0x20. Any other place to find a library?