Show Posts
Pages: 1 ... 182 183 [184] 185 186 ... 361
2746  Using Arduino / Project Guidance / Re: Telnet comms using WiFi shield - Terminal closes unexpectedly on: January 15, 2013, 07:59:39 am
Quote
But I cant see any client stop commands or anything like that in my code.
Neither can we. Is that too subtle?  smiley-wink
2747  Using Arduino / Networking, Protocols, and Devices / Re: Connect Arduino and phpMyadmin on: January 15, 2013, 06:53:30 am
If tempC is a float, then sprintf will not convert it to a string. I use dtostrf to convert floats to strings.
Code:
float tempC = 72.3;
char tempBuffer[8];

dtostrf(tempC,3,1,tempBuffer);
sprintf(pageAdd,"/arduino.php?temp1=%s",tempBuffer);
Insure you convert temp1 to a float in the php code also.

The reason you see "temp1 = 0" on the serial monitor is the sprintf function inserts "?" instead of a number when attempting to convert a float or double. That is an illegal character in a GET request.

2748  Using Arduino / Networking, Protocols, and Devices / Re: Connect Arduino and phpMyadmin on: January 14, 2013, 11:09:33 am
That means it is working. That is my test. I got to choose what I called all the variables. That does NOT mean they need to stay like that. They are just examples. Change and add as required.  smiley
2749  Using Arduino / Networking, Protocols, and Devices / Re: Connect Arduino and phpMyadmin on: January 14, 2013, 11:00:13 am
I presume from that server response, the server uses virtual hosting. I use my own server, and it doesn't. You need to send the Host parameter with the GET request. Kinda like this in getPage():
Code:
    sprintf(outBuf,"GET %s HTTP/1.0\r\nHost: www.mydomain.com\r\n\r\n",page);
Change www.mydomain.com to your domain, unless you are unfortunate enough to own that domain name.
2750  Using Arduino / General Electronics / Re: MOSFET as switch and power monitor on: January 14, 2013, 08:07:14 am
Quote
@ what fungus said your power loss is more with the P channel then the N channel.
Only if you select the incorrect P channel mosfet.

My choice:
http://www.fairchildsemi.com/ds/FQ/FQP47P06.pdf
Rds = 0.026 Ohms @ -10v Vgs

Your choice:
http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Components/General/FQP30N06L.pdf
Rds = 0.035 Ohms @ 10v Vgs

Both require 10v gate to operate at that Rds, so you really need a driver for both.
2751  Using Arduino / General Electronics / Re: MOSFET as switch and power monitor on: January 14, 2013, 07:01:14 am
What is wrong with a shunt resistor? If you used the resistor suggested by be80be, how much power waste will you have? Would the device you want to use in it's place use more or less power?

E = IR
E = 10A x .001 Ohm
E = .01v

P = IE
P = 10A x .01v
P = .1w
2752  Using Arduino / Storage / Re: Arduino leonardo + sd on: January 13, 2013, 09:35:19 am
The Ethernet shield works fine . 
Thanks, fat16lib. Just one condition:
If the ethernet shield is the new type with the ICSP connector, it will work fine. The older versions without the ICSP header on the bottom will not work without serious pin bending.
2753  Using Arduino / Storage / Re: Arduino leonardo + sd on: January 13, 2013, 08:58:35 am
but is possible to comunicate ?
It should be no problem. If you want help, answer the questions PaulS posted.

Bear in mind the SD library uses SPI, and the SPI data lines on a Leonardo are available only on the ICSP connector. They are not available on any digital pins.

2754  Using Arduino / Networking, Protocols, and Devices / Re: Connect Arduino and phpMyadmin on: January 13, 2013, 08:06:41 am
Reply #13 is the php code for the Apache server.
Reply #15 is the sketch code I used in the Arduino to test that php code.
2755  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 03:09:30 pm
Quote
With the ethernet webserver example, i get server is at 0.0.0.0
Then you have a SPI fail between the Arduino and the w5100. I use this for my server code.
http://playground.arduino.cc/Code/WebServerST
2756  Using Arduino / Networking, Protocols, and Devices / Re: Connect Arduino and phpMyadmin on: January 12, 2013, 02:59:01 pm
So do I. Read replies #13 and #15 for the code.
2757  Using Arduino / Networking, Protocols, and Devices / Re: Connect Arduino and phpMyadmin on: January 12, 2013, 02:49:00 pm
You will need a html/php (Linux) or html/asp (Windows)server. What do you plan on using?
2758  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 02:38:38 pm
Let me know how it does. If they work separately, and all works as normal, you should be ok with zoomkat's code above.  smiley
2759  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 02:30:39 pm
Are you sure zoomkat's code above did not work? Those are the correct pins.

The w5100 uses pins D2, D10, D11, D12, and D13.
The SD uses D4, D11, D12, and D13.

Looks good to me.
2760  Using Arduino / Networking, Protocols, and Devices / Re: Connect ethernet shield and SD card module? on: January 12, 2013, 02:06:14 pm
If you got that far, you are almost there. What digital pin are you using for the slave select on the SD module? Digital 10 is the SS for the w5100.

Pages: 1 ... 182 183 [184] 185 186 ... 361