Show Posts
Pages: 1 ... 69 70 [71] 72 73 ... 225
1051  Using Arduino / Programming Questions / Re: reading 3 analog inputs. Help plz on: November 30, 2013, 02:16:22 pm
I was going to suggest the following to make the serial output easier to read, and perhaps (with respect) more n00b friendly than Boltar's  smiley-cool

Instead of (and please note use of the code # just above the  smiley-sweat )

Code:
//prints the value;
  Serial.println(voltage0);
  Serial.println(voltage1);
  Serial.println(voltage2);

Try: (note only last print is a println, so they are side by side)

 
Code:
  //prints the value;
  Serial.print(voltage0);
  Serial.print("   ");
  Serial.print(voltage1);
 Serial.print("   ");
  Serial.println(voltage2);
1052  Using Arduino / Networking, Protocols, and Devices / Re: W5100-based Ethernet---is it a network card or a toaster? on: November 30, 2013, 09:30:46 am
Oh crap, I really ought to have thought of that. That also explains why the built-in pin 13 led is going berserk. Yep it works on pin 8

Thanks Paul....

Btw, the 5100 is at about 44C according to my trusty Fluke; that's about 15 over ambient.
1053  Using Arduino / Networking, Protocols, and Devices / Re: W5100-based Ethernet---is it a network card or a toaster? on: November 30, 2013, 08:58:53 am
I've been dabbling with my 5100 ethernet shield too. It's working ok, plugged onto my Uno which is powered from my laptop usb. Running off the shield's headers, I also power the 1302 RTC and LM35.

As I type this, you can see this running at http://41.133.21.113:8085/ although there's no guarantee on that ip.

To my real purpose here, and why I posted in this thread... I then decided to try to switch an led off and on from the web page. So I put the usual lines in my code, namely pinMode and a digitalWrite to switch pin12 high, with an led plugged in.

I hardly noticed it had come on, and when I measured the high voltage on pin12 it was about 2.5.

Could this be part-and-parcel of this whole power thing discussed above? Has the shield sucked the supply?

(I'll need to rejig things to try separate power, but I'd like to hear comments.)
1054  Using Arduino / Networking, Protocols, and Devices / Ethernet shield and x-over cable on: November 30, 2013, 07:21:44 am
Hi peeps,

The geography of my house is such that it's a pita to sit within drop cable length of my router to get the Ethernet shield plugged in.

Am I right in thinking that, for testing of basic functionality, I'd be ok plugging it into my laptop with a x-over "null-hub" cable?

Thought I'd check before I pop anything...

TIA,

Jim
1055  Using Arduino / Project Guidance / Re: What else do i need? Start two fans every 30 minutes on: November 30, 2013, 04:57:26 am
If you didn't already, look at the blink-without-delay example which measures elapsed time using millis().
1056  Using Arduino / General Electronics / Re: Help with transistor problem. TIP120 switching/control circuit for a motor/ on: November 30, 2013, 04:56:04 am
It's fair yes.... but good business would be to give you a voucher for a nice discount off your next purchase.
1057  Using Arduino / Project Guidance / Re: What else do i need? Start two fans every 30 minutes on: November 30, 2013, 01:59:44 am
Well if it works it's "good enough" but using delay() makes it very not "optimal", in principle. But if the code doesn't have to do anything else,  no harm done I guess. Soon as you want it to do other  stuff, you'll want to look at ways of not blocking the code with delay().
1058  Using Arduino / General Electronics / Re: Share ground pin with six PWM wires on one UNO? on: November 30, 2013, 01:06:22 am


However, I'm still stucked on digitalwrite(pin, HIGH) shuts the light off.

Michael
 


Depends on the circuit, which you haven't shown us. 
1059  Using Arduino / General Electronics / Re: Help with transistor problem. TIP120 switching/control circuit for a motor/ on: November 29, 2013, 10:37:41 pm
Here is a nice simple tester, including (about halfway down the page) instructions for testing a transistor.
1060  Using Arduino / Motors, Mechanics, and Power / Re: Question about servo torque on: November 29, 2013, 10:19:54 pm
Just for the record, torque is kg * cm not kg / cm

(In fact that's not strictly true either, since kg isn't a measure of force, but wth...)
1061  Using Arduino / Project Guidance / Re: Temperature controlled enclosure PID control on: November 29, 2013, 11:15:08 am
Maybe you could pwm one of the power lines, just like a normal dc motor?- I wouldn't know if that's feasible. Do brushless motors respond to pwm as simply as dc's?
1062  Using Arduino / Project Guidance / Re: Temperature controlled enclosure PID control on: November 29, 2013, 10:37:26 am
I don't think the tacho line is for speed control: it's for speed sensing afaik.
1063  Community / Products and Services / Re: Arduino For Teens - My New Book is out! on: November 29, 2013, 09:18:01 am
My order placed with local bookshop.....

Is it here yet? Jeez, what's taking so long...

Still taking a while to get here, but no matter, I'm sure it's worth the wait.

Meantime, is there a parts list? I'm sure I have most of what the book would expect, but might need a few specifics....
1064  Community / Website and Forum / Re: delete topic on: November 29, 2013, 05:06:45 am
but what happened if the reply from other didn't solve the problem?

It still might help others.... either by helping them realise what not to do, or who knows, it might actually answer their slightly different question, or perhaps jog some thoughts.
1065  Using Arduino / Project Guidance / Re: Arduino example blink project on: November 29, 2013, 04:09:00 am
How about adding the arrowed lines below, to see if the code is actually running. Open the serial monitor, Ctl, Shift, M, and the ON / OFF messages should appear.

Or, to test AWOL's idea that maybe the LED is duff, put a discrete LED and series resistor across pin 13 and Gnd. (Or maybe use a different pin to check pin 13's functionality, and of course change the code.

Please use the # button above the  smiley-sweat so that your code is easier to read, as below.

Code:
int led = 13;

void setup() {               
  pinMode(led, OUTPUT);
  Serial.begin(9600); // new <<<<<<<<<<<<<< 
}
// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  Serial.println("ON"); // new <<<<<<<<<<<<<<<<<<<<<<<
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  Serial.println("OFF"); // new <<<<<<<<<<<<<<<<<<<<<<<
  delay(1000);               // wait for a second
}
Pages: 1 ... 69 70 [71] 72 73 ... 225