Show Posts
Pages: 1 ... 57 58 [59] 60 61 ... 174
871  Using Arduino / Programming Questions / Re: AttatchInterrupt Constantly interrupts on: August 24, 2013, 11:25:13 am
Connect the interrupt pin to +5 with a 10K resistor.
Then, with a wire, touch that pin to Gnd - letting go will result a RISING interrupt.

int times = 0;
volatile boolean Detect = false;  // Interrupt Note

void setup()
  attachInterrupt(0,Activity,RISING);  // Ext_Int on D2

void loop()
  if (Detect == true)

void Activity()   // this is the Interrupt !
  Detect = true;

void Action ()
  Detect = false;
  times ++;
872  Using Arduino / LEDs and Multiplexing / Re: HOW TO SCROLL SLOWER ON SURE 3208 HT1632C Dot Matrix Display on: August 24, 2013, 09:00:24 am
Change delay (200); to delay (1000); ?
873  Using Arduino / General Electronics / Re: FET, Digital or analog? How to tell? on: August 23, 2013, 08:50:07 pm
Those would be OK, for your "2A" purpose.  5V for those guys is like a minimum "on" voltage.
My suggestion leaves room (current-wise) to grow into.
I used the STP... in my "e-chopper".
CrossRoads's suggestion is a good deal, too; less dough, buy more stuff, win-win.

And, in case you didn't know, DigiKey is a primo source (supplier).

874  Using Arduino / General Electronics / Re: FET, Digital or analog? How to tell? on: August 23, 2013, 07:28:04 pm
10 of them for about $20
they're very low "on-state" ohms

BTW - It's not "logic" vs "analog", it's "logic level" vs everything else.
"Logic level" means they get turned on right with a logic level ("5V") voltage (the others require more, much more.)
875  Using Arduino / Project Guidance / Re: rs232 newbie question on: August 18, 2013, 04:49:51 pm
An idea possibly would be something like this?? smiley-eek

They work...
...but they're definitely NOT for 120vac circuits (w/o modification & finger-crossing.)

Given any thought to one of the circuits in zoomkat's link (Reply#5) - if not the first one then the second?
You definitely need to do something about that.
[Does it matter if you get the Reply back from the relay board?]
876  Using Arduino / Programming Questions / Re: RFID tags in EEprom...Please help on: August 18, 2013, 04:35:12 pm
877  Using Arduino / Project Guidance / Re: rs232 newbie question on: August 18, 2013, 01:52:10 pm
Energise 1st relay [coil], bank 1:
Serial.print (0xfe,BYTE);
Serial.print (0x6c,BYTE);
Serial.print (0x01,BYTE);
BYTE is Not "Arduino 1" supported keyword.
De-energise previously selected relay [coil] in current bank:
Serial.print (0xfe,BYTE);
Serial.print (0x00,BYTE);
BYTE is Not "Arduino 1" supported keyword.

Know anything about what baudrate (bps) it's supposed to run?
> > > Maybe it's 9600?  See "what is baud rate?" ----
878  Using Arduino / Programming Questions / Re: Making accurate clock with no delay? on: August 18, 2013, 12:00:11 pm
One of the prominent members, CrossRoads, made this sketch for a millis()-based clock.
And accurate.
I modified it for 24-hour format.

    CrossRoads Timeclock 
    Adapted for 24hr time
    by Me!  08SEPT2012
    and leading zeros, too
unsigned long previousTime = 0;
byte seconds ;
byte minutes ;
byte hours ;

void setup()
  //  Preset HHMMSS for 24hr rollover test
  //  Could jump to a function to set time
  //  and start
  seconds = 45;
  minutes =  59;
  hours =  23;
  Serial.begin (9600);

void loop ()
// I  think using microseconds is even more accurate
  if (millis() >= (previousTime))
     previousTime = previousTime + 1000;  // use 100000 for uS
     seconds = seconds +1;
     if (seconds == 60)
        seconds = 0;
        minutes = minutes +1;
     if (minutes == 60)
        minutes = 0;
        hours = hours +1;
     if (hours == 24)
       hours = 0;
     if (hours < 10)
     Serial.print (hours, DEC);
     Serial.print ("h");
     if (minutes < 10)
     Serial.print (minutes,DEC);
     Serial.print ("m");
     if (seconds < 10)
  } // end 1 second
} // end loop

So, if your LCD routines can execute in the time it takes to do (and in place of) the Serial.print stuff then you'll be alright.  (The LCD routine cannot use delay().)
879  Topics / Home Automation and Networked Objects / Re: Arduino Hangs when I connect it to Ethernet Shield + 4in1 Relay Board. on: August 18, 2013, 11:14:26 am
Ethernet boards strain the Arduino 5V supply, leaving little capacity for anything else.

Does a sketch running just the relay board (no ethernet board in place) work right?

If things are good with just the relay board, and then they get dodgy with the Ethernet board in place, then you have a diagnosis.
880  Using Arduino / Project Guidance / Re: rs232 newbie question on: August 18, 2013, 11:08:28 am
But an ASCII character is Hex data.
An ASCII character is composed of a byte (8 bits), 0x00 - 0xff.
Some terminal programmes cannot (do not) send all of the ASCII control codes ( 0x00 - 0x1f )
An Arduino is fully capable of rattling off any combination of bytes in "8N1" fashion.
So you just need to come up with a TTL to RS232 interface (MAX232, et al)

Your device/s may accept the Arduino output inverted (via npn transistor, common collector config.) 
A MAX233 will effect "RS-232 compliant" signalling.
881  Using Arduino / Displays / Re: Nano and 128x64 KS0108 display and GLCD Problem on: August 18, 2013, 08:21:33 am
No, no changes.
The "Nano" pins are labelled just as they are on a Duemil./Uno, all of that works the same.
882  Using Arduino / General Electronics / Re: wall mart efficiency ??? on: August 17, 2013, 09:56:40 pm
In the case of SMPS, efficiency isn't constant from 10-90% load.
On the low end, given little draw, "switchers" can blow chunks, incl. many of the little 78xx-footprint devices.
883  Using Arduino / Project Guidance / Re: Reading NMEA over serial on: August 17, 2013, 06:33:08 pm
WAG -- Have you tried swapping the rx/tx at the Arduino?

You should be able to see evidence of data/activity from the MAX's "TTL" (CMOS?) output by connecting
an LED with a series resistor, 1K, between TTL data out and +5V.

[For troubleshooting, that MAX TTL_data_out could go to Arduino RX, D0, (instead of the softwareserial arrangement) - with no connection to TX (D1), Serial Monitor will still work. Disconnect GPS from Arduino when uploading a sketch though.]


MAX_TTL_out -----1KΩ---K_A---- +5V

884  Using Arduino / Installation & Troubleshooting / Re: Testing Arduino Boards, I/O Pins etc.. Test Shield - Test Software on: August 17, 2013, 01:10:53 pm
Umm.. and I'll try to put the CODE here. Maybe. (OK, Too Big. This is a fragment...) See the Website.

If you want place your sketch here you can click on Additional Options... (see lower left corner of Post/Reply text window) and upload the PDE/INO file that way.
885  Using Arduino / General Electronics / Re: Soldering tips - close pitch components. on: August 17, 2013, 11:13:12 am
finer pitched ICs are out of my league
but 0.05 (point-oh-five) is workable

flood the zone
with flux

low temp tip or a station with variable setting
keep a bead of solder on the tip
and kind of strafe the pins, wetting them as the tip goes by

if you bridge, go back to it later with treated wick
prolonged heat vs. a re-heat = coin toss?
Pages: 1 ... 57 58 [59] 60 61 ... 174