Show Posts
Pages: 1 ... 11 12 [13] 14 15 ... 18
181  Using Arduino / Programming Questions / Re: Help with a while loop on: November 18, 2012, 05:35:39 pm
Delta_G I think that's it I was thinking RX == HIGH is the same as digitalRead(RX) == HIGH
Yep that picked up the start bit of 8mS now I see

Arduino code may be easy if you never coded in Basic I figured where i set pinmode of RX would let me just read RX wrong LOL My code I started with works to after fixing that one thing.
182  Using Arduino / Programming Questions / Re: Help with a while loop on: November 18, 2012, 04:57:10 pm
I done the same code in swordfish basic  but can't get the loops right

This is what I'm trying to do I have a 315Mhz RF link kit The transmitter is on a pic 10F200 with three button switches .

You press  sw1 and it sends a 8mS high then a low of 8mS then 8 1mS pulses.

I want to get the start pulses
I tried some thing like this
Code:
int RX = 3;
void setup(){
  Serial.begin(9600);
  pinMode(RX, INPUT);
}

void loop(){
   Serial.println("Here we go again");
     unsigned long start = millis();
         while((millis() - start < 8000UL) && (RX == HIGH)){
   Serial.println("Here we where not");
    delay(100);
         }
}
183  Using Arduino / Programming Questions / Help with a while loop on: November 18, 2012, 03:39:18 pm
This sure is not basic could any one show the right way to write this
Code:
void loop(){
    int x = 0;
  while(RX == HIGH; && x < 8;){
      delay(1000);
      x = ++x;
  }
184  Using Arduino / Project Guidance / Re: current capacity of breadboards on: November 18, 2012, 02:04:14 pm
Solderless bread boards are not a good idea for power over a 1/2 amp there to much that can go wrong with them. I would make a PCB or for one off things use a solder bread board with gang tracks and over size them.

Where I work I've fixed a lot of poorly made boards that controlled motors
The older boards always had solder covered tracks which helps to fix some poorly made boards.   
185  Using Arduino / Project Guidance / Re: current capacity of breadboards on: November 18, 2012, 01:24:14 pm
solderless breadboad are good for 2 amp that's if you have a good one cheap one maybe a 1/2 amp

And here some design charts to use http://www.armisteadtechnologies.com/trace.shtml
186  Using Arduino / Project Guidance / Re: current capacity of breadboards on: November 18, 2012, 01:19:58 pm
I'm not showing one track it's two off them and the whole track is solder covered

And can safely handle the 10 amps

which gives a Trace Current Carrying  of about 12.5 amps
 
The track is 4 times as wide as the one on the stove PCB  and 1 once copper
187  Using Arduino / Project Guidance / Re: current capacity of breadboards on: November 18, 2012, 12:33:53 pm
Here maybe you can get a idea here I've use relays on strip board like this
the Red is 120 volts @ 10 amps the Gray is the going to the load

The blue are control lines

I used this to fix a relay that I couldn't find a match for worked fine. I also paint over the copper after I'm done with lacquer black nail polish works great as  insulation.
188  Using Arduino / Project Guidance / Re: Using PIR & multiple LEDs that get brighter over repeated triggers on: November 17, 2012, 05:55:27 pm
Quote
I would really like to have a new set of LEDs come on as motion continues
To do what you want would take more then one PIR  one can only tell if your moving but with 3 you could tell where you moved and if it was from right to left or left to right

That would let you light the spot you moved into. One can't do that.

But for the
Quote
but will be satisfied with all LEDs getting brighter with continued motion.
Just wait for trigger then count time it's on and let that update your PWM that controls your leds

Pir High counter started leds on 50% 1 second passes leds 60% then 70 80 90 100 if you stay for 5 seconds.
189  Using Arduino / General Electronics / Re: Connect Gate Remote Board Directly to Arduino...? on: November 16, 2012, 11:13:46 am
What I don't under stand is why you changed from transistor to Logic Output Optoisolators

If you think it works better you can still hook it up backward and 2 I showed you clearly how this worked with a transistor.

 
190  Using Arduino / Project Guidance / Re: PC Can not upload to Barebones with FDTI breakout board on: November 16, 2012, 02:36:21 am
You have to press the reset button just after it shows memory used press the reset button and let go
it will program then
  here a link showing how to do this  http://digital-diy.com/forum/arduino/mintduino-and-things-you-need-to-know-t2494.html
191  Using Arduino / General Electronics / Re: generating a -10v...+10v control signal from an arduino on: November 15, 2012, 06:20:57 pm
It will work may have to play with it a  little but that's the fun part. low pass and a op-amp and 2 volts above 10 should go 10 to 0 volts
192  Using Arduino / Programming Questions / Re: Read a freqency from an analog pin on: November 15, 2012, 09:58:43 am
Na some one here used a magic wand with there crystal ball
193  Using Arduino / Programming Questions / Re: Read a freqency from an analog pin on: November 15, 2012, 09:26:02 am
Here a nice link to give a understanding of sound and they have a nice link to a real good preamp
http://courses.oliviarobinson.com/wt/node/79

Never could figure wHy we need a crystal ball now I NO
194  Using Arduino / Project Guidance / Re: Want to emulate a rotary encoder, have a couple of questions. on: November 14, 2012, 09:13:55 pm
Do you have the remote that sit's on the dash of the car
195  Using Arduino / General Electronics / Re: power for rf module on: November 14, 2012, 07:59:06 pm
Just put a diode coming from the positive side of the battery it will drop you down enough to make
the receiver work  
4 AAA one diode makes 5.3 volts and will keep you from hooking the battery's wrong  smiley-lol  
Pages: 1 ... 11 12 [13] 14 15 ... 18