Page 6 of 7

Re: ArduinoPhone

Posted: Sun Aug 11, 2013 10:14 am
by vega4ref
Hello,

I have purchased the kit with everything, and I need a bit of help connecting each piece as I am newcomer to electronics. What I have are:

Arduino Uno
GPRS Shield V2.0
TFT V2.0
Grove RTC
Li Po Rider Pro
and battery

My questions are following:

1) The GPRS shield I bought looks different than the one shown in the instructions. Notably, it doesn't have that big antenna. Is this ok? or do I need to purchase separate antenna?
Also mine has a slot for a battery, do I need to put a battery there? I assume no because it gets power from UNO.

2) I have Li Po Rider Pro instead of the regular Li Po Rider. Is this ok?

3) Finally it would be very helpful to me if you guys can give a bit more details on how the wiring connections are setup. Especially

-how you connect the RTC to UNO
-what are those wires coming out of the GPRS? in one of the pictures those wires are labeled as "Audio Jack". How you connect those wires to GPRS?
-in the instructables, you already have installed a switch and another thing that connects to GPRS through audio jack. What is this? Where can I get these?

thanks,
Tuguldur

Re: ArduinoPhone

Posted: Tue Sep 24, 2013 5:48 am
by c-sieber
Hello,

1) no,this GPRS Shoield is only newer version as far as i read! U need to put an battery inside. do not know why, but without was not working. the battery in the rtc timer keeps the clock working when power is disconnected.

2) no, should make no difference.For testing you need only connect the ardiuno to power!

3) Timer connection to arduino:
SCL = A5
SDa = A4
VCC = VCC
GND=GND

Re: ArduinoPhone

Posted: Thu Oct 03, 2013 1:42 am
by plato.texas
Love the project for the informational value as much as for the creativity. I have this working on an Arduino Uno board, but would like to experiment with more memory afforded by the mega2560. I tried to add #define AVR_ATmega2560 to the beginning of the code, but still did not get it operational. I will experiment with it, but if you know of the solution, it would save a lot of time. I don't have anything new to add to the project at this time, but hope to be able to do so once I have the mega up. BTW, I could only get a successful compile using the 1.01 environment. Anything later gets compile errors such as Tft no defined. Is there an updated version that will compile with 1.5? Thanks again for the great contribution.

Re: ArduinoPhone

Posted: Thu Oct 03, 2013 2:08 am
by c-sieber
plato.texas wrote:...... BTW, I could only get a successful compile using the 1.01 environment. Anything later gets compile errors such as Tft no defined. Is there an updated version that will compile with 1.5? Thanks again for the great contribution.
Hey,

yes there is a newer library for the tft Display. I could not get it compiled with the old version ( I have the newer version of the TFT).
You need to register the new Library to Arduino 1.05. Then in the "ArduinoPhone" tab you need to modify like this:

Code: Select all

// #include <TFT.h> 
#include <TFTv2.h>  //name depends on the registration of your library


in the "UI_ArduinoPhone.cpp" tab

Code: Select all

// #include <TFT.h> 
#include <TFTv2.h>

....

 Tft.TFTinit();
   // Tft.init();
I get it compiled and running on my Arduinophone. But I can not accept calls or do calls. Seems liek there is still a problem in the code....but can not find it.Let me know if it is on yours working,please!

Re: ArduinoPhone

Posted: Mon Oct 21, 2013 11:43 am
by vega4ref
c-sieber wrote:Hello,

1) no,this GPRS Shoield is only newer version as far as i read! U need to put an battery inside. do not know why, but without was not working. the battery in the rtc timer keeps the clock working when power is disconnected.

2) no, should make no difference.For testing you need only connect the ardiuno to power!

3) Timer connection to arduino:
SCL = A5
SDa = A4
VCC = VCC
GND=GND
thanks a lot man!

I have connected everything, downloaded the code from github, it was compiling fine.

BUT when I upload the code to Uno I only get a white screen. No texts at all, just plain white screen. Again there were no compilation errors at all.

I am using TFT v2, could this be a problem? I have tried downloading TFT_v2 library and changing the include TFT.h to include TFT_v2.h in the .ino file.
But then I am experiencing many compilation errors.

Please help me!

thanks,
T

Re: ArduinoPhone

Posted: Mon Oct 21, 2013 8:21 pm
by c-sieber
Hello vega4ref,

as far as I remember I had the white screen as well when I compiles the original Arduino Code with the TFT 2.0. So u need the new libraries. Did you changed in teh code " Tft.TFTinit(); " to
" // Tft.init(); " (without the ") ? maybe search for the string Tft.init() all over the code and replace with " Tft.TFTinit(); "
What error messages do you receive?

Re: ArduinoPhone

Posted: Tue Oct 22, 2013 3:57 pm
by vega4ref
c-sieber wrote:Hello vega4ref,

as far as I remember I had the white screen as well when I compiles the original Arduino Code with the TFT 2.0. So u need the new libraries. Did you changed in teh code " Tft.TFTinit(); " to
" // Tft.init(); " (without the ") ? maybe search for the string Tft.init() all over the code and replace with " Tft.TFTinit(); "
What error messages do you receive?
There is only one Tft.init() in UI_ArduinoPhone.cpp. If I change that to Tft.TFTinit() then I get following message:

class TFT has no member named 'TFTinit'

I am guessing this is because TFT_v2.h is not declared. So when I change #include <TFT.h> to #include <TFT_v2.h> in ArduinoPhone.ino and UI_ArduinoPhone.cpp, I get following error:

no matching function for call to 'TFT::fillScreen(int, int, int, int, unsigned int)'

I am running on Mac OS, and TFT_v2 is included in my library:
/Users/inara/Documents/Arduino/libraries/TFT_v2

thanks,
Tuguldur

Re: ArduinoPhone

Posted: Tue Oct 22, 2013 4:04 pm
by vega4ref
The inputs to fillScreen are different in TFT.h and TFT_v2.h!

In TFT.h you have:

void fillScreen(unsigned int XL,unsigned int XR,unsigned int YU,unsigned int YD,unsigned int color);

this is the format used in UI_ArduinoPhone.cpp.

However in TFT_v2.h you have:

void fillScreen(unsigned int color);

Is there a simple way to get around this? I feel like one has to rewrite UI_ArduinoPhone.cpp for TFT_v2.

thanks,
T

Re: ArduinoPhone

Posted: Tue Oct 22, 2013 4:31 pm
by vega4ref
FIXED THE PROBLEM.

The necessary library was not TFT_v2/TFT_v2.h but it was SeeedTFTv2/TFTv2.h.
http://www.seeedstudio.com/wiki/File:Seeed_TFT_v2.0.zip

This TFTv2.h has that same 6 integer input as was used in TFT version 1.0. Now it is displaying what it is supposed to.

However the time and date doesn't seem to work somehow.... haven't tried making a call or sending text.

T

Re: ArduinoPhone

Posted: Tue Oct 22, 2013 10:22 pm
by c-sieber
Great!Congratulations! Now I'm very curious if u can accept or do phone calls. This i got still not working in mine!

Can someone help?