Show Posts
Pages: 1 ... 50 51 [52] 53 54 ... 84
766  Using Arduino / Programming Questions / Re: any tutorials on this? on: January 25, 2013, 09:11:35 am
Never underestimate a 13 year old when it comes to computer technology ...

Did you start wih easier stuff like the LED blinker and reading an analog input? I find it is good to get the basics right and build on that.
767  Using Arduino / Programming Questions / Re: Help with application of Finite State Machine library on: January 25, 2013, 06:27:53 am
Should the arguments in the println() statements be in double quotes as they are strings?
768  Using Arduino / Programming Questions / Re: Compare Two Arrays of Different Lengths and Return the Common Values on: January 25, 2013, 03:13:18 am
Correct guess. I think that if both lists are sorted within themselves it is possible to do the task with a single pass through the lists.
769  Using Arduino / Displays / Re: Simple Dual 20x4 Serial LCD Setup? on: January 24, 2013, 11:40:54 pm
You should be able to run both on the I2C as long as you can give them different device addresses. If the address is hard coded then there is no way on the same I2C pins.
770  Using Arduino / Storage / Re: SD card fails to open file to write after a day of use on: January 24, 2013, 11:33:32 pm
Use the sdfat library instead of the Arduino sd library. Faster and does not leak memory.
771  Using Arduino / Programming Questions / Re: Compare Two Arrays of Different Lengths and Return the Common Values on: January 24, 2013, 11:31:14 pm
Just to add another question:

Are the lists sorted in order? That would allow the matching to be more efficient
772  Using Arduino / Programming Questions / Re: Rotate and reverse characters in LCD display on: January 24, 2013, 11:28:18 pm
Code:
pgm_read_byte(font+(c*5)+i);

This tells you that the character definitions are stored in an array called font.

You need to look at what the bit patterns in there are and then create the new bit pattern (reversed and upside down) either on the fly when you need to display or as a new font table.

The normal LCD libraries allow you to have text going right to left instead of the normal left to right. Combine the two and you should have what you need.

An alternative is to just mount the LCD display upside down :-)
773  Using Arduino / Programming Questions / Re: any tutorials on this? on: January 24, 2013, 07:28:53 pm
3 are already mentioned. The other 2 are Gnd and Vcc, not much imagination required here.

The other 5 pins are the same and they are the output side (DOUT is the opposite of DIN). These modules can be daisy chained. If you wanted to add the second or more modules you connect the 'output' of one board to the 'input' of another.
774  Using Arduino / Storage / Re: SdFat seek() and position() functions? on: January 24, 2013, 07:13:59 pm
Either use one library or the other.

My choice is for sdfat as it is more stable and gerenrally works faster.

The functions you are looking for exist and are very well documented in the sdfat documentation.
775  Using Arduino / Programming Questions / Re: Libraries in Arduino!!! on: January 24, 2013, 05:27:45 am
New libraries that you want to add should be placed in a libraries subfolder in the sketchbook folder.
776  Using Arduino / Storage / Re: Arduino SD library, SD.begin and ejecting the card on: January 23, 2013, 04:29:55 am
Have you tried to run an experiment like ejecting a crd many times to see if it all still works?

You could also look at the library to see what begin actually does and decide if you need to call it for each ejection.
777  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 23, 2013, 03:45:23 am
Fair enough. It must be frustrating.

It is not hard to make your own if you have a soldering iron. I made one that works pretty well. If you are interested, go to the libraries in my footer, look at the midi library and in the main library header file is a reference to a site that has a good circuit that you can build as is or onto a shield.

Good luck.
778  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 22, 2013, 11:14:45 pm
I just looked up your cable type and assume it is this one http://www.roland.com/products/en/UM-ONE/.

This cable has indicators on the cable to indicate IN and OUT traffic on the cable?
779  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 22, 2013, 09:43:53 pm
Quote
The LED isn't hooked up to the MIDI OUT

If it follows the standard your MIDI OUT is connected to an optocoupler on the MIDI IN side. There should be something in the middle of the cable you have that is MIDI to USB converter. So it is driving that optocoupler.
780  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 22, 2013, 08:15:14 pm
The current should drive an optocoupler (effectively a LED), so in my opinion the 0.5mA is not going to make a big difference to how the LED lights up in the coupler.

Have you checked that the opposite (ie, sending 0xff continuous) gives a current that is at least close to 0mA? That couls also be a problem as the LED would stay at lkeast partially lit.

One other thing that may be worth doing is cheking the specs on the Roland cable to see what is expected there. You may have done this already but there is not info on these posts.
Pages: 1 ... 50 51 [52] 53 54 ... 84