Show Posts
Pages: 1 ... 70 71 [72] 73 74 ... 97
1066  Community / Website and Forum / Re: Auto-Detect the need for code tags? on: April 24, 2012, 07:39:56 pm
Oh Geez! smiley
What I meant to say was: Or perhaps the icon could just have "[ code ]"

Pete
(I previewed it this time!)
1067  Community / Website and Forum / Re: Auto-Detect the need for code tags? on: April 24, 2012, 07:11:44 pm
That's a good idea smiley Or perhaps the icon could just have "
Code:
"

Pete
1068  Using Arduino / Interfacing w/ Software on the Computer / Re: I2C to Si570 on: April 24, 2012, 07:05:18 pm
I haven't used one of those chips and a quick perusal of the datasheet only brings up a couple of questions/suggestions. The datasheet says that both SDA and SCL must be connected to the positive supply via external pullup resistors. A couple of the diagrams also seem to imply that the SDA won't work unless OE is asserted. Do you assert OE when you try to find the device?

Pete
1069  Using Arduino / General Electronics / Re: heating element drawing too much power away from arduino on: April 24, 2012, 04:56:00 pm
If you're powering it with a 9V 2A adapter and the heater requires 2.7A I'd say your answer is right there. Get an adapter that can supply more current. Probably 3.5A at least.

Quote
the power supply reads out 4.2A instead of the printed 2A, is that normal or is it mislabeled?
You must have measured that when the voltage had dropped to 5.4V. The 2A rating is the maximum you can draw from the supply before it starts to sag.

Pete
1070  Community / Website and Forum / Re: Auto-Detect the need for code tags? on: April 24, 2012, 04:45:59 pm
It also might help if an icon could be designed which looks more like code. To me, the # symbol doesn't mean "code" at all whereas the icon for quoting text does imply quoting something. First time users might be more likely to use it if was more representative of what it does.

Pete
1071  Using Arduino / Audio / Re: Daft MIDI problems on: April 24, 2012, 01:47:35 pm
Yep, make a backup copy of the existing file first. Rename it to something like midi_original.xcpp so that the IDE won't try to use it. Then replace it with the attached file.

Pete
1072  Using Arduino / Audio / Re: Daft MIDI problems on: April 24, 2012, 12:19:38 pm
If you don't mind meddling with the library, I can attach a version of midi.cpp which doesn't do that. It's an easy change.

Pete
1073  Using Arduino / Audio / Re: Daft MIDI problems on: April 24, 2012, 10:44:11 am
Another wild guess. I notice in the code for the midi library that if you send two or more commands of the same type in a row it doesn't repeat the command byte each time. This is part of the Midi spec but perhaps your midi device (or Midi-Yoke?) doesn't handle it properly.
See if this works:
Code:
void loop() {

    MIDI.sendNoteOn(42,127,1);  // Send a Note
    MIDI.sendNoteOff(45,0, 1);
    MIDI.sendNoteOn(45, 127, 1);
    delay(1000);      // Wait for a second
    MIDI.sendNoteOff(42,0,1);
    MIDI.sendNoteOff(45,0,1);   // Stop the note
 
}

This may not change anything at all. But if it sort of works, what will happen is that both notes will sound and then note 42 will go off but 45 might stay on.

You should also try changing each sendNoteOff to a sendNoteOn with a velocity of zero. Apparently, some devices don't even respond to NoteOff.
Pete
1074  Using Arduino / Sensors / Re: Arduino Mega 2560 + DallasTemperature DS18B20 doesn't work. Please help on: April 23, 2012, 07:21:56 pm
Don't use quotes for your code. Use the code tag button labelled '#' immediately to the left of the quote button.

Pete
1075  Using Arduino / Interfacing w/ Software on the Computer / Re: Need faster serial transfer - Arduino and C# on: April 23, 2012, 07:19:58 pm
Code:
             num[0]=Serial.read();
             num[1]=Serial.read();
             num[2]=Serial.read();

I hope you have declared num to have at least 4 elements and that you've set num[3] to zero. Otherwise you could be getting strange results for the PWM values.

Pete
1076  Using Arduino / Interfacing w/ Software on the Computer / Re: Need faster serial transfer - Arduino and C# on: April 23, 2012, 07:15:47 pm
Quote
Would it make much difference to change it to bytes?
A bit, but it would be much easier to just change the baud rate to 56700 or higher. If that isn't helping then perhaps you are limited by how fast the motor can respond to the commands.

Pete
1077  Using Arduino / Interfacing w/ Software on the Computer / Re: Need faster serial transfer - Arduino and C# on: April 23, 2012, 06:46:50 pm
What speed have you set the Serial device? It looks like it might be 19200 bps, in which case it can go a lot faster.

Pete
1078  Using Arduino / Audio / Re: Daft MIDI problems on: April 23, 2012, 04:55:35 pm
You could also try setting the baud rate to 38400 to see if that helps.

Pete
1079  Using Arduino / Project Guidance / Re: Building a ChronoGraph on: April 23, 2012, 02:20:51 pm
Your math appears to be correct. I get 33 microseconds (.033ms) which the Arduino should be able to measure. But I suspect that the cross section of a BB pellet is too small for the IR receiver to see reliably, or perhaps at all.

Pete
1080  Topics / Science and Measurement / Re: Playing with FFT on: April 23, 2012, 11:27:22 am
Thank you.

Pete
Pages: 1 ... 70 71 [72] 73 74 ... 97