Go Down

Topic: Different MIDI data from pot (Read 894 times) previous topic - next topic

Grumpy_Mike

You see people helping here are rather like compilers, they stop at the first error they find. That is why it is important to post the code you are having the problem with and not a version you have fixed some time ago.

If you are 100% sure that at the lower baud rate it is working fine then the problem must be in the software that is receiving the code. However I suspect that that it is not working fine at the lower baud rate, can you post the code you have and what the output is at the lower rate.

sarma

#6
Jun 23, 2011, 04:15 pm Last Edit: Jun 23, 2011, 04:16 pm by sarma Reason: 1
I'm not quite sure what do you mean.

If I set the baud rate to 9600 and run application called Serial2Midi, my DJ software can map the pot just fine (it reads what it should read: Ch02.CC.21) with Ch02 being first number my MIDI function is sending (177), CC being the continous controller nr. 21 and last number which my function is sending is the read value (0-127). The board is connected to PC via USB directly so I have to use that Serial2Midi converter.

However, if I use the setup which is in my first post (I've bought this from ebay http://goo.gl/9oO9u , removed the MIDI cables from it and connected it to TX pin on the board) I have to set the baud rate to 31250 (otherwise it doesn't really work) and then those problems occur (DJ software reads multiple commands).

I have to say that I'm also using 2 rotary encoders connected using the same sheme (that converter from ebay), they can spin much faster compared to speed of rotating the pot, also running on 31250 rate and they work perfectly well.

Here is a picture of setup:
http://dl.dropbox.com/u/2777613/23062011041.jpg

Grumpy_Mike

Quote
removed the MIDI cables from it and connected it to TX pin on the board)

You can't do this it will not work. MIDI is a current loop interface and the TX pin is a TTL voltage interface. You need some hardware to convert the two, something like his:-
http://www.thebox.myzen.co.uk/Hardware/MIDI_Shield.html

sarma


Quote
removed the MIDI cables from it and connected it to TX pin on the board)

You can't do this it will not work. MIDI is a current loop interface and the TX pin is a TTL voltage interface. You need some hardware to convert the two, something like his:-
http://www.thebox.myzen.co.uk/Hardware/MIDI_Shield.html


That's strange because it DOES work (with rotary encoders).

This is the scheme: http://2.bp.blogspot.com/_KLJp9VskMzs/S0tTnt2GlbI/AAAAAAAAAJg/LSEawVLNDSg/s320/cheapo_midi-usb.png

Go Up