Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: wrong mac address received from arduino on: May 18, 2013, 10:18:10 am
all it was, was a missing 0.
Thanks a lot!!!
2  Using Arduino / Interfacing w/ Software on the Computer / wrong mac address received from arduino on: May 18, 2013, 09:27:02 am
Hi all,
I am trying to get my Arduino's mac address so that i could give it a static IP.
I used a very simple code taken from the arduino website (can be found at the end of the post)
I seem to be getting a mac address like this:

X1:Y2:Z:Z4:U5:O3

these arn't the real letters, but the point is that the 3rd byte keeps giving my just a one letter and nothing else, and this is not a valid mac address.
i tried to play around and only display that byte and other such games, but they all were not successful.
Anyone have any idea on how I can manage to get the full mac address?
Thanks!

Code used (of course i change the ssid[] and added pass etc):

#include <SPI.h>
#include <WiFi.h>

char ssid[] = "yourNetwork";     // the name of your network
int status = WL_IDLE_STATUS;     // the Wifi radio's status

byte mac[6];                     // the MAC address of your Wifi shield


void setup()
{
 Serial.begin(9600);

 status = WiFi.begin(ssid);

 if ( status != WL_CONNECTED) {
    Serial.println("Couldn't get a wifi connection");
    while(true);
  }
  // if you are connected, print your MAC address:
  else {
  WiFi.macAddress(mac);
  Serial.print("MAC: ");
  Serial.print(mac[5],HEX);
  Serial.print(":");
  Serial.print(mac[4],HEX);
  Serial.print(":");
  Serial.print(mac[3],HEX);
  Serial.print(":");
  Serial.print(mac[2],HEX);
  Serial.print(":");
  Serial.print(mac[1],HEX);
  Serial.print(":");
  Serial.println(mac[0],HEX);
  }
}

void loop () {}
3  General Category / General Discussion / Re: Relay curcuit not switching on on: December 26, 2012, 11:36:39 am
WOW! Finally (1/2 of it works)

Solid state circuit - you were right, I had the green and red wires going to the + and - wrong. switched it and now the led finally turns on, and the lamp works on my command!!

the n2222 circuit still doesn't work. I haven't changed anything. I hear it clicking when the relay turns on and off. I checked resistance on all the top 3 pin pairs of the relay (when the circuit is not connected to anything) and they were all infinite.

also measured the diode, the side that does not have the line and the other measuring pin at 0 volt.
Measured voltage.
At the moment the relay should be off, you should measure close to 5 volts there. - I measured close to zero.
At the moment the relay should be on, you should measure 0.6 volts. - I measured close to 5V

I verified again, the actual circuit up to the blue relay are the same in both circuits

Thanks again for your help, hopefully we can figure this one out as well...
4  General Category / General Discussion / Re: Relay curcuit not switching on on: December 25, 2012, 12:22:30 am
last one...
5  General Category / General Discussion / Re: Relay curcuit not switching on on: December 25, 2012, 12:14:03 am
and the other 2 images....  smiley-roll
6  General Category / General Discussion / Re: Relay curcuit not switching on on: December 24, 2012, 04:31:27 pm
@ MAS 3
I have 2 setups, with 2 different relays.
As of now I took the cord which runs on the relay off, but of course when i was testing it was connected.

3 images are attached:
     1 (blue relay) is simpler and connected to a breadboard (soldered)
     1 (relay not seen) is the same and connects to the relay in image 3. This does not use a breadboard as i thought i might have had an issue with the soldering (I don't)
     1 image of the 2nd relay - gray relay

@Grumpy_Mike

What I mean the circuit is working is that until the relay (if you look at the gray relay picture i am referring to the point where the wires connect to it in the image), I can control the 5V or 0V making its way there on command.
Thanks
7  General Category / General Discussion / Re: Relay curcuit not switching on on: December 23, 2012, 11:02:22 am
I apologize as I think I have not explained it clearly.

The lamp is off constantly.
the whole circuit, up to the part where the relay connects (the 2 relay pins that are parallel to the diode in the site i posted in my first post) get 5V or 0 on my command (using the arduino lol)

so what i was trying to explain is that my circuit works fine, but for some reason the relay does not turn on and off, it is off constantly...

thanks again for the help
8  General Category / General Discussion / Re: Relay curcuit not switching on on: December 22, 2012, 04:41:20 pm
The relay does NOT turn on (opposite to what you wrote that it stays on constantly)

I cannot hear the relay go on and off.
9  General Category / General Discussion / Relay curcuit not switching on on: December 22, 2012, 03:58:49 am
Hi everyone,
I am new to the arduino world. I want to make a simple relay switch that sits ontop of a cord connected to my wall (220V).
I want it, on my command using arduino, to turn on and thus turn on a light.
I have a Compact fluorescent lamp as my light bulb (one of those energy saving lights.
My arduino is connected to my laptop via USB for power (I bought and am waiting for a 9V wall adapter)

The circuit i'm using is as shown in this site.
http://www.glacialwanderer.com/hobbyrobotics/?p=9

My circuit works fine until the relay (I checked and can see the diode site that is connected to the relay is getting 5V or 0V on my command using arduino, but for some reason the other side (i.e. the output of the relay) is always on 0...

Any suggestions on what I might try in order to get this working?
Thanks!
Pages: [1]