Show Posts
Pages: [1] 2 3
1  Using Arduino / Programming Questions / Re: Wifi module and remote server on: October 08, 2012, 11:34:39 am
okay, i got it working, my wifi module can work as a server and as a client, in my settings i putted wifi module to Client, gave them servers IP address, after that in my Arduino i wrote:
Code:
Serial.println("GET /temp.php?temp=656 HTTP/1.0");
Serial.println("Host: example.com");
Serial.println("");
Vuolia
2  Using Arduino / Programming Questions / Re: Wifi module and remote server on: October 07, 2012, 10:45:34 am
nah it doesn't respond, that sketch is not for my hardware.. it is for arduino wifi webshield, mine is another one, from china.
3  Using Arduino / Programming Questions / Re: Wifi module and remote server on: October 07, 2012, 09:58:10 am
i just used example skecth: http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=90_186&products_id=1007
it prints Hello world in my http://192.168.1.158:8090/
i am thinking, that i could just print http request, but don't know how to write it, maybe it would work, don't know, i am bad in those wifi wireless and other networks. i am thinking smth like:
serial.println ("GET /suvis.wu.lt/arduino.php?temperatura=22 HTTP/1.1"); or
wlan.write ("GET /suvis.wu.lt/arduino.php?temperatura=22 HTTP/1.1");
Just need to write good http request, that maybe would work
4  Using Arduino / Programming Questions / Re: Wifi module and remote server on: October 07, 2012, 07:27:23 am
My wifi module is configured with other programme, it has SSID and WPA keys, your programme is not working for me, because you are using ethernet, and i am on my Wifi module.. can't find any example which suits me
5  Using Arduino / Programming Questions / Re: Wifi module and remote server on: October 06, 2012, 09:47:29 am
Okay, how can i connect to wireless router ?  seems like SurferTim's example is not connecting to router.
6  Using Arduino / Programming Questions / Wifi module and remote server on: October 06, 2012, 07:35:02 am
Hello guys,
I got stuck in one project, i got wifi module: http://www.ebay.com/itm/Uart-WiFi-Module-Starter-Package-Kits-Arduino-Compatible-/270941705511?pt=LH_DefaultDomain_0&hash=item3f15625527
I configured it and so on, my mission is to send some values to a remote server's php file, and php file needs to put those values to Mysql. My question is, should i use wifi.h library ? I used this code: http://arduino.cc/en/Tutorial/WiFiWebClient
and always what i am getting in my serial is - "Attempting to connect to SSID".. My idea is to pass values in address, like
http://example.com/arduino.php?temp=$value_from_arduino , php script is no problem for me. Thank you guys in advance.
7  Using Arduino / Sensors / Re: ds18b20, skipping bad values and waiting for another one on: March 03, 2012, 12:50:21 pm
Thank you for a hint about decimal positions. If you wanna use the same animation in graphs, there is simple and very nice product:
http://fusioncharts.com/, basic edition is free and very easy to work with it
8  Using Arduino / Sensors / Re: ds18b20, skipping bad values and waiting for another one on: March 03, 2012, 09:30:10 am
It's a heater controller for house, you can see all sensors in real time and on scheme: http://suvis.wu.lt/schema/schema.php
and graphs: http://suvis.wu.lt/MyFCPHPClassCharts/First/6.php . Longest cable i think is 7 meters
9  Using Arduino / Sensors / Re: ds18b20, skipping bad values and waiting for another one on: March 03, 2012, 09:16:41 am
Thank you, i was thinking about checking like that. It works
10  Using Arduino / Sensors / ds18b20, skipping bad values and waiting for another one on: March 03, 2012, 06:59:15 am
Hello, i am using 11 ds18b20 sensors in parasite mode, everything works almost fine, but sometimes (few times in a day) one of the sensors is giving -127 temperature, i know it's quite normal because of many reasons. I would like to know is there any way to ignore that values and wait for another one (maybe i should be using CRC checking or something like that? it's quite hard to understand how everything works with ds18b20) here is my code:
Code:
DeviceAddress sgg = {
  0x28,0xAB, 0xBD,0xDA,0x2,0x0,0x0,0x4C};
DeviceAddress spp = {
  0x28,0x68, 0xCF,0xDA,0x2,0x0,0x0,0x64};
DeviceAddress kgg = {
  0x28,0x12, 0xBF,0xDA,0x2,0x0,0x0,0x5E};
DeviceAddress kpp = {
  0x28,0xF1, 0xFF,0x8D,0x2,0x0,0x0,0x99};
DeviceAddress app = {
  0x28,0x49, 0xD6,0xDA,0x2,0x0,0x0,0x6A};
DeviceAddress tll = {
  0x28,0x2B, 0xD5,0xDA,0x2,0x0,0x0,0x89};
DeviceAddress tbb = {
 0x28, 0x7F,0xBC, 0xDA, 0x2, 0x0,0x0,0x99};
DeviceAddress x11 = {
0x28,0xE5,0x0,0x9F,0x3,0x0,0x0,0x43};
DeviceAddress x22 = {
0x28,0xFE,0xAC,0xDA,0x2,0x0,0x0,0x38};
DeviceAddress x33 = {
0x28,0xF4,0x52,0xCB,0x2,0x0,0x0,0x44};

  kp = sensors.getTempC (kpp);
  kg = sensors.getTempC (kgg);
  sp = sensors.getTempC (spp);
  sg = sensors.getTempC (sgg);
  ap = sensors.getTempC (app);
  tl = sensors.getTempC (tll);
  tb = sensors.getTempC (tbb);
  x2 = sensors.getTempC (x11);
  x4 = sensors.getTempC (x22);
  x3 = sensors.getTempC (x33);
 
  sensors.requestTemperatures();
11  Using Arduino / Sensors / Re: DS18B20 sometimes gives me back -127 C on: January 10, 2012, 03:43:39 pm
Okay, thank you, i will try it smiley Don't you think i could just change something in code for better results ? or it's fair good ?
12  Using Arduino / Sensors / Re: DS18B20 sometimes gives me back -127 C on: January 10, 2012, 02:47:17 pm
Do i really need 2.2k resistor if connected them in this mode:  http://chipenable.ru/images/stories/articles/DS18B20/1-podkluchenie-ds18b20-ds18s20.png
That's not parasite mode, i though it's useful 2.2k only for parasite mode.
13  Using Arduino / Sensors / Re: DS18B20 sometimes gives me back -127 C on: January 10, 2012, 07:31:42 am
I already have pull-up resistors.. I think i should use some crc check, or longer reading period, i don't know. I am using 4.7k resistors, should i try to use 2.2k instead of 4.7k ?
14  Using Arduino / Sensors / Re: DS18B20 and occasional bogus readings on: January 10, 2012, 07:23:12 am

Im using about 3 metres of telephone wire, but only get the errors at start up.
None during the day or night while its running constantly.
Ive got mine running a web server and showing the last 24 hours readings.
Ive assumed its something to do with running it parasitic and something is happening with the power over the pins Ive connected it to.
But as its only on start up and the errors are obvious Im living with it.

Gordon
Gordon, you should use some time at start to read them without printing, smth like:
Code:
void loop()
{

  kp = sensors.getTempC (kpp);
  kg = sensors.getTempC (kgg);
  sp = sensors.getTempC (spp);
  sg = sensors.getTempC (sgg);
  ap = sensors.getTempC (app);
  tl = sensors.getTempC (tll);
  tb = sensors.getTempC (tbb);
  x2 = sensors.getTempC (x11);
  x4 = sensors.getTempC (x22);
  x3 = sensors.getTempC (x33);
 
  sensors.requestTemperatures();

 

if (millis() > 2000) {
//and here you start your programme

15  Using Arduino / Sensors / Re: DS18B20 sometimes gives me back -127 C on: January 09, 2012, 01:32:29 pm
sorry, i wasn't clear, actually my sensors is connected in this way: http://jonis.eu/forumas/download/file.php?id=62
so it's not called parasite mode, i guess.
Pages: [1] 2 3