Show Posts
Pages: 1 ... 48 49 [50] 51 52 ... 79
736  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 15, 2013, 02:06:03 am
You should be able to find a ttl or terminal program that you can use instead of MIDIOX to verify that you can get data to the PC from the arduino. It may be the Roland thingy is stopping your messages. You should see the same or similar rubbish as the serial monitor. If you google 'terminal program free' you should get a few that will fit the bill.

Once you have established you get messages on a regular 1 second, then you move onto the next part of the chain.

It may seem obvious, but a logical approach that builds on what you know is working is the only way to go when you are looking at these or any other sorts of problems. Work outwards from what you know works. In your case:

Arduino seems to send messages
You assume that they are reaching the PC but don't know, so you need to verify.
Once this is verified then turn to MIDIOX

Similarly in the reverse direction, although here your midi callback would imply you are not getting messages, you need to prove to yourself that these are actually leaving the PC.
737  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 15, 2013, 01:28:22 am
If you see the messages appearing on the serial monitor then they are making it to the PC and I would look at how you have configured MIDIOX. Have you goat a synthesiser or music keyboard the you can connect to the arduino to see if it plays a note? You can also use the same to see if MIDIOX plays the note on the kid.

My bet is on MIDIOX not being configured correctly, though.
738  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 14, 2013, 02:52:26 pm
On my USB to serial converter, the are a couple of LEDs that tell you if messages are being sent on the out and in lines. Does yours have the same? If so, do you see those LEDs flash at all when you send messages?

I would also suggest that you try to get one direction working at a time. Fix up your sending loop so that you toggle a led on and off with the note on/off that you send. Then verify that you get that message in MIDIOX by monitoring the input window. If you don't work on that first as you are more in control of timing and message.

Then also check the config for MIDIOX. You need to make sure that it is actually using the USB interface for output. The LEDs on the cable would be a good indicator, but you can also check the config to make sure your device paths are set up correctly.

I think OMNI does not work with the midi library. Check the comments on the header file.

An obvious one, but make sure the jumper on the olimex board is replaced after you upload, or you will get nowhere.
739  Using Arduino / Audio / Re: UNO + Olimex Midi Shield on: January 14, 2013, 02:28:18 am
You can comment out blocks of code using the /* */ style of comments more easily. You cal also use the IDE to do comment blocks with one menu.

The way your loop is structured there is no delay between the note off and the note on at the start of the loop. You need to add a delay at the bottom of the loop so that you can hear a break in the note.

Do your LEDs come on at all?
Does OMNI work? Try a different channel number?
Have you checked that MIDIOX actually sends out the midi characters?

You also need to get rid of the delays in your code. Delays will stop the rest of the program from working properly. For example, while you delay in loop you are not processing midis messages arriving.


740  Using Arduino / Audio / Re: VERY Basic MIDI Controller Help on: January 14, 2013, 02:17:30 am
Post the code that you already have so we can all see what's missing.

I am assuming that you have looked up the MIDI specification and know the codes and messages to send to the device to do what you want?
741  Using Arduino / Audio / Re: BPM (Beats per Minute) detection program - my version on: January 14, 2013, 02:14:40 am
You can attach files to a posting by clicking on the Additional option... At the bottom of the reply/post screen.
742  Using Arduino / Programming Questions / Re: I don't seem to understand C++ on: January 13, 2013, 04:58:03 am
Even in C the parameter passed as a pointer would be declared as type *varname, not &varname.
743  Using Arduino / LEDs and Multiplexing / Re: Digital Dice project on: January 13, 2013, 04:53:15 am
I have some code but I am traveling and it is not with me. Back at home next week end and if you are still interested I can load that. Usually I have an examples folder with the library - was one not there?

Any 595 type IC will work.  The LS and HC differ in the technology used to implement the IC, but they are functionally equivalent.

You should get familiar with these shift registers as they will allow you to expand the number of I/O while still only using 3 pins. Eventually you run out of pins otherwise. Lots of schematics on how to implement these, just look for them on this forum or Google. I think this is the easiest technique despite using some additional hardware.

The are other ways you can achieve this by multiplexing, but the software becomes more complicated and you may not always want to be updating the display as a major task for the CPU.
744  Using Arduino / LEDs and Multiplexing / Re: Digital Dice project on: January 12, 2013, 11:59:54 pm
I have some code that might help you at http://code.google.com/p/arduino-code-repository/downloads/list.  Look for the library to control 2 seven segment displays. In wrote this as a utility piece to show numbers like you are trying to do.
745  Using Arduino / Programming Questions / Re: Serial connection can't catch '\n' symbol! on: January 12, 2013, 03:43:44 pm
If you send the string make sure you add the new line indicator to the end when you send it.. You need some sort of delimiter between messages or it will be hard to synch up if you get garbled messages (which will happen).
746  Using Arduino / LEDs and Multiplexing / Re: tiny arduino on-board LED on: January 11, 2013, 12:42:09 am
Surface mount device (SMD) LED should help.
747  Using Arduino / Audio / Re: fluxamasynth on: January 10, 2013, 01:34:26 am
You cannot mix the headers from one release with another. The ifdef will only include the arduino.h file because you are running version 1 or greater.

I have already explained what to do, but if you don't understand what i have explained then I would suggest that you post a specific question about this issue in the programming forum.
748  Using Arduino / Audio / Re: fluxamasynth on: January 09, 2013, 03:19:36 pm
That code will work.

Byte is no longer supported by the new arduino libraries and it is now renamed to uint8_t, so you either use #define to rename, as suggested above, or rename all instances. They are the same unit of data storage, just different names.
749  Using Arduino / Audio / Re: fluxamasynth on: January 09, 2013, 02:02:01 am
You said you were getting a new shield. I just said that this was different from the fluxamasynth shield and can't see how it helps that to play on the fluxamasynth.

You have a fundamental problem with the shield and the example sketches you are using - you need to feed it data in a certain format that is created by the translation utility. You need to get that sorted out, pus some incompatibility because the examples are written using byte. There is no reason it should not work but you need to understand what the code is doing so you can solve the problems.

Have you looked where the data for Mary had a little lamb is to see if they are using byte there?
750  Using Arduino / Programming Questions / Re: How can we work with AT+SDATASTATUS on: January 09, 2013, 01:53:48 am
Google came up with this

http://www.sparkfun.com/datasheets/Cellular%20Modules/CEL-09533-TCPIP-APPNOTES-V1.1.pdf
Pages: 1 ... 48 49 [50] 51 52 ... 79