Show Posts
Pages: 1 2 [3] 4 5 ... 72
31  Using Arduino / Project Guidance / Re: Bee Hive Scale on: April 05, 2014, 08:59:54 pm
Not that one, although it is a good link. The one I mean was specifically about how to weigh beehives.
32  Using Arduino / Project Guidance / Re: Feasibility of using ATmini85 to produce IR signal on: April 05, 2014, 08:47:19 pm
You can get up to 12" range with an RFID reader. I even designed one that gave 18" range.
Thanks again, Mike.
33  Using Arduino / Programming Questions / Re: Increasing a Loop value on: April 05, 2014, 12:02:49 am
Thanks for the responses guys, I really appreciate the help.
Henry_Best-for some reason, this doesn't work much at all. It just freezes everything, but I think this is closer. I'll keep playing with variables
Sorry. My error. Change elevation >40 to elevation < 40    smiley-red
34  Using Arduino / Programming Questions / Re: Traffic Lights questions on: April 04, 2014, 11:53:50 pm
Also I think your code is fine? I'm not too sure what you're doing though since you seem to have two LEDs on? This is what I understand, although truth be told I haven't slept in 48 hours so I'm a lil out of it.
  Basically your pseudo like code does
  1) Red on for 5 seconds
  2) Red on AND Yellow on for 2 seconds
  3) Red and Yellow now off and Green on for 5 seconds
  4) Green off and only Yellow on for 2 seconds
  5) goto 1
That is the correct sequence for UK traffic lights, although the timings are usually longer. 5 seconds on green will only let two cars through, at most!   smiley-roll
35  Using Arduino / Programming Questions / Re: Increasing a Loop value on: April 04, 2014, 11:21:12 pm
Then you'll want something like this:
Code:
void loop(){
  for(elevation =0; elevation<40;elevation+=5){  //raise elevation from 0
                  // to 40 degrees in steps of 5 degrees
      for(pos1 = 0; pos1 < 180; pos1 += 5) {// goes from 0 degrees to 180 degrees
                             // in steps of 5 degrees
          myservo1.write(pos1); // tell servo to go to position in variable 'pos'
          delay(150);
       }
       myservo1.write(0);     // tell servo to go back to 0
       delay(150);   // do you need this delay?
       myservo2.write(elevation);
  }
}
36  Using Arduino / Programming Questions / Re: Increasing a Loop value on: April 04, 2014, 10:45:17 pm
It's not clear what you want. Do you want your turret to turn through 180o then return to 0o, raise the angle by 5o and sweep again (out, back, up, out, back, up) or do you want it to turn through 180o then raise and do a reverse sweep (out, up, back, up, out, up, back, up)?

EDIT: Obviously, at the end of your routine, you'll need to return to 0o in both axes, ready for the next time.
37  Using Arduino / Project Guidance / Re: Feasibility of using ATmini85 to produce IR signal on: April 04, 2014, 10:27:49 pm
You can get some very small RFID tags, the sort they inject in pets are very small.
Very nice, but £50 for the reader is too much to destroy, hacking it to an Arduino.
You can read those tags with a normal cheap reader. You can make your own for less than a fiver.
I'll look into that, thanks. Is it possible to read them from about 25mm (1") away or do they have to be closer? Pets don't normally have that thick skin and there's little need to tag an elephant in this country, as they're rather hard to lose.  smiley-grin
38  Using Arduino / Project Guidance / Re: Bee Hive Scale on: April 04, 2014, 09:52:16 pm
Search the forum for 'bee hive'. There was a very long thread a few months ago discussing this problem.
39  Using Arduino / General Electronics / Re: Thermo Electric Cooler/Heater. on: April 03, 2014, 10:53:42 pm
Although not all DC motors run as well backwards as forwards.
How do you tell which way is forwards and which backwards?

No, no, don't tell me! I guess that forwards is the direction it runs best in.  smiley-wink
40  Using Arduino / Project Guidance / Re: Feasibility of using ATmini85 to produce IR signal on: April 03, 2014, 09:36:37 pm
I couldn't find how much current the ATtiny uses.
That info is in the relevant Atmel datasheet. At 5v and 1MHz it only uses 1 mA (assuming I read the graph correctly).
Thanks. I did look there but didn't see it.
Quote
What about a reed switch triggered by a magnet under the track so it switches the whole Attiny on (and then lets it go off) so there is zero consumption when there is no magnet?
That's the idea of the hall effect device, but I agree that a reed switch (zero current consumption when off) would be better. I didn't think of that. Thanks.
Quote
I know you started with the notion of the IR detector under the track - but that's not necessary if you are using a transmitted LED signal (as opposed to a reflective system) because the IR detector is not the thing that identifies the location.
Agreed, but the detector can be inset into the ballast and its wiring can be easily hidden under the baseboard. The IR transmitter LED will also be hidden, shining through a hole in the wagon floor. A 3mm hole to 'push fit' the LED would be easy to drill without damaging the appearance of the wagon. The electronics in an open wagon can be hidden by a dummy load.
41  Using Arduino / Project Guidance / Re: Feasibility of using ATmini85 to produce IR signal on: April 03, 2014, 08:59:47 pm
Quote
I was thinking of trying mirror tape but it's difficult to find in the UK.

kitchen alu-foil + sticky tape or glue!    smiley
You watched too much 'Blue Peter'.   smiley-grin
Quote
.....sounds like you have lots of options.

BTW: lots of good value RFID readers available on ebay...eg  < 6 pounds incl post based on search (rfid Arduino)
But will they detect the pet microchips? And at what range?
42  Using Arduino / Project Guidance / Re: decrementing the delay value on: April 03, 2014, 08:28:09 pm
OK, Im still getting error messages. Here is my code. Please excuse my ignorance of what the error messages mean:

Code:
int led1 = 1;  //avoid the use of pins 0 and 1.
   //They are used by USB when uploading code.
int led2 = 2;
int led3 = 3;
int led4 = 4;
int led5 = 5;
int led6 = 6;
int led7 = 7;
int led8 = 8;
int led9 = 9;
int led10 = 10;
int led11 = 11;
int led12 = 12;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led1, OUTPUT); 
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
  pinMode(led4, OUTPUT);
  pinMode(led5, OUTPUT);
  pinMode(led6, OUTPUT);
  pinMode(led7, OUTPUT);
  pinMode(led8, OUTPUT);
  pinMode(led9, OUTPUT);
  pinMode(led10, OUTPUT);
  pinMode(led11, OUTPUT);
  pinMode(led12, OUTPUT);
  long delayValue = 1000;
}
   
void loop(){
   while(delayValue >=30){
        delay(delayValue);
        digitalWrite(led1, HIGH);
        delay(delayValue);
        digitalWrite(led1, LOW);
        delayValue-=10;
   }
}
43  Using Arduino / Programming Questions / Re: stop loop on: April 02, 2014, 11:52:40 pm
Helps to code it correctly:

if (flag == 0){ // 1 = is assignment, two == is comparison

also upper case/lower case sensitive

Oooooppps!
44  Using Arduino / Programming Questions / Re: Dali Master on: April 02, 2014, 11:47:27 pm
I wonder why I get the feeling that it would make more sense to ask those questions of the people who make/sell the DALI click board (whatever that is)?

...R
By Dali Master, I imagined a painting of a melting clock... smiley-confuse
45  Using Arduino / Project Guidance / Re: Feasibility of using ATmini85 to produce IR signal on: April 02, 2014, 10:23:17 pm
Too bad you don't have a little more room - maybe an RFID tag in each car,
You can get some very small RFID tags, the sort they inject in pets are very small.
Very nice, but £50 for the reader is too much to destroy, hacking it to an Arduino.
Pages: 1 2 [3] 4 5 ... 72