Help! can Arduino Uno run both LCD and RFM12B?

Hi All,

I was not sure if I should have posted this in the software section so apologies if I have it wrong.

I have solar PV and have managed to successfully build a solar power manager following Paul's article here...

http://openenergymonitor.org/emon/node/217

I based it on an Arduino Uno but also added an RFM12B, my intention being to transmit data to a second Uno over a wireless link to then be sent to Pachube but thats a problem for another day!

I am a novice at programming C so please bear with me...

My solar program compiles and runs just fine, I then found several examples of code for transmitting data using the RFM12B and tried copying the relevant parts to my code. I don't get very far, as soon as I add #include<RF12.h>, or <Ports.h> or <jeelib.h>  there seems to be a conflict between <liquidcrystal.h> when compiling even if I add nothing else.

Can the Uno run both the LCD and RFM12B together?

 

 

mharizanov's picture

Re: Help! can Arduino Uno run both LCD and RFM12B?

I'm not sure which LCD you have, but if you are using the Hitachi HD44780 compatible one, you have a conflict with RFM12b at least on three pins 

 * LCD RS pin to digital pin 12

 * LCD Enable pin to digital pin 11

 * LCD D7 pin to digital pin 2

 

You may look up Serial LCD (or I2C) screens, I have one and it only uses one pin + power and GND.

 

aam's picture

Re: Help! can Arduino Uno run both LCD and RFM12B?

Yes I have the Hitachi HD44780 but changed the pins to 3, 4, 5, 6, 7, & 8 so I wouldn't conflict with the RFM12B. I have just put this one line into my solar program...

#include <JeeLib.h>

And get the errors pasted below when compiling.

I will have a look for a serial screen but seems a shame to change what is working at the moment.

 

LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::pulseEnable()':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:285: multiple definition of `LiquidCrystal::pulseEnable()'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:297: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::write8bits(unsigned char)':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:303: multiple definition of `LiquidCrystal::write8bits(unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:315: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::write4bits(unsigned char)':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:294: multiple definition of `LiquidCrystal::write4bits(unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:306: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::send(unsigned char, unsigned char)':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:269: multiple definition of `LiquidCrystal::send(unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:281: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal::init(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:55: multiple definition of `LiquidCrystal::init(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:235: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:48: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:229: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:48: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:229: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:42: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:223: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:42: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:223: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:36: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:217: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:36: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:217: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:29: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:211: first defined here
LiquidCrystal\LiquidCrystal.cpp.o: In function `LiquidCrystal':
C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\LiquidCrystal/LiquidCrystal.cpp:29: multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
jeelib\PortsLCD.cpp.o:C:\Documents and Settings\Alan\My Documents\Arduino\arduino-1.0.1\libraries\jeelib/PortsLCD.cpp:211: first defined here

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.