mega 1280 + ethernetshield makes the serial connection vanish

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
strider3700
 
Posts: 4
Joined: Wed Jul 13, 2011 1:43 pm

mega 1280 + ethernetshield makes the serial connection vanish

Post by strider3700 »

I have a mega 1280 and the adafruit ethernet shield. I see on the sales page that the ethernet shield is mega compatible but when I plug it in to the arduino I no longer have a serial connection to send programs to. this is on a ubuntu 10.10 machine.

Without the shield my dmesg gives me

Code: Select all

ftdi_sio 7-4:1.0: FTDI USB Serial Device converter detected
[66563.718688] usb 7-4: Detected FT232RL
[66563.718694] usb 7-4: Number of endpoints 2
[66563.718699] usb 7-4: Endpoint 1 MaxPacketSize 64
[66563.718704] usb 7-4: Endpoint 2 MaxPacketSize 64
[66563.718708] usb 7-4: Setting MaxPacketSize 64
[66563.720291] usb 7-4: FTDI USB Serial Device converter now attached to ttyUSB0
and sure enough ttyUSB0 is in the ide for sending programs to.

When I add the ethernet shield my dmesg gives me this

Code: Select all

 ftdi_sio 7-4:1.0: FTDI USB Serial Device converter detected
[66563.718688] usb 7-4: Detected FT232RL
[66563.718694] usb 7-4: Number of endpoints 2
[66563.718699] usb 7-4: Endpoint 1 MaxPacketSize 64
[66563.718704] usb 7-4: Endpoint 2 MaxPacketSize 64
[66563.718708] usb 7-4: Setting MaxPacketSize 64
[66563.720291] usb 7-4: FTDI USB Serial Device converter now attached to ttyUSB0
[66674.506534] usb 7-4: USB disconnect, address 28
[66674.506653] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[66674.506667] ftdi_sio 7-4:1.0: device disconnected
[66687.521386] usb 7-4: new full speed USB device using ohci_hcd and address 29
[66687.660077] usb 7-4: device descriptor read/64, error -62
[66687.920722] usb 7-4: device descriptor read/64, error -62
[66688.180963] usb 7-4: new full speed USB device using ohci_hcd and address 30
[66688.330146] usb 7-4: device descriptor read/64, error -62
[66688.591014] usb 7-4: device descriptor read/64, error -62
[66688.881036] usb 7-4: new full speed USB device using ohci_hcd and address 31
[66689.300094] usb 7-4: device not accepting address 31, error -62
[66689.450966] usb 7-4: new full speed USB device using ohci_hcd and address 32
[66689.870247] usb 7-4: device not accepting address 32, error -62
[66689.870274] hub 7-0:1.0: unable to enumerate USB device on port 4
and the result is no serial port available in the IDE and so on.

Do I have to put the program on the arduino without the shield attached or am I missing something?

strider3700
 
Posts: 4
Joined: Wed Jul 13, 2011 1:43 pm

Re: mega 1280 + ethernetshield makes the serial connection vanish

Post by strider3700 »

A bit more info -

I tried it on a windows XP machine. It also doesn't work. I installed the drivers as listed in tutorial 0 and got the mega working just fine. it showed up under ports in the device manager. I then unplugged it added the ethernet shield and plugged it back in. I get an unknown USB device warning and it shows up as an unknown usb device under the device manager. The only other detail listed is
Device instance ID
USB\VID_0000&PID_0000\5&12A8412B&0&1

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: mega 1280 + ethernetshield makes the serial connection vanish

Post by adafruit_support_bill »

I have a mega 1280 and the adafruit ethernet shield.
Do you mean this shield? http://www.adafruit.com/products/201
We currently sell the Arduino Ethernet shields. There was an earlier shield designed by Adafruit, but no longer sold.

The Arduino Ethernet shield is compatible with the 1280. (I just plugged one in here and I am able to upload to it with the shield installed). I'm not sure what is going on in your case. The USB communication on the Mega shouldn't be affected by any shields. Unless perhaps it is a power problem.

What are you using to power the Mega/Shield?
Have you tried the Mega with other shields?
Have you tried the Ethernet shield on other Arduinos?

strider3700
 
Posts: 4
Joined: Wed Jul 13, 2011 1:43 pm

Re: mega 1280 + ethernetshield makes the serial connection vanish

Post by strider3700 »

Yes it's that shield.

I've been powering the mega via USB. I'll add a battery and test.

My only other shield is a screw shield which is currently empty. It works just fine attaching the same as nothing there.

I don't have any other arduino's to try the shield on.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: mega 1280 + ethernetshield makes the serial connection vanish

Post by adafruit_support_bill »

The Mega draws about 40 mA. Adding the Ethernet Shield bumps the current draw up to 70-75 mA. A properly functioning USB port should be capable of up to 500mA.

Just to be sure, you might check the 5v pin to see if the voltage is sagging with the shield plugged in.

strider3700
 
Posts: 4
Joined: Wed Jul 13, 2011 1:43 pm

Re: mega 1280 + ethernetshield makes the serial connection vanish

Post by strider3700 »

added a 9V battery, plugged it into USB and it shows up just fine as ttyUSB0

Also I had noticed previously that when plugged into the ethernet cable the link and other lights didn't come on. Now they do.

I checked the pins.
Powered by USB only With no shield 3.3V reads as 3.30V 5V reads at 4.48V With the shield exact same pins. 3.3V reads at 3.10 V and 5V reads at 3.10 V

Powered by 9V only With no shield 3.3V reads as 3.26V 5V reads at 3.26V With the shield exact same pins. 3.3V reads at 2.10 V and 5V reads at 1.98 V

Powered by 9V and connected to USB With no shield 3.3V reads as 3.29V 5V reads at 4.52V With the shield exact same pins. 3.3V reads at 2.88 V and 5V reads at 3.5 V

Seeing how the 5V readings move all over the place I'm assuming it's my mega that's causing the issue

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: mega 1280 + ethernetshield makes the serial connection vanish

Post by adafruit_support_bill »

Clearly the 5v supply is not holding up - even with no shield installed. I might suspect the voltage regulator, but USB power goes straight to the 5v rail. Do you have anything else connected to the Mega? Other circuits will put a drain on the 5v supply too.

Also, have you calibrated your meter against a known good source? Make sure it has fresh batteries.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”