Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 86
766  Using Arduino / Storage / Re: SD card fails to open file to write after a day of use on: February 01, 2013, 02:43:11 pm
Hard to tell unless you post your code smiley-wink
767  Using Arduino / Programming Questions / Re: MIDI OUT-Digital inputs|Specific controller data sent upon hitting 2nd of a pair on: January 30, 2013, 06:23:50 am
I don't think that your miracle will happen and someone will already have code to do what you want. It is a very specific request.

Have you actually written any code yet? A good place to start would be to send a midi message when one switch is pressed. That can then be extended to do another message when the switch is pressed twice. Then extend it to deal with a second different switch.

The key is start simple and build on what you have.
768  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!
769  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?
770  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.
771  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.
772  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.
773  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.
774  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.
775  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.

776  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.
777  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.
778  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?
779  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?
780  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.
Pages: 1 ... 50 51 [52] 53 54 ... 86