Show Posts
Pages: 1 ... 441 442 [443] 444 445 ... 591
6631  Using Arduino / Networking, Protocols, and Devices / Re: Decoding NRZ.... A possessed At mega ?? on: May 13, 2011, 07:25:51 pm
If you just need to reproduce the signal I see three options

a) forget the Arduino, just use a wire
b) if you don't have to do anything else then don't bother with timers and interrupts, OUT_PORT_PIN = IN_PORT_PIN
c) if you do have other processing to do then attachInterrupt (serialPortPin, CHANGE); in the ISR, OUT_PORT_PIN = IN_PORT_PIN

There may be some jitter because of the millis() interrupt but that will be the case with any approach I think unless you disable it.
______
Rob
6632  Community / Exhibition / Gallery / Re: Core memory shield on: May 13, 2011, 06:35:30 pm
I have a diode-logic nixie-tube calculator somewhere, it has a 32x32 (I think) core module in the centre of a 1000 diodes. It's a clear plastic module that was obviously a product you bought in those days.

All the diodes are mounted vertically like a field of young mangrove roots, God know how they debugged the board.

______
Rob
6633  Using Arduino / General Electronics / Re: 10K pot without stop on: May 13, 2011, 06:29:44 pm
@Crossroads
I've not seen them before, filed for future use. You notice though that they have about 27 degrees of dead band, seems rather a lot for something that's specifically designed for this use.

@neema_t
Thanks, also filed for future use.  I love the concentric ones, I just have to think of an application now smiley

_____
Rob
6634  Using Arduino / Project Guidance / Re: hardware used to test continuity of a 50 pin connector? on: May 13, 2011, 09:14:03 am
You put a 1 in the driver shift regs and have 50 bits of MUX for the input, say using 4067s or 4051s. Then

Code:
digitalWrite(shiftRegDataPin, HIGH);  // set a 1 bit for shift regs
digitalWrite(shiftRegClockPin, HIGH); // clock it out
digitalWrite(shiftRegClockPin, LOW);
digitalWrite(shiftRegDataPin, LOW);  // set a 0 bit for shift regs

for (int i = 0; i < 50; i++) {

    setMuxAddr (i - 1); // have to handle special case when i == 0
    if (digitalRead (muxPin) == HIGH)
      error();
    setMuxAddr (i);   // you'll have to write a func to do this
    if (digitalRead (muxPin) == LOW)
      error();
    setMuxAddr (i + 1); // have to handle special case when i == 49
    if (digitalRead (muxPin) == HIGH)
      error();

digitalWrite(shiftRegClockPin, HIGH); // move the 1 bit to the next wire
digitalWrite(shiftRegClockPin, LOW);
   
}

That's the general idea.

______
Rob
6635  Using Arduino / Networking, Protocols, and Devices / Re: Problems with serial port (RS232) sensor on: May 13, 2011, 09:04:09 am
Have you verified that the MAX232 output is good?

What do you get if you just Serial.print() the sensor data?

When you get good data from Serial.print then you can start blaming the Xbees and maybe drop the data rate and see if that works.
______
Rob
6636  Using Arduino / General Electronics / Re: 10K pot without stop on: May 13, 2011, 08:20:10 am
The top one looks good to me because it has a mounting thread/nut. Unfortunately it looks like it's been discontinued by Panasonic.

______
Rob
 
6637  Using Arduino / Microcontrollers / Re: Bootloader for a 1284P @ 16MHz - problems :-( on: May 13, 2011, 05:40:09 am
That sounds like the error James was getting on that thread, apparently though the loader still worked despite the error.

______
Rob
6638  Using Arduino / Displays / Re: 4D LABS μLCD-32PT(SGC) 3.2” Serial LCD Display Module Arduino Library on: May 13, 2011, 04:03:11 am
OK I see that, I guess that is affectively the same thing, especially if they implement the contrast adjust by dimming the back light which they may do.

______
Rob
6639  Using Arduino / Microcontrollers / Re: Bootloader for a 1284P @ 16MHz - problems :-( on: May 13, 2011, 03:55:34 am
Have a look at this thread

http://arduino.cc/forum/index.php/topic,58014.msg424488.html#msg424488

______
Rob

6640  Using Arduino / Displays / Re: 4D LABS μLCD-32PT(SGC) 3.2” Serial LCD Display Module Arduino Library on: May 13, 2011, 03:09:19 am
@avenue
I grabbed the code form your site and am having a look.

IIRC there's no way to dim the backlight, is that the case?

______
Rob
6641  Using Arduino / General Electronics / Re: 10K pot without stop on: May 13, 2011, 01:47:08 am
You can fudge an encoder with a rotary switch but probably can't tell direction, just that it was turned. They do give nice detents on the stops though.

Actually you can tell direction I think if you use a 6p2t switch and wire it correctly you would get values of 0, 1, 2 and 3 and the software could tell which direction from that. (just thinking out aloud, it may not work as I said but you might be able to figure the direction out with some thought.)

______
Rob
6642  Using Arduino / Motors, Mechanics, and Power / Re: Where can I buy arduino friendly solenoid valves? on: May 13, 2011, 01:18:54 am
There are plenty of shops that sell solenoid valves, most hardware/irrigation stores for example. But one big question is

"Do you have pressure?"

Because most solenoid valves need the water pressure to open.

______
Rob
6643  Using Arduino / General Electronics / Re: 10K pot without stop on: May 13, 2011, 01:16:49 am
I haven't seen them but it's possible. However it sounds like you really need a rotary encoder.

Any particular reason for needing a pot?

______
Rob
6644  Using Arduino / Programming Questions / Re: multiple loops on: May 13, 2011, 01:14:40 am
Nothing can run "simultaneously" on an Arduino, things have to run one after another. Having said that normally things run so fast they appear to be simultaneous.

Thats code looks OK, it will repeatedly run the three loops.

What is it not doing you think it should be doing?

______
Rob
6645  Topics / Robotics / Re: MOSFET's? on: May 12, 2011, 09:38:01 pm
Thanks RC, they both look good.

______
Rob
Pages: 1 ... 441 442 [443] 444 445 ... 591