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
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:
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.
I have Li Po Rider Pro instead of the regular Li Po Rider. Is this ok?
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?
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.
no, should make no difference.For testing you need only connect the ardiuno to power!
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.
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!
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.
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