Show Posts
Pages: 1 ... 36 37 [38] 39 40 ... 225
556  Using Arduino / Programming Questions / Re: What's a good logic to write this? on: January 12, 2014, 01:54:05 am
That's a god tutorial.
I do plan on doing a few state machines later down the road but this first project is my first priority.

Now that I got the code to work, I'm going to play with it to move code out of the loop and into it's own function. That should be fun.

Yep, functions make things a lot simpler. I'm pretty sure you'll find that thinking state and function up-front will ease design in the future.
557  Using Arduino / Programming Questions / Re: What's a good logic to write this? on: January 12, 2014, 01:30:47 am
Quote
The first switch is a toggle switch (but I'm using a momentary ATM becaue my switches are on backorder. I just hold it in the ON position to simulate a toggle). The second is a true momentary switch and always will be.

Ah, ok.

I've been looking at Nick's state machine tutorial. Later today- once I've finished work work (on a Sunday?) and visited my 97yo Dad) I'm going to implement your example using a table such as Nick advocates.

State machines seem to be in vogue....

558  Using Arduino / Programming Questions / Re: What's a good logic to write this? on: January 12, 2014, 12:56:12 am
Just for my clarity. You say this:

Quote
And if you flip switch one off

... then this:

Quote
the first button

Is that a toggle switch that stays in one place when you flip it (like a house light switch) or is it a momentary button (like a car horn)?

And just for certainty, the second switch, what's it?
559  Topics / Robotics / Re: uArmⅠ:An open source robot arm on: January 11, 2014, 10:44:19 pm
Yep I had everything on the pic cut.

It says on there that that the bulk of the parts are 5mm (the main area on left of pic) and the others- the small area to the right- are 3mm.

I'm fetching it all tomorrow: the cutter guy is near my work.

I have yet to find the hex brass standoffs in all the sizes: my electronics supplier only has very short ones- I suppose for mounting boards in enclosures- and I'm not sure where to try next. But all in good time....

EDIT... re servos.... looks to me like the servos are readily accessible for replacement, at least going by the vids. So for the first build we'll probably just use the crappy 3x  hobby servos we have (4.3kg), then upgrade later. Unless it looks like a pita to replace them, in which case I might spring for 3 decent ones up front.

Our objective here is to give my daughter a decent test- and development-bed for her studies. With a decent arm, and the flexibility this one gives for end-effectors, she can concentrate on the control side without having to worry about a crappy arm made of ice-cream sticks and rubber bands falling apart.

MORE EDIT... This thread relates

560  Using Arduino / Project Guidance / Re: Arduino TFT Screen not consistently reading files from SD (Arduino Uno) on: January 11, 2014, 09:47:51 pm
Did you see the part in the instructions  where it says the screen is upside down in the pix? Might be the wiring is back asswards....
561  Using Arduino / Sensors / Re: Ultrasonic invisible material? on: January 11, 2014, 09:26:28 pm
Quote
Oil for heating is not very flammable

Well it must be, else you'd have a cold(er) house. What I read, it's pretty chilly in the Northern Hemisphere right now.

It's the flashpoint that's important here I think, not sure of the terminology. Even petrol / gasoline apparently won't light from a cigarette, so those movies all wrong  smiley-cool

I'd ask my son- he's a FF/EMT but he's got a 12h medic shift today so he's catching a few last zzzzzzzzzzzzzzzzzzzzzzzzz's.
562  Using Arduino / Project Guidance / Re: I have problem in space... arduino uno on: January 11, 2014, 09:09:53 pm
Quote
It's far better to test the individual features as you develop them so that you know the pieces all work before you try to integrate them into your overall project.

I was actually wondering if that wasn't the problem: maybe tried a modular approach with small sketches, then they were too big when bolted together? (Except for the fact that it doesn't seem too big....)
563  Using Arduino / Project Guidance / Re: Connecting ports of Arduino. on: January 11, 2014, 09:06:52 pm
You can just connect the two pins with a wire

It's not 100% clear, but wouldn't that go against this requirement:

Quote
without an external circuit
564  Using Arduino / Project Guidance / Re: Help !! New to Arduino !! Feasibility of using arduino to make a small project on: January 11, 2014, 01:42:12 pm
Well first I'd say you need to design a solution... that doesn't require either programming or electronics really. You need to define what it is you want to happen.

At least learn basic Arduino skills too though, as suggested above, and you'll probably want to experiment with how servo motors work since most robotic solutions use servos in the joints.

565  Using Arduino / Project Guidance / Re: Connecting ports of Arduino. on: January 11, 2014, 01:35:44 pm
I suppose you could make a sort of "soft link" by reading say pin 2 and writing that to pin 13, so pin 13 would always "reflect" pin 2.

Something like:

Code:
Read(digitalWrite (13, digitalRead(2));




But what are you trying to do?
566  Using Arduino / Programming Questions / Re: Server IP at 0.0.0.0 on: January 11, 2014, 01:20:19 pm
Righto ST....

I'm out....
567  Using Arduino / Programming Questions / Re: Server IP at 0.0.0.0 on: January 11, 2014, 01:10:07 pm
That can't be the code that's giving you the serial output "server is at x.x.x.x" becasue there's no line in that posted sketch to make that line appear.

However, when I do add the lines to make that happen:

Code:
//enable serial data print
  Serial.begin(9600);
  Serial.println("servertest1"); // so I can keep track of what is loaded
  Serial.print("Server is at ");            //<<<<<<<<<<<<<<<<<<<<< added
  Serial.print(Ethernet.localIP());   //<<<<<<<<<<<<<<<<<<<<<added
}

It does print for me:

Quote
servertest1
Server is at 10.0.0.55

EDIT... but that might have something to do with the fact that my router's lan-side ips are of the form 10... anyway

MORE EDIT... please put your code in tags, it's a ballache to read otherwise
568  Using Arduino / General Electronics / Re: Measuring resistance of LED on: January 11, 2014, 07:21:29 am
Hi (Gunna be 27 DegC tomorrow, 12/1/2014, looking at 41 to 43 DegC later in the week.) smiley-sweat

High 20s here as we speak
569  Topics / Robotics / Re: uArmⅠ:An open source robot arm on: January 11, 2014, 05:36:06 am
My parts are ready to collect...
570  Using Arduino / General Electronics / Re: Trying to understand this schematic for multi-button single analog input on: January 11, 2014, 04:35:56 am
Quote
My question now is; with the 5V and GND connected, wouldn't this unnecessarily drain the voltage source even with no buttons pressed ?

I suppose so, but with V=IR and I=V/R it's 5 / 5000 which is 1mA

I have rechargeable AAs rated 2800 mAh, so that's 2800 hours, so that's about 4 months....

Pages: 1 ... 36 37 [38] 39 40 ... 225