ArduinoPhone

Okay, it may be a few days before I get a working SIM card so no big deal. I copied all the code from the different files on github into the files from the old code, and i got a new error, I’m not worried about it I just though I would copy all the new files to replace the old ones.

Here is what I get, which confuses me since the TFT library is in there already…

ArduinoPhoneCode.ino: In function ‘void stateMachine()’:
ArduinoPhoneCode:112: error: ‘Tft’ was not declared in this scope
ArduinoPhoneCode:215: error: ‘WHITE’ was not declared in this scope
ArduinoPhoneCode:216: error: ‘GRAY1’ was not declared in this scope
ArduinoPhoneCode:217: error: ‘RED’ was not declared in this scope
ArduinoPhoneCode:250: error: ‘BLACK’ was not declared in this scope
ArduinoPhoneCode:262: error: ‘GREEN’ was not declared in this scope
ArduinoPhoneCode.ino: In function ‘void stateMsg()’:
ArduinoPhoneCode:508: error: ‘RED’ was not declared in this scope
ArduinoPhoneCode:524: error: ‘RED’ was not declared in this scope

hey~ Actually I had modified the TFT Shield firmware, that’s , it’s a little different form the firmware on the wiki~

Oh okay, makes sense now, thank you.

We have posted all liraries on github, (the link) you can’t miss it on the first page.

I got an UNO board, and the problem is indeed something with the MEGA board, as everything is working now :slight_smile:

Whats so different between the two that would cause one to work and the other not to?

hm , do you use a tft touch 1.0 or tft touch 2.0 ?

wow~ :confused:

you can go to my github for the laterst ArduinoPhone code~, I can works with mega now: github.com/reeedstudio/ArduinoPhone

if necessary, you should download my TFT library also: github.com/reeedstudio/libraries

just have a try~ :laughing:

I have a V1.0 TFT screen, I will download your libraries, and try the MEGA again :slight_smile:

does it work? :smiley:

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

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

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.

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:

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

in the “UI_ArduinoPhone.cpp” tab

[code]// #include <TFT.h>
#include <TFTv2.h>

Tft.TFTinit();
// Tft.init();
[/code]

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!

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

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

The inputs to fillScreen are different in TFT.h and TFT_v2.h!

In TFT.h you have:

[i]void fillScreen(unsigned int XL,unsigned int XR,unsigned int YU,unsigned int YD,unsigned int color);[/i]

this is the format used in UI_ArduinoPhone.cpp.

However in TFT_v2.h you have:

[i]void fillScreen(unsigned int color);[/i]

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

thanks,
T

FIXED THE PROBLEM.

The necessary library was not TFT_v2/TFT_v2.h but it was SeeedTFTv2/TFTv2.h.
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

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?