Arduino Troubleshooting

w6 Arduino behavior

  1. When the w6 arduino is connected to your computer via USB, there will be an 8 second delay between turning on power to the bit and the execution of your sketch.
  2. After disconnecting the USB, power cycle (i.e. turn the bit off and on) twice and all subsequent power-ups will immediately run your sketch without delay.

Resetting your w6 arduino when Arduino IDE can’t find your board.

  1. Disconnect all bits from your w6 arduino. Connect a power bit directly to the w6 arduino. Make sure the power bit is not yet on.
  2. Connect your w6 arduino to your compupter with a USB cable.
  3. Open a sketch that you know works (i.e. not the most recent sketch that you uploaded that seems to have broken your w6 arduino). If you don’t know of a known working sketch you can use littleBitsDemo.ino.
  4. In Arduino IDE verify and make sure there are no errors in your code.
  5. In Arduino IDE click upload and watch the blue status bar directly below your sketch and above the monitor.
  6. At first the status bar will say “Compiling sketch…”. When the status bar changes to “uploading…” turn on the power to your w6 arduino.
  7. You should receive a “Done uploading” status at which point your bit will be operational.

I couldn’t get this to work on my Mac when trying to clear the DIY mouse sketch, anyone else having this trouble?

Hi Steve,

If your DIY mouse sketch is working, you should be able to recover it with the method above. Make sure you wait until after you click the upload button to turn on power to the bit. Also, make sure you have the correct serial port select on the drop down menu. Also make sure you don’t reload the sketch that affected your ability to program it as it will likely not recover it from its state.

-Sean

Hey Sean,

Steve says:

I’m having a problem with the instructions, maybe you can help. Are you on a Mac and did you also (as I accidentally did) have the sketch store in the Arduino?

I’ll go step by step

Resetting your w6 arduino when Arduino IDE can’t find your board.

DONE, EASY! Disconnect all bits from your w6 arduino. Connect a power bit directly to the w6 arduino. Make sure the power bit is not yet on.

DONE! Connect your w6 arduino to your compupter with a USB cable.

I OPENED ‘BLINK’ Open a sketch that you know works (i.e. not the most recent sketch that you uploaded that seems to have broken your w6 arduino). If you don’t know of a known working sketch you can use littleBitsDemo.ino.

DONE, NO PROBLEMS! In Arduino IDE verify and make sure there are no errors in your code.

In Arduino IDE click upload and watch the blue status bar directly below your sketch and above the monitor.
THIS IS THE WINDOW THAT I GET…ERROR MESSAGE AT THE BOTTOM.

WITHOUT POWER TO THE DEVICE, I CANNOT SELECT THE PORT

IF I POWER UP WITHOUT ANY ATTACHMENT, JUST USING THE POWER BIT, IT EITHER LOCKS AS A MOUSE CLICK, OR SWINGS TO HARD TOP LEFT OR HARD BOTTOM RIGHT BECAUSE OF THE LACK OF CONTROLS.

At first the status bar will say “Compiling sketch…”. When the status bar changes to “uploading…” turn on the power to your w6 arduino.
You should receive a “Done uploading” status at which point your bit will be operational.

Thanks for having a look at it for me, I appreciate your help. :slight_smile:

Steve

I just got my little bits ardiuno w6 yesterday. I’m hoping to incorporate this into my makerspace class next semester. I’ve done a fair bit of arduino on the uno. I’m having several issues so far:

I cannot get the Arduino 1.0.5 IDE to detect the w6 (in either OSX 10.9.2 or Windows 7 64 bit). Here’s a little video (apparently I’m prohibited from posting a link, why?:

go to: carrot . whitman . edu / Temp / Arduino

Also, I have two slightly different power supply bits (different kits), here’s a photo:

go to: carrot . whitman . edu / Temp / Arduino

It seems that power supply bit on the right in the photo works to power the w6 and another doesn’t (even though they both work when connected with other bits directly without the w6).

Any help or advice?

Thanks,
Albert

Trying it on my linux ubuntu 14.04 32 bit system this morning. Plugged it in and got the following log entries:

Jun 23 08:02:52 thinkpad kernel: [  714.392099] usb 3-2: new full-speed USB device number 2 using uhci_hcd
Jun 23 08:02:52 thinkpad kernel: [  714.567825] usb 3-2: New USB device found, idVendor=2341, idProduct=8036
Jun 23 08:02:52 thinkpad kernel: [  714.567838] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 23 08:02:52 thinkpad kernel: [  714.567846] usb 3-2: Product: Arduino Leonardo
Jun 23 08:02:52 thinkpad kernel: [  714.567853] usb 3-2: Manufacturer: Arduino LLC
Jun 23 08:02:52 thinkpad mtp-probe: checking bus 3, device 2: “/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-2”
Jun 23 08:02:52 thinkpad mtp-probe: bus: 3, device: 2 was not an MTP device
Jun 23 08:02:52 thinkpad kernel: [  715.034600] cdc_acm 3-2:1.0: This device cannot do calls on its own. It is not a modem.
Jun 23 08:02:52 thinkpad kernel: [  715.034691] cdc_acm 3-2:1.0: ttyACM0: USB ACM device
Jun 23 08:02:52 thinkpad kernel: [  715.068810] usbcore: registered new interface driver cdc_acm
Jun 23 08:02:52 thinkpad kernel: [  715.068817] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Jun 23 08:02:52 thinkpad kernel: [  715.079410] hidraw: raw HID events driver © Jiri Kosina
Jun 23 08:02:52 thinkpad kernel: [  715.125532] usbhid 3-2:1.2: can’t add hid device: -71
Jun 23 08:02:52 thinkpad kernel: [  715.125557] usbhid: probe of 3-2:1.2 failed with error -71
Jun 23 08:02:52 thinkpad kernel: [  715.126167] usbcore: registered new interface driver usbhid
Jun 23 08:02:52 thinkpad kernel: [  715.126171] usbhid: USB HID core driver
Jun 23 08:02:52 thinkpad kernel: [  715.152161] usb 3-2: USB disconnect, device number 2
Jun 23 08:02:57 thinkpad kernel: [  719.280142] hub 1-0:1.0: connect-debounce failed, port 4 disabled

Notice the disconnect entry at the end. Arduino 1.0.5 IDE does not see the board.

I have two w6’s. Neither is now currently even recognized by the linux usb subsystem. My uno reliably produces log entries:

Jun 23 08:25:52 thinkpad kernel: [  448.432094] usb 3-2: new full-speed USB device number 3 using uhci_hcd
Jun 23 08:25:53 thinkpad kernel: [  448.838284] usb 3-2: New USB device found, idVendor=2341, idProduct=0043
Jun 23 08:25:53 thinkpad kernel: [  448.838296] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
Jun 23 08:25:53 thinkpad kernel: [  448.838304] usb 3-2: Manufacturer: Arduino (www.arduino.cc)
Jun 23 08:25:53 thinkpad kernel: [  448.838311] usb 3-2: SerialNumber: 64934333135351804181
Jun 23 08:25:53 thinkpad kernel: [  448.841367] cdc_acm 3-2:1.0: ttyACM0: USB ACM device
Jun 23 08:25:53 thinkpad mtp-probe: checking bus 3, device 3: “/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-2”
Jun 23 08:25:53 thinkpad mtp-probe: bus: 3, device: 3 was not an MTP device

Hi schuelaw!

I watched the video and have a few basic questions.

When you power the bit on does the amber “d0/rx” blink after 8 seconds?

Have you tried uploading with the power on from the start? It won’t show up as a com port unless its powered and its safest to wait at least 8 seconds after powering the bit before looking for the serial port in the programming environment.

Have you tried switching out the battery?

On your linux box, can you post the output of the command line “lsusb” after powering on the module? The output before 8 seconds and after should actually be different.

Hey Ed,

I’ve got some additional information for you from Albert:

I get one blink of the “d0/rx” led. It occurred before 8 seconds
elapsed.

I tried uploading with the power on from the start. I have /dev/tty0
available as a serial port. The blink sketch compiles and appears to
upload from the IDE side, but the rx and tx led’s don’t light up during
the upload, which suggests nothing is really uploading.

Here’s the output from lsusb (this is after 8 seconds):

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 004: ID 04f9:0040 Brother Industries, Ltd
Bus 002 Device 003: ID 0461:4d51 Primax Electronics, Ltd 0Y357C PMX-MMOCZUL (B) [Dell Laser Mouse]
Bus 002 Device 004: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 002 Device 005: ID 413c:2010 Dell Computer Corp. Keyboard

Here’s my syslog when I plugged it in:

Jun 25 11:16:04 carrot kernel: [1627932.401976] usb 3-2: new full-speed USB device number 4 using xhci_hcd
Jun 25 11:16:04 carrot kernel: [1627932.422355] input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.2/input/input10
Jun 25 11:16:04 carrot kernel: [1627932.422644] generic-usb 0003:2341:8036.0004: input,hidraw3: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:00:14.0-2/input2
Jun 25 11:16:04 carrot mtp-probe: checking bus 3, device 4: “/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2”
Jun 25 11:16:04 carrot mtp-probe: bus: 3, device: 4 was not an MTP device
Jun 25 11:16:04 carrot kernel: [1627932.448979] cdc_acm 3-2:1.0: This device cannot do calls on its own. It is not a modem.
Jun 25 11:16:04 carrot kernel: [1627932.449030] cdc_acm 3-2:1.0: ttyACM0: USB ACM device
Jun 25 11:16:04 carrot kernel: [1627932.449327] usbcore: registered new interface driver cdc_acm
Jun 25 11:16:04 carrot kernel: [1627932.449331] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Jun 25 11:16:05 carrot kernel: [1627932.900788] usb 3-2: USB disconnect, device number 4
Jun 25 11:16:05 carrot kernel: [1627933.263525] hub 3-0:1.0: unable to enumerate USB device on port 2
Jun 25 11:16:07 carrot kernel: [1627935.178037] hub 3-0:1.0: connect-debounce failed, port 2 disabled
Jun 25 11:16:09 carrot kernel: [1627937.140378] hub 3-0:1.0: connect-debounce failed, port 2 disabled

It’s interesting to note that if I unplug the w6 from the computer,
there are no syslog entries closing the usb connection (not surprising
given the “disconnect” entry already present). What’s interesting is
that plugging the w6 back into the computer doesn’t generate a new set
of usb entries. It is completely ignored.

It’s almost as if something on the w6 gives out after it’s been on for a
while and renders it unable to even start the usb handshake. If I turn
it off for a while (overnight), it seems able to do one usb handshake
(with error).

Albert

Hi schuelaw!

Let me know how the replacement modules work out please, because I finally got to play around with a Ubuntu desktop [14.04 64 bit] and the Arduino:

Here’s what a successful connection looks like for reference:

[  130.969290] usb 8-1.4.3: new full-speed USB device number 9 using xhci_hcd
[  130.996269] usb 8-1.4.3: New USB device found, idVendor=2341, idProduct=0036
[  130.996276] usb 8-1.4.3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[  130.996282] usb 8-1.4.3: Product: Arduino Leonardo
[  130.996286] usb 8-1.4.3: Manufacturer: Arduino LLC
[  130.996547] usb 8-1.4.3: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[  130.998979] cdc_acm 8-1.4.3:1.0: ttyACM0: USB ACM device
[  138.893738] usb 8-1.4.3: USB disconnect, device number 9
[  139.107180] usb 8-1.4.3: new full-speed USB device number 10 using xhci_hcd
[  139.132276] usb 8-1.4.3: New USB device found, idVendor=2341, idProduct=8036
[  139.132284] usb 8-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  139.132289] usb 8-1.4.3: Product: Arduino Leonardo
[  139.132294] usb 8-1.4.3: Manufacturer: Arduino LLC
[  139.134916] cdc_acm 8-1.4.3:1.0: This device cannot do calls on its own. It is not a modem.
[  139.134984] cdc_acm 8-1.4.3:1.0: ttyACM0: USB ACM device
[  139.145867] input: Arduino LLC Arduino Leonardo as /devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-1/8-1.4/8-1.4.3/8-1.4.3:1.2/input/input21
[  139.146271] hid-generic 0003:2341:8036.0005: input,hidraw3: USB HID v1.01 Mouse [Arduino LLC Arduino Leonardo] on usb-0000:02:00.0-1.4.3/input2

The numbers on the very left are timestamps in seconds. Notice how the Arduino connects at ~130s and then disconnects and reconnects at ~138s. This is correct and corresponds to the blinking of the LED ~8s after powering up.

The lsusb command will output the line

Bus 008 Device 010: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)

Watching the syslogs using the ‘dmesg’ terminal command, I can see my machine disconnecting and reconnecting the Arduino about every 5 minutes. This is also correct functioning.

/dev/ttyACM0 is definitely the serial port to use, not /dev/tty0.
I tried the Arduino IDE package from the Ubuntu Software Center and downloaded directly from the Arduino site and both worked.

What is different between a working connection and the logs you posted begins with:

 mtp-probe: bus: 3, device: 2 was not an MTP device

MTP stands for Media Transfer Protocol and is used by USB cameras and the like. ‘mtp-probe’ correctly detects that the Arduino is not an MTP device. However, It could end up being the problem.

More likely the problem starts with:

usbhid 3-2:1.2: can't add hid device: -71

A HID is a Human Interface Device; another USB communication standard.
I can’t find much documentation of the -71 error code and a search returns lots of unsuccessful, or low level solutions mostly effecting keyboards and mice.

The only reported solution for this error code involved turning the USB setting ‘XHCI Mode’ to from ‘Smart-Auto’ to ‘Enabled’ in BIOS of your computer.

So after a bit of digging, I would suggest that you check your USB settings in the BIOS if the replacement boards still won’t connect as a serial port.

Best!

Hello,

I have two arduino bits that are broken presumably because i tried to upload sketches that required too much memory. I’m trying to do the reset described in the original post but i’m not getting any luck. When I switch the power on a solid yellow light at d0 comes on within a second. And eventually the IDE says “Couldn’t find a Leonardo on the selected port”. I don’t see the correct port appear in the Tools>Serial Port menu, regardless of how long I leave the arduino bit plugged in for.

Is there anything I can do to recover these two arduinos to a usable state?

Thanks for your help,

Matthew

Hey @matkins85,

Try this procedure & let us know if this helps!

The pins you need to short are a2 and d10

Sanity check – really pins a2 and d10?? Normally arduino’s are reset by pulling RESET pin to GROUND (those pin-holes are available on the littllebits arduino ICSP, see schematic) The a2 and d10 silkscreen labels are for the “edge” holes on the arduino, the ICSP RESET and Ground are the two interior holes. it’s those two inner holes that need to be shorted.

Shorting the 2 inner pins until the IDE starts the upload worked great. Thank you MR_STEAM and manitou for your help! I’m very happy to have my Arduino bits working again.

Thanks for the input @manitou! Glad it worked for you @matkins85! Be careful with those programs! :smile: At least you now know how to correct the issue!

I have tried every combination…diconnect all modules, follow instructions…compiles, says loading and then I turn on power…no go. Yellow lights blink…attach LED module…no control. Sometimes lit, other times stays off. Have wasted hours…attach an UNO and no problem, computer sees it, and loads to it. Same USB port. Just changing board id to UNO or Leonardo as needed. Littlebit module is not reacting to program loads.

Help. Thanks, Glenn

I tried shorting the inner holes and outer holes…nothing works. Sketch BLINK will not upload. Losing hope.
Tried a windows computer, nothing, never could find a port to load up.

Hey there! Saw you posted on our Project Forum too. We’re going to take this question back to the lab and get you an answer ASAP.

Hey @glennmartinez,

I have a few questions to ask, since I assume you followed every step on this link Arduino Setup. . Sorry if I ask dumb questions:

  1. Is this your fist attempt connecting the Arduino?
  2. Once your Arduino Module is connected to the computer, does the computer show that it was connected & recognized? (shows a display box that says Arduino connected?)
  3. Does the settings allow you to choose a Port for the Arduino? If so, does the Port number change from every upload attempt?
  4. Are you uploading the code to the Arduino or are you verifying the Arduino code?
  5. Is the Arduino powered on when you are uploading the sketch?
  6. When you attempt to upload the code, does the IDE say that it is “done uploading”? Does the RX/TX LEDs blink twice once the code is uploaded?
  7. Can you post the code that you are using?

Same issue, the modules don’t always connect perfectly when laid flat – so LEDs and/or power turn on/off. Very annoying gift so far. Think the Littlebits arduino module should have kept the lessons learned from the the original arduino. Make sure the board can work stand alone right away. Use USB power, when plugged in, put back a power light on the primary board (to know it’s on), and put back the onboard LED on pin 13 - on the primary board. So on day one I can tell it’s working, and more easly guess why it isn’t. Because you’ve dropped this you can’t easily diagnose reported issues.