Show Posts
Pages: 1 2 [3] 4 5 ... 13
31  Using Arduino / General Electronics / Help identifying the following connector. on: January 20, 2013, 12:26:59 pm
This is the contact used on the Xbox 360 battery pack. Is it a custom part that was made for Microsoft or is it an of the shelf part? If it is a custom part is there anyway I can replicate it short of sending it off to China?

http://i.stack.imgur.com/sZuV0.jpg

http://i.stack.imgur.com/I3Dsy.jpg
32  Using Arduino / Networking, Protocols, and Devices / Re: Changes to external ip on: January 20, 2013, 12:07:22 pm
Why would you need the External IP to access the internet?
I think you may need to read up on how TCP/IP works.

Your arduino will broadcast that it is on the network.  It will look for a DHCP server.  It will then be given all the details it needs to connect to the internet.  (Internal IP address, DNS servers, Router Address)  You NEVER need to know your external IP to access the internet.  That will be handled by the router.  You cannot even think of getting the external IP before you get all the details from your router.  As soon as you have these if it supports UPNP you can just ask it for the external IP.
33  Using Arduino / Programming Questions / Re: W5100 Ethernet shield and TLC5940 on: January 20, 2013, 12:04:06 pm
Can you give me a link to the entire library please?
The file you have uploaded has no mention of the blanking pin.  I have never used these things before so I am unsure as to what it does.
34  Using Arduino / Networking, Protocols, and Devices / Re: Changes to external ip on: January 17, 2013, 06:23:42 am
You can use UPNP to get your external IP from your router.
This library can do it pretty easily.

https://github.com/deverick/Arduino-Upnp-PortMapping
35  Using Arduino / Programming Questions / Re: W5100 Ethernet shield and TLC5940 on: January 17, 2013, 06:09:41 am
The reason why they don't work on the same pins is because SPI is an actual interface protocol.  The reason the library uses those pins is because it can switch them faster as they are designed for the SPI interface.  The TLC is not actually an SPI device.  If it was communicating over SPI you would be able to use all the same pins with the exception of pin 10 which is the select pin which has to be unique to each device.  This means that 1 device uses 4 pins, 2 devices use 5 pins, 3 use 6 pins. Look up SPI on wiki if you want to learn more. smiley
36  Using Arduino / Programming Questions / Re: W5100 Ethernet shield and TLC5940 on: January 16, 2013, 09:05:07 am
Which Chip are you using?

change line 61 from

Code:
#define DATA_TRANSFER_MODE    TLC_SPI
to
Code:
#define DATA_TRANSFER_MODE    TLC_BITBANG

Then look at lines 73-79

Change them from

Code:
/** SIN (TLC pin 26) */
#define SIN_PIN        DEFAULT_BB_SIN_PIN
#define SIN_PORT       DEFAULT_BB_SIN_PORT
#define SIN_DDR        DEFAULT_BB_SIN_DDR
/** SCLK (TLC pin 25) */
#define SCLK_PIN       DEFAULT_BB_SCLK_PIN
#define SCLK_PORT      DEFAULT_BB_SCLK_PORT
#define SCLK_DDR       DEFAULT_BB_SCLK_DDR

to

Code:
/** SIN (TLC pin 26) */
#define SIN_PIN        PD5
#define SIN_PORT       PORTD
#define SIN_DDR        DDRD
/** SCLK (TLC pin 25) */
#define SCLK_PIN       PD6
#define SCLK_PORT      PORTD
#define SCLK_DDR       DDRD

That will use pins 4 and 5 on the arduino I am assuming you are using an UNO (ATMega168)
37  Using Arduino / Programming Questions / Re: SOftware RESET for arduino Demilanove on: January 16, 2013, 08:59:24 am
The fuse settings on the chip may be wrong which means the device doesn't start up after a watchdog timer reset.  Check it with an AVR Programmer
38  Using Arduino / Programming Questions / Re: ISP programming with Ethernet shield on: December 25, 2012, 05:34:00 pm
Did you try it? If so did it work?
39  Using Arduino / Installation & Troubleshooting / Re: Arduino hangs after Watchdog Reset on: December 25, 2012, 05:31:30 pm
Hi,
All my code was fine, turns out some of my fuse settings were incorrect.  smiley-grin 
So I guess problem solved.
40  Using Arduino / Installation & Troubleshooting / Re: Arduino hangs after Watchdog Reset on: December 24, 2012, 08:15:39 am
I have the Watchdog set to 8 seconds.  So I doubt it gets reset during the boot phase. 
I also seem to just get white spaces in the serial monitor from the beginning and nothing useful when it seems to be starting up. :/
Also after the watchdog reset the reset button no longer works

Below is my setup code
Code:
void setup()
{
 wdt_enable(WDTO_8S);
 wdt_reset();
 for (int i = 0; i < 8; i++)
 {
    alarming[i] = 0;
 } 

 sent_packet = 0;
 pinMode(LEDRed, OUTPUT);
 pinMode(LEDGreen, OUTPUT);
 pinMode(LEDBlue, OUTPUT);
 digitalWrite(LEDBlue, HIGH);
 digitalWrite(LEDGreen, HIGH);
 digitalWrite(LEDRed, LOW);

 Wire.begin();
 Serial.begin(9600);
 Serial.println("Getting MAC: ");

 mac[0] = readRegister(0xFA);
 mac[1] = readRegister(0xFB);
 mac[2] = readRegister(0xFC);
 mac[3] = readRegister(0xFD);
 mac[4] = readRegister(0xFE);
 mac[5] = readRegister(0xFF);

 sprintf(tmpBuf, "%02X:%02X:%02X:%02X:%02X:%02X", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
 wdt_reset();
 Serial.println(tmpBuf);
 pinMode(EtherReset, OUTPUT);
 digitalWrite(EtherReset, LOW);

Serial.println("just reset");
 pinMode(ChargeEnable, OUTPUT);
 pinMode(chipSelect, OUTPUT);
 pinMode(EtherSleep, OUTPUT);
 pinMode(PowerMonitor, INPUT);
 pinMode(batterylevelpin, INPUT);  //Battery Level Meter

 // Initialize and set the contrast to 0x18
 glcd.begin(0x18);
 glcd.display(); // show splashscreen
 // Start Ethernet and UDP
 wdt_reset();
 Serial.println("ethernet begin");
 while (Ethernet.begin(mac) == 0)
 {
    Serial.println("Failed to configure Ethernet using DHCP");
    // No point in carrying on, so do nothing forevermore:
    continue;
 }
 wdt_reset();
 Udp.begin(localPort);
 Udp.begin(socketsPort);
 Dns.begin(Ethernet.dnsServerIP());

 if (!card.init(SPI_HALF_SPEED, chipSelect)) {
    return;
 }
 else
 {
   Serial.println("Wiring is correct");
 }
 wdt_reset();
 glcd.clear();
 glcd.drawstring(0, 0, "Mac Address");
 glcd.drawstring(0, 1, tmpBuf);

 while(connectpes() != 1){}

 sensorcon[20] = sensorNum;
 sensorcon[21] = '\0';


 glcd.drawchar(0, 2, sensorNum);
 if (sensorNum == 49) { glcd.drawstring(12, 2, "Sensor Connected");}
 else { glcd.drawstring(12, 2, "Sensors Connected");}
 glcd.drawstring(0, 3, "Version 1.0.0");
 wdt_reset();
 if ( (alarming[0] == 1) || (alarming[1] == 1) || (alarming[2] == 1) || (alarming[3] == 1) || (alarming[4] == 1) || (alarming[5] == 1) || (alarming[6] == 1) || (alarming[7] == 1) )
 {
    digitalWrite(LEDBlue, HIGH);
    digitalWrite(LEDGreen, LOW);
    digitalWrite(LEDRed, HIGH);
 }
 else
 {
    digitalWrite(LEDBlue, HIGH);
    digitalWrite(LEDGreen, LOW);
    digitalWrite(LEDRed, LOW);       
 }
 wdt_reset();
 glcd.display();
 succ = aes.set_key (key, 256) ;
 delay(1000);
 glcd.clear();
 wdt_reset();
}
41  Using Arduino / Installation & Troubleshooting / Arduino hangs after Watchdog Reset on: December 23, 2012, 12:36:56 pm
Hi,
I have 10 custom Arduino Boards I have designed.  I am running them without the boot loader on the ATMega2560V.  When the watchdog timer is used to reset the board it will hang until I cycle the power.  Only about half of them are doing this.  I am completely stumped. Why?

Thanks
42  Using Arduino / Project Guidance / 3G to Ethernet adaptor on: December 02, 2012, 11:39:57 am
I am looking at building my own 3G to ethernet adaptor using an arduino.  Would this even be possible?
The idea is to create a small ethernet adaptor that then connects to 3G and shares its connection with a small amount of clients over ethernet.
43  Using Arduino / Networking, Protocols, and Devices / Re: I recall seeing an XBee socket device that used SPI. Can't remember what it was. on: November 20, 2012, 10:04:48 am
I havent seen the bluetooth bee before, I have always used the official modules from digi.
let me know what it is like.
44  Using Arduino / Networking, Protocols, and Devices / Re: I recall seeing an XBee socket device that used SPI. Can't remember what it was. on: November 14, 2012, 05:11:46 am
That would be an Xbee wifi module
45  Using Arduino / Programming Questions / Re: programming without bootloader on: November 05, 2012, 06:17:11 am
I am unsure of the current settings used and the ones that I would need. I am very new to this so any help would be appreciated. Thanks
Pages: 1 2 [3] 4 5 ... 13