Show Posts
Pages: 1 2 [3] 4 5 ... 29
31  Using Arduino / Project Guidance / Re: Flight Control Board etc. on: March 08, 2014, 07:55:27 am
That is not an official Arduino board, so this is not exactly the source.
Since you say that the one in picture is not the one you have, how exactly are we supposed to know what you do have?
Why don't you give us a link to the one you have?
32  Using Arduino / Project Guidance / Re: model train carriage lighting on: March 08, 2014, 05:30:32 am
Well, you could have it all hanging in the air, but a little bit of perfboard would make it a lot less prone to shorts. Trying to stuff an entire Arduino board (even the Nano) in a H0 carriage would be challenging.
You don't need a lot of components, really. A voltage regulator, ATtiny, a transistor or MOSFET to drive the LEDs, and a few caps and resistors here and there, plus either a photoresistor or some communications device.

2400x1800, so no more than 5-6 trains, right?
Which option do you consider more attractive? Lights automatically turning on when it gets darker or you manually turning them on/off?
A simple RF module would also work, I suppose. There should be enough room for it.
You mentioned 9V battery to power the lights. Is that a requirement? Why not pick up the power from the tracks or overhead line? Is there power in the tracks and/or overhead line or are we talking about self powered locos?
33  Using Arduino / Project Guidance / Re: model train carriage lighting on: March 08, 2014, 04:48:52 am
What scale are you talking about?
I routinely install LED strips in H0. They are powered from the tracks and are always turned on.

How big is your layout? The easiest way to remote control something that simple would probably be IR remote, or you can make it intelligent enough to sense the darkness and turn the lights on automatically.
In any case, a standalone microprocessor would be a much more suitable approach. Something from the ATtiny range, perhaps?
34  Using Arduino / Programming Questions / Re: UNO loop nested if else while on: March 08, 2014, 02:49:42 am
Yeah, entire code and schematic would help, but in the meantime...
This is quick and dirty way to do it. I haven't tested it with buttons but it should work.

Code:
if (ButtonStateAUTO == HIGH){
  for (int i = 0; i  < 1000; i++){
    delay (2);          //This delay gives you a window of about 2 seconds to push the second button.
    ButtonStateMAN = digitalRead (button2);
    if (ButtonStateMAN == HIGH){
      Serial.println("manauto");
      delay (1000);    //This delay is here because you had it in your posted code
      break;          //Once the ButtonStateMAN is detected to be pressed the for loop is exited and ButtonStateMAN is no longer checked
    }
  }
}
35  Using Arduino / Programming Questions / Re: UNO loop nested if else while on: March 08, 2014, 02:02:24 am
This code (assuming there is digitalRead somewhere) would detect the first button (ButtonStateMAN) only if it is pressed (and held) before pressing the second (ButtonStateAUTO).
Once the ButtonStateAUTO is detected to be pressed, no more checks are made to see if the ButtonStateMAN is held. The only thing being checked is the value of the previous check which may or may not be still relevant.
36  Using Arduino / Project Guidance / Re: Hack Heng Long Controller on: March 07, 2014, 04:25:44 pm
Heng Long?
37  Using Arduino / Project Guidance / Re: RC Osprey Fail safe on: March 07, 2014, 05:05:42 am
Do you have a radar altimeter on it? Or some other reasonably reliable way to measure the height?

There are autopilots, but what you are asking is quite advanced. Imagine your plane being well above the minimal safe height that your system is set to maintain. You then dive steeply. What happens? Does the autopilot take over automatically? Or waits for the last moment to take control? A PID system would be needed to judge when to take over. Maybe you wanted to make a sharp maneuver to avoid some unexpected obstacle but the autopilot doesn't allow it.

What happens in a stall? Are you relying on the system to save itself?
Like I said, there are autopilots for fixed winged aircraft, helicopeter and even multirotors, but I'm not sure about variable wing geometry stuff.

This is a good forum, but there is a web site DIY Drones that would probably be a better place to seek guidance. After all, guys over there do pretty much what you need.
38  Using Arduino / General Electronics / Re: Voltage regulator LM7805 on: March 06, 2014, 01:56:56 pm
That's well within spec cited in datasheets.
I don't know what meter you are using, but I would guess it can't be trusted when it comes to millivolts.
39  Using Arduino / Project Guidance / Re: Chocolate dispenser on: March 04, 2014, 12:04:20 pm
You'll have to have standardized size of chocolates (or as few different types as possible) since machines capable of dealing with items of unexpectable sizes tend to be expensive.

I think something of this design would be reasonable cheap while effective.

(MS Pain skill lvl 9000, I know)

As for gummy bears? I have no idea, but whatever you decide on, wouldn't it get all gooey and sticky and yucky after continuous gummy bear handling? I don't think I'd like to eat those gummy bears if I saw the dirty dispenser. (Or maybe I would... I'm like a crackhead on withdrawal when those thing are nearby).
40  Using Arduino / General Electronics / Re: Indirect touch sensor on: March 04, 2014, 10:41:26 am
Capacitive sensors can do it.
Other than that, buttons can too be behind a piece of plastic.
41  Using Arduino / Project Guidance / Re: Road vehicle passing counter on: March 03, 2014, 02:27:06 am
Depending on where you live, you may also want to consider the fact that in today's overly paranoid society, people tend to think that random devices on the side of the road must be bombs.

Only if you try to hide them. Make it huge, paint it bright orange and have some LEDs blink and people will not even notice it.
42  Using Arduino / Project Guidance / Re: Is it possible to power components from other electronic devices? on: March 02, 2014, 08:33:39 am
Of course.
Arduino doesn't care where the components come from, as long as you stay within specs.
In some cases that means you will need to assure protection for one or both sides, or use transistors to provide more current than the Arduino can supply on its own.
43  Using Arduino / Project Guidance / Re: speed measurement on: March 01, 2014, 10:48:59 am
You want to measure the speed of what? And more importantly, how fast is it expected to be going?
Yes, generally speaking, it is possible to be accurate to 1 km/h. Whether it is possible in your case, we have no idea.
Schematics for what?
44  Using Arduino / Project Guidance / Re: Project to make my dog stop peeing on my bathroom on: March 01, 2014, 01:40:17 am
Are you sure it's the dog's fault?
suspenseMusic();
45  Using Arduino / Project Guidance / Re: Robotic Cameraman (HELP!) on: February 28, 2014, 02:02:40 am
So what have you done so far, other than taken soloshot specs and doubled them for your requirements?
Have you figured out how will you do the tracking? What technology to use?
The size and shape of the antenna on the stationary device may be a good start at figuring it out, should you want to reverse engineer.
Pages: 1 2 [3] 4 5 ... 29