Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 291
61  Using Arduino / Programming Questions / Re: Noob, FSM timings help on: August 17, 2014, 04:08:36 am
It's great to learn isn't it....

In either this or another thread of yours I mentioned this write-up on FSMs. Not sure if you'vre read it yet, but if you are....

Quote
certainly going to expand on this project to continue learning,

.... I think you'll need to embrace the FSM as a formal thing or your project's states will get too complex to keep track of.

Visual Paradigm is one of a number of tools which helps in drawing up state diagrams.

I think I mentioned my turnstile thread before, not sure.
62  Using Arduino / Sensors / Using a rotary encoder: simple tutorial on: August 17, 2014, 02:45:53 am
Hi all,

Thought I'd share this code, which might help de-mystify the inards of a rotary encoder. It's not intended as a real-life solution- there are libraries for that and interrupts seems to be the way to go. It's more of a tutorial so you can see how the 2 outputs vary as the encoder is rotated.

Attached is:

  • A snippet from the EC11 datasheet. It shows there are 2 detents (detent = click stop) per cycle but mine only has one.
  • My schematic
  • Sketch encoder_v3 which just uses 2x LEDs to indicate the pins' status, and it also prints an A, a, B and b depending on that status. You have to turn very slowly between detents to see these.
  • Sketch encoder_v4 which counts the cycles, taking account of direction, and prints where you are.

Use it, don't use it  smiley-cool. As always, YMMV.

Jim
63  Using Arduino / Networking, Protocols, and Devices / Re: ethernet shield on: August 17, 2014, 01:21:00 am
I understand the Due is a 3.3v device

Quote
it ok on a Arduino Duemilanove

Not the same thing

64  Using Arduino / General Electronics / Re: Does a LM7809 help me boost arduino uno's 5V to 9V? on: August 17, 2014, 01:05:11 am
I would like to control a motor From UNO using a transistor or something equivalent.

Control is not the same as power.

Control is easily supplied by an Arduino i/o pin, but you will not be able to provide enough power (in the correct usage of the word, where power= volts x amps) from the Arduino to run the motor. It must be powered separately.

So even if you can find a means of increasing the Arduino 5V to 9V, don't use it to power the motor.

Set it up like the attached schematic, and / or look here
65  Topics / Robotics / Re: Buttons help on: August 16, 2014, 11:24:55 pm

      Serial.println(state? "hello" : "goodbye");
      digitalWrite(13, state? HIGH : LOW);


I doubt if throwing the ternary operator at a beginner, without a single word of explanation, nor even saying it's called the ternary operator so he can look it up, has furthered his understanding one tiny bit.
66  Topics / Robotics / Re: Buttons help on: August 16, 2014, 03:32:40 pm
Ok well have a look at this example: http://arduino.cc/en/Tutorial/ButtonStateChange .

But if you're really new, you might want to start at the top of the example page: http://arduino.cc/en/Tutorial/HomePage
67  Topics / Robotics / Re: Buttons help on: August 16, 2014, 03:20:40 pm
You go first: what have you tried so far?
68  Using Arduino / Sensors / Re: ALPS EC11 rotary encoders... detents? on: August 16, 2014, 01:32:32 pm
I have found that encoders made by the company Alps tend to have one detent per sequence and those made by Bourns tend to have two. So your results come as no surprise to me.

Thanks Mike- actually, the Bourns website does show a 20 detent, 20 pulse model so maybe that's what I've got.

edit.... as an interesting aside, another supplier here in Johannesburg bills these EC11s as "encoder / dig pot"...
69  Using Arduino / Project Guidance / Re: begininer help: sensor shield, servos on: August 16, 2014, 01:11:01 pm
Here's some fairly trivial early code of mine. I mounted the ldr on the servo horn so it would "seek" light. It checks if the reading is light or dark: if dark, moves 15 degrees and tests again. Eventually it parks in the light.
70  Using Arduino / General Electronics / Re: Does a LM7809 help me boost arduino uno's 5V to 9V? on: August 16, 2014, 12:06:55 pm
Google Is Your Friend
71  Using Arduino / General Electronics / Re: Does a LM7809 help me boost arduino uno's 5V to 9V? on: August 16, 2014, 11:50:25 am
How  does the ic in pololu's 9V step up ic circuit work? please provide me a link or document on it's schematic design.

Beats me...
72  Using Arduino / General Electronics / Re: Does a LM7809 help me boost arduino uno's 5V to 9V? on: August 16, 2014, 11:44:42 am
Have a look at Pololu
73  Using Arduino / General Electronics / Re: Does a LM7809 help me boost arduino uno's 5V to 9V? on: August 16, 2014, 11:36:51 am
78xx regulators only step down
74  Using Arduino / Sensors / Re: sensor for water pressure on: August 16, 2014, 10:43:51 am
Maybe but this is switcher no sensor.

It's a sensor: depending on the pressure, the switch is open or closed. Just like how the oil pressure light on your car dashboard works.
75  Topics / Robotics / Re: Unable To Use Multiple Servos On Arduino on: August 16, 2014, 08:59:09 am
Quote
A DC power supply is connected to the Arduino to provide power to all servos (set on 6v)

It's not clear to me if you mean the servos are powerd through the Arduino or directly from that power supply.
Pages: 1 ... 3 4 [5] 6 7 ... 291