Show Posts
Pages: 1 ... 48 49 [50] 51 52 ... 85
736  Using Arduino / Storage / Re: Strange SD card behavior on: February 02, 2013, 01:53:09 pm
Posting code usually helps. Someone else may be able to try running it to see if the same problems happen.
737  Using Arduino / Programming Questions / Re: Multiple Blink States with a button no delay on: February 01, 2013, 02:57:16 pm
Look at Multiblink at the site in my signature block. It allows you to define the patterns but you will need to add the changes of state to do what you want.
738  Using Arduino / Audio / Re: Simple MSGEQ7 tutorial on: February 01, 2013, 02:51:29 pm
Good job as always. Your tutorials were great when I start with Arduino in January 2012 - I learned a lot quickly and I still use them as references.  Keep it up!
739  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
740  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.
741  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!
742  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?
743  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.
744  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.
745  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.
746  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.
747  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.
748  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.

749  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.
750  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.
Pages: 1 ... 48 49 [50] 51 52 ... 85