Show Posts
Pages: 1 ... 48 49 [50] 51 52 ... 84
736  Using Arduino / Programming Questions / Re: Why is the read input repeated in the string? on: January 29, 2013, 05:18:34 am
You need to terminate the string you received with a '\0' character to signify the end of the string. I think you are just getting some random stuff after the string that happens to be your input string.

Edit: Nick beat me to it!
737  Using Arduino / Programming Questions / Re: Need help and idea's on count timer project. on: January 29, 2013, 05:15:43 am
I did something similar some time ago. Do you want my code or are you looking to this by yourself and need help?
738  Using Arduino / Audio / Re: Midi controllers on: January 28, 2013, 06:36:11 pm
Not sure I fully understand what you are saying, but if you have 2 arduino then that is why there is a midi thru connector concept.
739  Using Arduino / Displays / Re: LCD contrats variable resistor issue on: January 28, 2013, 01:22:35 am
My bad on the name. Of course it is a pot.
740  Using Arduino / Programming Questions / Re: Is there a difference between these two declarations? on: January 27, 2013, 10:37:29 pm
Quote
Not with the word "const" there you can't.

Good point, missed that keyword.
741  Using Arduino / Programming Questions / Re: Turning off motors if Serial Communication fails on: January 27, 2013, 09:06:41 pm
I should have more clearly said it should only be updated when you get a char.  Basically needs to be moved to the if not the else part.
742  Using Arduino / Programming Questions / Re: Turning off motors if Serial Communication fails on: January 27, 2013, 08:57:52 pm
Last needs to be updated when you get a character as this is the last time a clear was received.
743  Using Arduino / Sensors / Re: Overworking the Arduino? on: January 27, 2013, 08:54:23 pm
Use HIGH and LOW when comparing or setting digital values read. These may or my not be 1 and 0.

Not sure I like the delay() in your code. I would consider changing your code to be more like a finite state machine, as you can describe the states reasonably well.

744  Using Arduino / Storage / Re: SD card fails to open file to write after a day of use on: January 27, 2013, 08:46:20 pm
Try using the utilities in the examples for sdfat to format the sd card.
745  Using Arduino / Programming Questions / Re: Is there a difference between these two declarations? on: January 27, 2013, 06:32:17 pm
Quote
const char *str = "Hello";
A pointer to a string of characters. The memory could be allocated anywhere, including read-only memory, and the address is stored as the initialiser for this variable. Technically you can really only manipulate the pointer and not the text string.

Quote
const char str[] = "Hello";
An array of charaters that are initliased to the value of the string. Equivalent to initialising as ['H', 'e', 'l', 'l', 'o', '\0']. In this case the memory allocated will definitely be R/W and you can be expected to modify the string.
746  Using Arduino / Programming Questions / Re: LCD Display on: January 27, 2013, 06:26:57 pm
Please be clear to explain what you mean by:

Quote
It lights up one row but shows dont text.

'Lights up' has no meaning to me. Do you mean the backlight on the LCD or do you mean that all the pixels are on (ie, you see blocks of dark/light) or what?
747  Using Arduino / Programming Questions / Re: LCD Display on: January 27, 2013, 06:09:14 pm
As the sketch is not something you wrote I would expect that that is correct.

Recheck your wiring and make sure that follows the circuit.

What is it that you can see on the display, is it just the 'hello, world!' part or the seconds counter, or is it just rubbish?
748  Using Arduino / Programming Questions / Re: LCD Display on: January 27, 2013, 04:06:42 pm
It is probably either a connection fault or a programming error or both together.  smiley-wink

As most people on this forum can't read minds, it would be helpful if you post your code and/or circuit so we can help you.
749  Using Arduino / LEDs and Multiplexing / Re: Accendere piĆ¹ led contemporaneamente on: January 27, 2013, 04:04:17 pm
Ciao,

You should probably post in the Italian section of the forum. Also, post what code you have already written so others can help you with that.

I am assuming that you have each LED controlled by one output. Where you are writing to the LED for one traffic light, repeat for the outer output for the other traffic light. This applies to all colours.
750  Using Arduino / Displays / Re: LCD contrats variable resistor issue on: January 27, 2013, 03:58:01 pm
Did you connect one end of the resistor to gnd, the other end to 5V and the wiper (the one in the middle usually) to the input for the LCD?
Pages: 1 ... 48 49 [50] 51 52 ... 84