Show Posts
Pages: [1] 2 3 ... 21
1  Forum 2005-2010 (read only) / Forum / Re: Frequently Asked Questions on: September 13, 2010, 04:55:58 am
Hahah.

Some tips/links on basic debugging strategies might also save the more experienced members a lot of frustration when they're trying to help.
2  Forum 2005-2010 (read only) / Troubleshooting / Re: Sega genesis controller via arduino board? on: September 19, 2010, 12:49:52 pm
Any Arduino will do this fine. The Megadrive pad is pretty easy.

I'm assuming you want the challenge of doing it yourself so here's an extract of information.

= = =

I didn't think there'd be anything of interest in hooking this up to an Arduino, but it does have one unusual characteristic: one pin (Select) is used to choose between two sets of readings. i.e. With Select low, reading from pin 6 gives you the status of button A. With Select high, pin 6 gives you the status of button B. Cool!

Code:
Pin      Name (Select=GND)      Name (Select=+5V)
1       Up       Up
2       Down       Down
3       Gnd       Left
4       Gnd       Right
5       +5VDC       +5VDC
6       Button A       Button B
7       Select       Select
8       Ground       Ground
9       Start       Button C

 Here's the pin layout of the port on the controller, stolen from pinouts.ru.



Nowt fancy needed here. Just shove wires into the holes and connect them to digital pins on the Arduino, pin 5 and pin 8 going to +5V and Gnd respectively.
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Sorting an array on: September 03, 2010, 09:12:10 am
@smartroad
Quote
The last time I had to write up anything like this in a programming language was some 20 years ago lol
Hahaha, to be quite honest, it's been a long time since I wrote an array sort myself. smiley-grin

@desilva
I wasn't recommending a bubble sort for this... even if it might work... I was just sharing the memory. Or thread jacking as it is sometimes known. smiley-wink
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Sorting an array on: September 03, 2010, 03:48:00 am
Don't they teach how to write a bubble sort or similar in schools anymore?

I remember when I was young... they wouldn't even let you touch a computer until you wrote perfect psuedo-code for a bubble sort.
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Sorting an array on: September 02, 2010, 05:56:12 pm
Quote
Paul is not at his best tonight smiley-wink
You can't say things like that! smiley
6  Forum 2005-2010 (read only) / Troubleshooting / Re: for loop on: September 14, 2010, 04:20:26 pm
As a side note: why don't you stop using Processing for a bit and test by manually sending strings via the Serial monitor?

Then you can put in a load of Serial.prints to better figure out what's going on exactly.

When it works from the serial monitor, it'll probably work from Processing.
7  Forum 2005-2010 (read only) / Troubleshooting / Re: for loop on: September 14, 2010, 04:16:08 pm
Well bugger me! smiley-grin

You might have a different issue entirely. Or you might have an extra one.

The problem with waiting while data is available on the serial port is that it's possible for it to finish before Processing has finished sending all the data. A slight gap in the transmission when Serial.available() is called would terminate the loop. If that happened then your variables wouldn't be set properly so endx wouldn't be 6.

Easiest thing to do from here would be to sit in the loop reading from the serial port until you're sure you have all the data you need.

Cool problem though.
8  Forum 2005-2010 (read only) / Troubleshooting / Re: for loop on: September 14, 2010, 02:06:56 pm
Any time you're programming, you need to have some way of being able to debug what you're doing.

I'll bet Whistler is correct on this one.

If you made the effort to give yourself a way of outputing messages back to yourself from the code, you'd probably have realised by now that you're exceeding the upper-limit of xva[].

And if the next variable declared in memory was endx, then you've just killed it. The Arduino compiler won't warn you if, for example, you've declared an array of six bytes but then set the value of a seventh.

[edit]
There's a good chance that your loop is not terminating at all (since after you've killed endx with a zero, g will never be less than endx).
[/edit]
9  Forum 2005-2010 (read only) / Troubleshooting / Re: How to install Arduino drivers on Windows 7 32bit on: September 09, 2010, 11:46:23 am
So if you right click on the "Unknown Device" in the Device Manager, bring up the properties and use the update driver option to point directly to the drivers folder in the Arduino installation, it still doesn't work?

That's how I installed my Arduino on W7 32-bit btw.
10  Forum 2005-2010 (read only) / Troubleshooting / Re: My First Program on: September 03, 2010, 09:22:18 am
Sorry dano,

We all make mistakes with platforms/devices when starting out... but this one is a belter!!! smiley-grin
11  Forum 2005-2010 (read only) / Troubleshooting / Re: your cvs server is down on: September 02, 2010, 12:34:30 pm
I just checked - my cvs server is working perfectly but thank you for the warning...  :smiley
12  Forum 2005-2010 (read only) / Troubleshooting / Re: Compiler problem with main.cpp on: August 18, 2010, 01:14:50 pm
That's a library, so you need to create a normal sketch with a setup() and loop() then create an instance of dogm_lcd.

I suspect you're trying to run the library instead.

Edit:
The dogm_lcd.h and .cpp files probably want to go into your Libraries folder. I'm guessing the .pde is the basic sketch that instances the library.
13  Forum 2005-2010 (read only) / Troubleshooting / Re: Reading MIDI-SysEx on: August 18, 2010, 09:14:46 am
The only other thing I can think to check at this point is that you're definitely sending F0 and F7 etc. as numbers (i.e. 240 and 247) and not character strings (i.e. 70 48 (Ascii F0))

Failing that, I don't know mate. I'm tempted to build the circuit myself to work on it, but it'd probably be the weekend before I got the time to try that.
14  Forum 2005-2010 (read only) / Troubleshooting / Re: Reading MIDI-SysEx on: August 18, 2010, 07:41:29 am
Oh, and out of interest - does this tutorial work using your adapter and duino - http://arduino.cc/en/Tutorial/Midi ?
15  Forum 2005-2010 (read only) / Troubleshooting / Re: Reading MIDI-SysEx on: August 18, 2010, 07:39:35 am
What software(?) are you using to send the SysEx messages?

Your USB adapter shouldn't be changing the messages... and I doubt that the one you posted would be different. Have you tried it with any kind of midi hardware (other than the Arduino) e.g. keyboards etc.?
Pages: [1] 2 3 ... 21