Show Posts
Pages: 1 ... 6 7 [8] 9 10 ... 72
106  Using Arduino / Project Guidance / Re: First Arduino Project. Is it Possible and a good first build? Chicken Coop on: March 17, 2014, 11:07:08 pm
Certainly possible, but you should approach it in stages. Get the RTC and door opening/closing working first, then add the other parts, one at a time.
Quote
It seems pretty basic.  How do i learn how to code all this stuff.  Where do i begin to learn how to get this all up and going from a completely new perspective?
I suggest you start with a kit. These usually include a book for the beginner with some examples to work through. Working through all the examples will give you a basic understanding of the electronics and coding involved. Once you've done that, you're not on your own, as this forum is here to help you.
107  Community / Bar Sport / Re: Normal English phrase embarrassing in the US on: March 16, 2014, 11:02:49 pm
I know, as a tourist in England, never to refer to my utility belt as a "fanny pack"
And a bathroom does not always have a toilet in it.
108  Using Arduino / Programming Questions / Re: Simple Switching Sequences on: March 16, 2014, 08:16:36 pm
What UKHeliBob said, and make sure you debounce your button.
109  Community / Bar Sport / Re: Old electric meter housing on: March 15, 2014, 09:42:54 pm
whats your next project? a digital power meter?
He's going to get it to run backwards and use it as a countdown timer.   smiley-cool
110  Using Arduino / Project Guidance / Re: Movable Bridge Traffic Lights on: March 15, 2014, 08:07:24 pm
Code:
void loop()
{
  Serial.println(Count);  
  Serial.println(Count);
  
  if(Count == 0)
  {
    digitalWrite(CarLED, HIGH);
    digitalWrite(BoatLED, HIGH);
    Count = checkcount();
    delay(1000);
    Serial.println(Count);
    digitalWrite(BoatLED, LOW);

Here you set BoatLED LOW, but a few microseconds later,
in the next iteration of loop(), you set it high again.
It does go off, but you don't see it, as it's off for such a short time.
  } 
111  Using Arduino / Programming Questions / Re: While loop not behaving as expected! on: March 14, 2014, 10:25:13 pm
While we are letting people onto the cars, the Arduino will be tied up, hence the need for an interrupt.
Tied up doing what?
Quote
I am in the process of writing a flow chart to describe the process and it is getting more complicated than I initially thought it would be.
That's almost always the case!  smiley-eek
112  Using Arduino / General Electronics / Re: Can someone please tell me the identity of this 7 segment display [Sorted] on: March 13, 2014, 10:54:43 pm
Hi, can you supply a picture of it , possibly with a ruler in the pic.

Thanks Tom.... smiley
I'll try to do that tomorrow.
113  Using Arduino / General Electronics / Re: Can someone please tell me the identity of this 7 segment display [Sorted] on: March 13, 2014, 10:51:23 pm
Ha, I Googled "Fairchild ND10402-531", and it came up with just 1 result!, this page. smiley-lol
I told you there was nothing on google...
Quote
Runaway Pancake made a good suggestion, but if your multimeter's ohms range doesn't provide enough voltage and current to  dimmly light the individual segments, then you could use a couple of AA cells and a series resistor to "investigate" the connections.  That voltage should not cause any damage if you have a reversed connection.
Yep. That's exactly what I did, using a couple of slightly discharged Ni-MH cells (2 * 1.2V) and found that, as I suspected, the centre leg is the common (-ve) one. Now all I need is to find a socket for it or a small piece of stripboard or protoboard with a 1mm pitch!  smiley-eek-blue
114  Using Arduino / Programming Questions / Re: Interrupts to change LED color out of continues function on: March 13, 2014, 10:12:03 pm
I don't see any interrupts, and I don't see any setup or loop either.
I see no need for interrupts. The Blink Without Delay example in the IDE will show you how to do it.
115  Using Arduino / Programming Questions / Re: Controlling servo position with 2 switches, but servo shakes out of position on: March 13, 2014, 09:55:46 pm
Where, in your code, are you keeping track of the current servo position?
116  Using Arduino / Programming Questions / Re: Stepper Motor Programming on: March 13, 2014, 09:39:54 pm
Here is the code I have so far.
You need a flag to keep track of when the door is open and when it is closed.
Code:
...
boolean doorOpen = 0;
 //Assumes the door is closed at start. If not, doorOpen = 1;
void setup() {
 Serial.begin(9600);
 // set the PWM and brake pins so that the direction pins 
// can be used to control the motor:
pinMode(pwmA, OUTPUT);
 pinMode(pwmB, OUTPUT);
 pinMode(brakeA, OUTPUT);
 pinMode(brakeB, OUTPUT);
 pinMode(motion_1, INPUT);
 digitalWrite(pwmA, HIGH);
 digitalWrite(pwmB, HIGH);
 digitalWrite(brakeA, LOW);
 digitalWrite(brakeB, LOW);

 
 // initialize the serial port:
 Serial.begin(9600);
 // set the motor speed (for multiple steps only):
 myStepper.setSpeed(80);
}
void loop()
{
if( digitalRead(motion_1)== HIGH && doorOpen == 0){
//PIR detecting and door not open
  myStepper.step(200);  //adjust to do number of steps to open door
  doorOpen =1;  //remember that the door is open
   }
if( digitalRead(motion_1)==LOW&& doorOpen == 1){
//PIR NOT detecting and door open 
  myStepper.step(-200);   //adjust to do number of steps to close door
   doorOpen =0;  //remember that the door is closed
   }
}
Please post your code between code tags, the # key above the input box.
117  Using Arduino / Programming Questions / Re: While loop not behaving as expected! on: March 13, 2014, 08:57:21 pm
pretty sure the line
while ((Switch0 == LOW)  || (Switch3 == LOW)); {
should be
while ((Switch0 == LOW)  || (Switch3 == LOW)) {

Basically removed the apostrophe, pretty sure that'll fix your problem
It's the semicolon that he needs to remove. There's no apostrophe there.
118  Using Arduino / General Electronics / Re: Can someone please tell me the identity of this 7 segment display on: March 12, 2014, 10:27:06 pm
Do you have a multimeter?
You can use the diode test function to bias the pins and find out by process of elimination.
It's not unusual that an ohmmeter can provide enough current to, likewise, dimly illuminate the LEDs.
I've a digital multimeter, but it has no diode test function. I never thought of using it. Thanks for the suggestion.
119  Using Arduino / Project Guidance / Re: I am a COMPLETE noob at programming on: March 12, 2014, 09:47:18 pm
Was there not a booklet or a link to a website with your kit? If there was, I would start with there.
Work your way through all the examples, whether you think they're relevant or not.
There are some good (and some bad!) tutorials on YouTube. You should Google TinyDuino tutorial to find those.
120  Using Arduino / Project Guidance / Re: New to Arduino; Trying to Figure Feasibility on: March 12, 2014, 09:27:47 pm
How much data? Kb, Mb, Gb, Tb, Pb?
Where do you intend to store it? The Arduino  itself has limited memory but can access SD cards and other memory storage devices.
Pages: 1 ... 6 7 [8] 9 10 ... 72