Show Posts
Pages: 1 [2]
16  Using Arduino / Project Guidance / Re: Temperature Sensor behaves strangely on: November 26, 2012, 03:32:52 am
Guys!  Now the problem shall reduce to the voltage supplied to the temperature sensor, when i am powering my LM35 sensor from the 5v Supply on the Arduino UNO, everything works fine.  But if i am powering it from a separated power supply, things gone wrong terribly?  Anyone got a clue for this?

Regards,
17  Using Arduino / Project Guidance / Temperature Sensor behaves strangely on: November 26, 2012, 03:12:36 am
Dear all,
i have the configuration as shown in the attachment.
i connected an external 5v to the GSM shield to prevent short burst.  For my temperature sensors, i tested with TMP36 and LM35 (they are powered by a separated power supply; A 220AC to 4.9DC), they give me the same problem which is the analogRead() returns a random number, of which i see 1023 and 0 coming out quite a lot.  Is there something wrong with the hardware connection?  Please help me a little bit.  Thank you in advance!

Regards,
18  Using Arduino / Programming Questions / Sensor Accuracy Aref or VCC? on: November 18, 2012, 11:07:14 pm
Hi Guys!

I know for some point, people like myself tend to ask questions about the accuracy of sensors and readings. 

Background of my setup:
1x LM35 sensor
2x 220 ohm resistors acting as voltage divider

My objective:
measure temperature and voltage across the divider smiley-lol

Question:
I know people tend to use 5v*sensor reading/1024 to get the feed back voltage.  And i know it is not accurate, after googling i have found this to get the real voltage reading, codes are here :
Quote
  long result;
  // Read 1.1V reference against AVcc
  ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
  delay(2); // Wait for Vref to settle
  ADCSRA |= _BV(ADSC); // Convert
  while (bit_is_set(ADCSRA,ADSC));
  result = ADCL;
  result |= ADCH<<8;
  result = 1126400L / result; // Back-calculate AVcc in mV
  return result;
(adopted from http://code.google.com/p/tinkerit/wiki/SecretVoltmeter)

and i have also read up some information about using the Aref in http://tronixstuff.wordpress.com/2010/12/07/tutorial-arduino-and-the-aref-pin/

So, lets keep it short, which method is better? smiley-mr-green

Thanks in advance!! smiley-wink smiley-wink
Regards,
19  Using Arduino / Networking, Protocols, and Devices / Re: MAC Address for Copperhead Wifi Shield? on: November 15, 2012, 11:04:56 pm
It is very kind of you, and i really appreciate your help!

I will see if this works smiley-lol

Thanks again!
20  Using Arduino / Networking, Protocols, and Devices / Re: MAC Address for Copperhead Wifi Shield? on: November 15, 2012, 09:55:06 pm
Yea. I don't believe the MAC on the label. smiley-grin

So i was wondering if i can check it by other means?  smiley

Thanks in advance!!
21  Using Arduino / Networking, Protocols, and Devices / Re: MAC Address for Copperhead Wifi Shield? on: November 15, 2012, 09:28:00 pm
Thank you for your answer! i have found that i have made a mistake in my post. Please allow me to clarify a bit,  the Wifi Bee supports only static IP.  But the router or ISP provides only DHCP services.  So i have to assign a static ip to the wifi bee manually by "address reservation", which in turns requires my wifi bee's MAC.  After several attempts, i have checked through my router network that there is not any connection between the bee and my router even though the LED indicating Wifi_ON status is lit.  So it comes to my senses that maybe the MAC on this little bee is wrong?  I am sorry for confusing you.
22  Using Arduino / Networking, Protocols, and Devices / MAC Address for Copperhead Wifi Shield? on: November 15, 2012, 07:35:06 pm
Hi all!

I know its a stupid question, but the stupidest question that you didnt ask. So Here i am.  I am currently using Copperhead Wifi Shield from Linksprite:
http://www.linksprite.com/product/showproduct.php?lang=en&id=195
I would like to know how to check the MAC address of the wifi shield other than looking on the label.  Probability all of you may know that the wifi bee on this shield supports only DHCP, not static IP.  Only by assigning a static ip through address reservation in router could make it work.  However, i could not establish a connection in doing so.  I was wondering if the MAC address is kind of wrong?  Any Help or feedback is appreciated.

Regards,
 smiley
23  Using Arduino / Networking, Protocols, and Devices / Re: Wifi Bee, Arduino Uno, cannot connect to webServer hosted by wifi Bee on: November 15, 2012, 08:50:56 am
Can anyone please help me  smiley-small
24  Using Arduino / Networking, Protocols, and Devices / Wifi Bee, Arduino Uno, cannot connect to webServer hosted by wifi Bee on: November 14, 2012, 10:20:54 am
Hi all,

I am a fresh newbie trying to get my hands on this wifi Bee.  I am planning to do a wifi bee controlled ikea lamp device, as:

 http://www.open-electronics.org/arduino-wifi-rgb-lamp-ikea-dudero-modding/

I have all the libraries, and the program compiled ok.  I have also followed the step as:

http://www.seeedstudio.com/wiki/Wifi_Bee#Downloading_and_configuring_the_Library_for_running_the_application_examples

to set up a static ip from DHCP router.  Now the problem is when i set the ip address (192.168.0.4) as my wifi Bee local ip address, i cannot connect to this ip address through computer, however, the wifi bee is connected to my home wifi (wifi led glows).  I was wondering if anyone can shed some light on this problem?  Any help is appreciated.  
The code is copied from open-electronics:
Quote
1   /* IKEA Dudero mods WIFI Version
2   
3    created 2011
4    by Boris Landoni
5   
6    This example code is in the public domain.
7   
8   http://www.open-electronics.org
9   
10   
11   http://www.futurashop.it
12   
13   
14   http://blog.elettronicain.it/
15   
16    */
17   
18   // Inclusione Libreria per Server Web WiFi
19   #include <WiServer.h>
20   #include <avr/pgmspace.h>
21   #include <EEPROM.h>
22   
23   int red = 3;    // RED LED connected to PWM pin 3
24   int green = 5;    // GREEN LED connected to PWM pin 5
25   int blue = 6;    // BLUE LED connected to PWM pin 6
26   int r=50; int g=100; int b=150;
27   int rup; int gup; int bup;
28   int fader=0;
29   int inc=10;
30   String inString = String(50);
31   char buffer[160]; // make sure this is large enough for the largest string it must hold
32   
33   // Definizione Parametri Rete Wireless
34   #define WIRELESS_MODE_INFRA 1  // Infrastrutturata (basata su Access Point)
35   #define WIRELESS_MODE_ADHOC 2  // Ad-hoc (senza Access Point)
36   
37   unsigned char local_ip[] = {192, 168, 0, 4};      // Indirizzo IP
38   unsigned char gateway_ip[] = {192, 168, 0, 1};        // Indirizzo gateway IP
39   unsigned char subnet_mask[] = {255, 255, 255, 0};   // Subnet Mask
40   const prog_char ssid[] PROGMEM = {"mywifiSSID"};        // SSID access point
41   
42   // Selezione tipo di cifratura rete Wireless
43   unsigned char security_type = 3;  // 0 -> nessuna cifratura
44                                     // 1 -> cifratura WEP
45                                     // 2 -> cifratura WPA
46                                     // 3 -> cifratura WPA2
47   
48   // Password cifratura per WPA/WPA2 (max. 64 cratteri)
49   const prog_char security_passphrase[] PROGMEM = {"mypassword"};
50   
51   // Password cifratura per WEP 128-bit keys
52   prog_uchar wep_keys[] PROGMEM = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
53                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
55                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
56
The wifi bee i am using is Copperhead Wifi Shield from linksprite:
http://www.linksprite.com/product/showproduct.php?lang=en&id=195

Regards,
Code smiley-grin
Pages: 1 [2]