Show Posts
Pages: 1 ... 20 21 [22] 23 24 ... 196
316  Development / Other Software Development / Re: New TFT Extension Library on: February 19, 2014, 10:42:38 am
Quote
Can you guarantee that your users will do that?
No, not at all. But if (Big if)  they do everything else fine, then the worst they will get is this:
Quote
CirclePad:14: error: redefinition of 'TFT_Extension<ITDB02, ITDB02_Touch> myTFT'
CirclePad:13: error: 'TFT_Extension<ITDB02, ITDB02_Touch> myTFT' previously declared here
However it would help greatly if the Arduino software had visible line numbers on the side.



Quote
Quote
What would be the better way? Make a .cpp file?
Exactly.

By making a cpp file, I would need to include the UTFT and UTouch libraries, as well as the older ITDB02 libraries, right? What about if someone doesn't have the older libraries, the compiler will want to know where they are.

I'll figure it out.
317  Development / Other Software Development / Re: New TFT Extension Library on: February 19, 2014, 09:46:30 am
Ok, I changed DIR = dir * 0.01745 + 1.57; to  DIR = dir * RAD_TO_DEG + HALF_PI;
Better yet:
Quote
double DIR = dir * RAD_TO_DEG;
  Cx = x1 + sin(DIR + deg * RAD_TO_DEG + PI) * rad;
.
.
.

Whats is wrong with the implementation? It seems to work just fine.

What would be the better way? Make a .cpp file?
318  Development / Other Software Development / Re: New TFT Extension Library on: February 18, 2014, 10:08:10 pm
OLD LIBRARY

UPDATE: I added the changeable colors for the Radio buttons and a new function fillTriangle. I also fixed the button functions and allowed the user to have two variations of each button function. This was done because some functions are faster than others under certain conditions but for the most part, they are identical.

To get faster touch responses, set Precision to LOW or to get more precise touch responses, set Precision to EXTREME.

Note: I am still trying to perfect the fillTriangle function, but is seems to be good enough. If anyone has a better solution to fill a triangle at a certain degree, please by all means share it.

I will try to finalize the library soon.
319  Using Arduino / Project Guidance / Re: Security System on: February 18, 2014, 07:17:59 pm
Its very simple actually, but I do not see anything that has to do with a keypad or a Lcd. If you "Search the Arduino Forum" for keypad password and LCD, you'll most likely find tons of information and examples.

We see these questions all the time, "I need help making a password" or "I want to enter a password with a keypad..."

Try doing a search first.
320  Using Arduino / Project Guidance / Re: Security System on: February 18, 2014, 06:16:49 pm
I stop reading when I got to
Quote
#define TRIGGER_PIN  6  // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN     7  // Arduino pin tied to echo pin on the ultrasonic sensor.

You said you have a 3 pin US range finder, yet the library your using needs the 4 pin US range finder. You need to change one of the two, either the code or the ping sensor.
321  Using Arduino / Project Guidance / Re: Arduino accelerometer bluetooth issues, please help!!! on: February 15, 2014, 11:18:20 pm
You should use Putty or Realterm instead of the serial monitor, and make sure the bluetooth module is wired properly. Tx to Rx and Rx to Tx.
322  Using Arduino / Project Guidance / Re: Arduino accelerometer bluetooth issues, please help!!! on: February 15, 2014, 09:58:56 pm
Could you provided the code your using?
323  Using Arduino / Programming Questions / Re: Running Graph display on TFT LCD on: February 15, 2014, 09:31:24 pm
You can use one of these TFT Lcds, LINK. It uses the UTFT and UTouch libraries, and it also has another library Ubuttons.

The UTFT library has a demo that shows a moving graph, that you can use your make you graph. It will require you to do some writing, because there is no Make_Graph_With_These_Values function.

I too have the Lcd.
324  Using Arduino / Project Guidance / Re: Arduino Motors not working on: February 15, 2014, 12:35:55 am
Pin 13 is connected to a resistor and Led so it may be giving you problems, however I don't see a pinMode for pin 3, and that could be the actual issue.
325  Using Arduino / Programming Questions / Re: Expected primary-expression before '||' token on: February 15, 2014, 12:30:34 am
Your missing parentheses in your IF statement. Right now, the IF statement is only seeing the first part, the stuff before the ||.

if( (condition1) || (condition2) ) // expected
if( condition1 ) || ( condition2 ) // what you have
326  Using Arduino / Project Guidance / Re: I am soooo lost!!!!!!!!! on: February 14, 2014, 11:11:48 pm
I just downloaded the TimerOne library then tried your code and it compiles fine.

Quote
I followed exacily what the book said for the sketch and got this ' Timer1' not declared in the sketch
Where exactly is the library, post the exact address. If you don't know how to get the address, find the TimerOne folder, highlight and right click to properties, the address is there. I am unfamiliar with MAC computers, so your on your own there.

Also, you don't need to have "TimerOne Timer1" as Robin2 suggested, because it is already declared in the library.
327  Using Arduino / Project Guidance / Re: I am soooo lost!!!!!!!!! on: February 14, 2014, 04:08:58 pm
Did you download the library and put it in the correct spot? It should be in your Mydocuments/Arduino/libraries folder, if it is not then you will get errors.
328  Development / Other Software Development / New TFT Extension Library on: February 14, 2014, 03:05:57 pm
Please see REPLY below.

I originally made this library for my own uses, but I feel it should be shared. It works with Henning Karlsen's UTFT and UTouch libraries and it also works with his older ITDB02 libraries. "ITDB02_Graph16 and ITDB02_Touch"

PLEASE NOTE, I am still adding functions to this library (95% Done), mostly colors and functions that allow the user to choose there colors for certain functions like the drawTriangle function.

Right now I only have a 3.2 TFT Lcd that uses the older ITDB02 libraries, so all the examples will be set for those libraries, however, it does compile with the UTFT and UTouch examples.

329  Using Arduino / Project Guidance / Re: Auto Level Off-Road buggy , First Arduino project on: February 14, 2014, 09:43:45 am
Other than your solenoids and maybe relays, do you have a bread board?
330  Using Arduino / Project Guidance / Re: Auto Level Off-Road buggy , First Arduino project on: February 13, 2014, 04:58:37 pm
An accelerometer measures G force, so by shaking it in any direction will produce a reading. Three axis accelerometers can also be used as leveling devices but any sudden movement will increase or damper the reading at that particular angle.

Gyros on the other hand only change when tilted, so as long as the angle is fixed, bouncing will not effect it.

I don't own a gyro but I do have a 3 axis accelerometer. However the most common one I have seen is a MCU-6050 3 axis accel + gyro.
Pages: 1 ... 20 21 [22] 23 24 ... 196