Loading...
  Show Posts
Pages: 1 2 3 [4] 5 6 ... 106
46  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: May 12, 2013, 02:38:25 am
This is not doing anything.
Quote
  val = (myTouch.dataAvailable() == true);            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 479, 0, 799);

Your map looks like you guessed on the numbers, but I'm not surprised because your not printing the data to the LCD like I showed you how to do.

Go back and re-upload the code I gave you, I added more to it from the first time I posted it, and I wrote after that post, that I made changes to it.
47  Using Arduino / Project Guidance / Re: Best way to power Arduino (Without USB or AC adapter) on: May 12, 2013, 02:27:34 am
Those batteries are just as bad as regular 9v batteries, if not worse and they die even faster. The thing is, they don't supply enough current, and the only way you would be able to get more time out of them is if you double or triple them up (in parallel, not series). That's why I recommend getting a rechargeable battery pack. They put out a lot of current (great amount for the arduino) and they can be recharged about 1000 times over, before they start to weaken.

You can use the batteries in your link, but you will need to constantly recharge them every 10 - 15 minutes. But if your ok with that and it won't be too much trouble, then get them.
48  Using Arduino / Project Guidance / Re: Best way to power Arduino (Without USB or AC adapter) on: May 12, 2013, 01:29:36 am
Regular 9V batteries only last for about 30 minutes before they're dead, so an alternative would be some rechargeable. Some like these.
49  Using Arduino / Project Guidance / Re: Arduino UNO + RGB pixels strand + voice control on: May 11, 2013, 07:05:47 pm
Does anyone know how to record the voice commands? The access software is not quite clear.
50  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: May 11, 2013, 06:58:37 pm
Post your full code and I'll take a look at it.
51  Using Arduino / Programming Questions / Re: Bluetooth library on: May 11, 2013, 06:57:36 pm
Thanks for suggestions, i think i found problem. Seems trying to switch RX and TX wires together helped. Seems what my arduino transmits(TX) goest to BT module RX wire(Seems to be strange china fail.) So i got worked it. Now trying to send commands somehow, but PUTTY doesn't send any commands. But my phone program does. Trying to get working serial.read() function.

I told you in my first reply, how you need to wire it to the arduino.

Putty does send commands but unless you echo the command back, you won't see it. It's a minor flaw.
52  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: May 11, 2013, 09:35:01 am
Are you looking at the raw data or mapped data? The thing about maps is, they do not stay in range. meaning if your Highest value is say 500, and the map goes over that, it will give you unwanted results.
they way to fix this is by using a constrain.

constrain(tx, lowest mapped value, highest mapped value);
constrain(ty, lowest mapped value, highest mapped value);
53  Using Arduino / Programming Questions / Re: Bluetooth library on: May 11, 2013, 09:30:31 am
If the BT module LED is solid, then it should be connected... in most cases. What baud rate are you using, the 2 common ones are 9600, and 57600, try both.
It must be cross connected.
It may need 3.3V, I have one that only works at 3.3V but my other three work at 5V.
If all else fails, try to update your computers BT driver, under device manager.
54  Using Arduino / Programming Questions / Re: [help,urgently] arduio programing problem on: May 10, 2013, 10:24:31 pm
Ok so if you just write "#define ledpin 13" representing pin 13, is it an int, uint8_t, byte... I know it replaces whatever you put, but what about numbers, what does it make them, and how much memory do they use up?
55  Using Arduino / Programming Questions / Re: [help,urgently] arduio programing problem on: May 10, 2013, 09:51:30 pm
@lloyddean,
Why are you using uint8_ts instead of byte?

Did my reply above answer your question adequately?

No, not really, well unless an uint8_t takes up less memory than a byte.
For anything being assigned to a pin, it should be a byte, it saves memory even if it is just one byte less. For anything that actually requires more memory usage like an int or long, signed or unsigned, fine, but a regular pin should be a byte.

I'm curious as to what the compiler makes a #define variable.
Edit: -_- iPhone spell check.
56  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: May 10, 2013, 07:02:52 pm
I just updated my sketch in reply #11, try it
57  Using Arduino / Programming Questions / Re: Bluetooth library on: May 10, 2013, 06:44:24 pm
No it does not work. I just tried all four of my BT, and none of them communicate with the serial monitor. However, they work right away with putty just fine. My COM port is #6 and I will say that the Arduino software will see the COM port, at first, but when I try to get on it, it goes away and does not connect. Also the connection LED on my BT module continuously blinks until I use Putty, then it goes solid indicating that it is connected.

By any chance are you powering the Arduino via USB or an outside voltage?
58  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: May 10, 2013, 05:12:35 pm
What does x,0,0,0,0 mean here wich cordinates so i set where?

Code:

  tx = map( X, 0, 3550, 0, 239); // the screen data for X
  ty = map( Y, 0, 4860, 0, 319); // the screen data for Y

that is the map function, it works like this.
mapped output = map( your inputted data, lowest value of the data, highest value of data, lowest value you need, highest value you need)
59  Using Arduino / Programming Questions / Re: Bluetooth library on: May 10, 2013, 03:31:07 pm
Quote
Do you mean the upload via the BT?
No I mean, can you use the 1.0.3 serial monitor to see the BT data?
60  Using Arduino / Programming Questions / Re: utouch ssd1963 5 inch problem on: May 10, 2013, 03:29:24 pm
Oh wow, your library has nothing but the bare basics. Not going to lie, but it is going to be tough to write your sketch.
Pages: 1 2 3 [4] 5 6 ... 106