Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 86
766  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?
767  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.
768  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.
769  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.
770  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.
771  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.
772  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.

773  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.
774  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.
775  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?
776  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?
777  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.
778  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.
779  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?
780  Using Arduino / Sensors / Re: encoder driving me crazy, help on: January 27, 2013, 04:33:08 am
Instead of just copying new position to oldposition, only do it if the newpos is less than your upper limit.

Better still work on the difference between old and new, and add the difference in only when your are within bounds. Using the difference has the advantage that going down can happen immediately.

Treat the long counter as just an indication on what the encoder is doing and use the information to maintain your own user interface number. By splitting the two you have more control.
Pages: 1 ... 50 51 [52] 53 54 ... 86