Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having problems detecting the Arduino?: Checking things
03-20-2017, 09:21 AM (This post was last modified: 03-21-2017 04:07 PM by JJrobots JP.)
Post: #1
Information Having problems detecting the Arduino?: Checking things
If your computer does not recognise the Arduino Leonardo or the Inkscape is not capable to detect the hardware check all these points:

NOTE: never connect or disconnect anything while the Arduino is connected to any power supply (including USB port).

1) Is the Arduino Leonardo detected by the computer? Check the Device Manager and confirm. Does your Leonardo shows up on any COM port?
   
Confirm the COM port is not higher than COM 4. If so, change the COM port to COM1 to COM 4 (howto: https://goo.gl/pVMmLs)

2) Are you using the stable version of Inkscape nad Eggbot Control Extension?
We recommend Inkscape Control extension version 2.4.0: https://github.com/evil-mad/EggBot/releases/tag/v2.4.0
And Inkscape 0.91: https://inkscape.org/en/download/

3) Replace the default eggbot.py file for this modified file. That will bypass any hardware identification process.
   

4) Narrow down any hardware problem:
Disconnect everything from the Arduino Leonardo (Brain Shield + stepper motor drivers) and try to detect the Arduino from the Computer/ Inkscape. If you can, connect again the Brain Shield without the stepper motor drivers, and check again. If you succeed now but did not before, it seems there is a problem with the stepper motors drivers. Connect one by one and recheck you can detect the Arduino Leonardo. Doing so you will figure out which one is not working properly.

NOTE: is the heatsink touching any metallic part on the stepper motor driver top side? Avoid that, it might create a short circuit.

5) Is your computer blocking any comunication to the COM ports? (antivirus, security software...)

6) Did you properly uploaded the code to the Arduino? You will must get a message like this once you have correctly uploaded the code to the Leonardo:
   

7) Try another USB cable.

8) From the Arduino IDE, open the SERIAL MONITOR and set its communication parameters as indicated below:
   
[Carriage return, 9600 bauds]
Then, type in the command field: SM,2000,0,-200
This will turn one motor. If you can see it moving, the hardware is OK

9) From the Arduino Official forum: Process to reinstall the Arduino Leonardo Drivers

Make sure your Leonardo is connected to the USB.
From the Device Manager:

1. Uninstall the Arduino Leonardo (COM17), it should disappear.
2. Hit the reset button on the Leonardo
3. When it shows up as Arduino Leonardo (COM18)
4. Quickly try to uninstall that driver.
5. In a few seconds it will then show up again to install driver, but cancel that.
6. If it shows up as Arduino Leonardo with yellow !, uninstall that as well
(at this point you should not see any Arduino listed in Device Manager)
7. Now hit reset on the Leonardo one more time.
8. It should prompt to install driver again.
9. Select "No, not this time"
10. Select "Install from a list or specific location"
11. Browse to your \arduino-1.0.4\drivers
12. Hopefully it should install as Arduino Leonardo bootloader
13. It should again prompt you to install again.
14. Select "No, not this time"
15. Select "Install from a list or specific location"
16. Browse to your \arduino-1.0.4\drivers
17. Hopefully it should install as Arduino Leonardo

10) Are you running the Inkscape as Administrator?: Right click on the Inkscape icon and click on "Run as administrator"


Attached File(s) Thumbnail(s)
   
Visit this user's website Find all posts by this user
Quote this message in a reply
04-12-2017, 12:01 AM
Post: #2
RE: Having problems detecting the Arduino?: Checking things
Hello jpedroc,

I just received my "Awesome Robotics Kit" yesterday and am really excited to get printing! Maybe even before Easter!!! We have our eggbot fully constructed but I am having a communication problems with the Arduino Leonardo connecting through the Inkscape Eggbot Extension on my mac. I have been googling around and trying different solutions and saw that your message was recently posted and I thought I would see how things are going. Do you have any updates?

When I try to connect with the Eggbot Extension I get an error that says "Failed to connect to EggBot. :(". A common problem reported by google is the serial port name changes and causes the findPort function to fail. I managed to get around this first problem by adding the following to EBB_serial.py file:

Code:
if EBBport is None:
    for port in comPortsList:
        if port[1].startswith("Arduino"):
            EBBport = port[0] #Success; EBB found by VID/PID match.
            break   #stop searching-- we are done.

Now I see a new dialog box which says "'Eggbot Control' Working, please wait..." but quickly fails again with the now familiar "Failed to connect to EggBot. :(". I think the problem is now in the testport function. I can get it to timeout longer but I am not sure what is causing the core problem. I am also have never debugged python inside of Inkscape so it is taking some time for me to figure out.

Anyway, thanks for your post. I tried the SM,2000,0,-200 command in the Arduino IDE SERIAL MONITOR program but it didn't do anything. I will try to install the Leonardo Drivers next (i just need to find mac instructions or try dusting off my windows machine).
Find all posts by this user
Quote this message in a reply
04-14-2017, 01:40 AM
Post: #3
RE: Having problems detecting the Arduino?: Checking things
Okay,

I made some progress (I think) but still not working. I realized I didn't install Eggduio correctly so I grabbed the latest git repo and gave it a try. The code would not compile. I did some googling and needed to make the following changes to the code:
  • In Helper_Function.ino I replaced all instances of "void inline" with "inline void"
  • In Helper_Function.ino I commented out the line //SPMCSR &= ~SELFPRGEN;
These modifications allowed the code to compile in Arduino IDE 1.8.2. Uploading seemed to be successful.

I tried the SM,2000,0,-200 command (with carriage return) and got an "ok" signal but no change in either motor. I also tried running Inskape (With my serial port modification from my previous post). I no longer get the "Failed to connect to EggBot. :(" (Yeah!!) However, Now I don't get any messages. Everything on the Inkscape side seems good but the motors are not doing anything. If I try to start a print the LEDs light up and Inkspace seems to think it is communicating but again no motion.

Now I am a little stuck. Software seemst to be loaded correctly, communication is happening but nothing is moving. Maybe something wrong with the shield? Seems unlikely, it is brand new.

Anyone have any thoughts?

Thanks!
Find all posts by this user
Quote this message in a reply
04-14-2017, 03:59 AM
Post: #4
RE: Having problems detecting the Arduino?: Checking things
Staying up late and finally got it to work..

End result was this had nothing to do with the original post as I thought. Sorry to spam the thread.

Biggest issue was my power strip was busted and the driver board was not getting any power. I think this cascaded to all types of problems and red herrings. I wonder if there is a way to detect missing power in the software?

Anyways, got it to work and just before Easter. Yea!.
Find all posts by this user
Quote this message in a reply
08-17-2018, 05:30 PM (This post was last modified: 09-11-2018 05:26 PM by ArnyLogan.)
Post: #5
RE: Having problems detecting the Arduino?: Checking things
Hi...i am a new user here. I have an Arduino UNO R3. I have the same problem mentioned above. I've tried almost all the things mentioned above to fix this problem. One thing that is weird is, the RX TX light stays on sometimes when i connect to my computer. I do not have anything connected to the board. Just trying the get my computer to recognize the connected device. Can anybody think of reasons why this might be happening? It doesn't happen everytime. My computer was recognizing the board one minute and the next it failed and doesn't anymore.

one-stop pcb
Find all posts by this user
Quote this message in a reply
02-03-2019, 02:02 AM (This post was last modified: 02-03-2019 02:28 AM by cathyfc.)
Post: #6
RE: Having problems detecting the Arduino?: Checking things
(03-20-2017 09:21 AM)JJrobots JP Wrote:  If your computer does not recognise the Arduino Leonardo or the Inkscape is not capable to detect the hardware check all these points:

NOTE: never connect or disconnect anything while the Arduino is connected to any power supply (including USB port).

1) Is the Arduino Leonardo detected by the computer? Check the Device Manager and confirm. Does your Leonardo shows up on any COM port?

Confirm the COM port is not higher than COM 4. If so, change the COM port to COM1 to COM 4 (howto: https://goo.gl/pVMmLs)

2) Are you using the stable version of Inkscape nad Eggbot Control Extension?
We recommend Inkscape Control extension version 2.4.0: https://github.com/evil-mad/EggBot/releases/tag/v2.4.0
And Inkscape 0.91: https://inkscape.org/en/download/

3) Replace the default eggbot.py file for this modified file. That will bypass any hardware identification process.


4) Narrow down any hardware problem:
Disconnect everything from the Arduino Leonardo (Brain Shield + stepper motor drivers) and try to detect the Arduino from the Computer/ Inkscape. If you can, connect again the Brain Shield without the stepper motor drivers, and check again. If you succeed now but did not before, it seems there is a problem with the stepper motors drivers. Connect one by one and recheck you can detect the Arduino Leonardo. Doing so you will figure out which one is not working properly.

NOTE: is the heatsink touching any metallic part on the stepper motor driver top side? Avoid that, it might create a short circuit.

5) Is your computer blocking any comunication to the COM ports? (antivirus, security software...)

6) Did you properly uploaded the code to the Arduino? You will must get a message like this once you have correctly uploaded the code to the Leonardo:


7) Try another USB cable.

8) From the Arduino IDE, open the SERIAL MONITOR and set its communication parameters as indicated below:

[Carriage return, 9600 bauds]
Then, type in the command field: SM,2000,0,-200
This will turn one motor. If you can see it moving, the hardware is OK

9) From the Arduino Official forum: Process to reinstall the Arduino Leonardo Drivers

Make sure your Leonardo is connected to the USB.
From the Device Manager:

1. Uninstall the Arduino Leonardo (COM17), it should disappear.
2. Hit the reset button on the Leonardo
3. When it shows up as Arduino Leonardo (COM18)
4. Quickly try to uninstall that driver.
5. In a few seconds it will then show up again to install driver, but cancel that.
6. If it shows up as Arduino Leonardo with yellow !, uninstall that as well
(at this point you should not see any Arduino listed in Device Manager)
7. Now hit reset on the Leonardo one more time.
8. It should prompt to install driver again.
9. Select "No, not this time"
10. Select "Install from a list or specific location"
11. Browse to your \arduino-1.0.4\drivers
12. Hopefully it should install as Arduino Leonardo bootloader
13. It should again prompt you to install again.
14. Select "No, not this time"
15. Select "Install from a list or specific location"
16. Browse to your \arduino-1.0.4\drivers
17. Hopefully it should install as Arduino Leonardo

10) Are you running the Inkscape as Administrator?: Right click on the Inkscape icon and click on "Run as administrator"


OK This all sound great but I am still having an issue and I can not do most of these suggestions because I am working with an Apple MAC computer. Maybe I just don't know the iso well enough but I have know Idea how to even check what COMM port the arduino is on On a MAC!! I have searched but I find no MAC Support... for this issue.

In the IDE When I plug in the board I have not been able to find any documentation if I should use Arduino Leonardo or Arduino Leonardo ETH I have tried both. When the board is plugged in the port that comes up is called "/dev/cu.usbmodem 1411" What does this mean?? not mentioned anywhere in the issues discussed here. I am very disappointed that this is so under documented ( at least I can't find anything useful ) for use on a MAC.

How do you run Inkscape in Administrator on a MAC?? I have never heard of this on a MAC.

How do you check what eggbot.py is correct on a MAC?

very frustrated I have a great print on my 3 d printer of all the parts and putting the whole thing together was a breeze but I am very disappointed that this project has been so hard to get running. PLEASE HELP Or I think I will box it all up and send it back to JJrobotics....

8) From the Arduino IDE, open the SERIAL MONITOR and set its communication parameters as indicated below:

[Carriage return, 9600 bauds]
Then, type in the command field: SM,2000,0,-200
This will turn one motor. If you can see it moving, the hardware is OK

I was able to get this to work so the hardware seems ok.... still not working with inkscape Sad

BTW I am using inkscape 0.91 and the eggbot extention 2.7.1 from everything I can find this combination should have all the corrections for this issue...
Find all posts by this user
Quote this message in a reply
02-04-2019, 12:59 AM
Post: #7
RE: Having problems detecting the Arduino?: Checking things
I have not seen any answers or suggestions yet but I have done a lot of learning about files and file structures on a Mac in the past few days. I was able to update the Eggbot.py file with the one suggested above and now I am no longer getting "Failed to connect to EggBot. " Yeah ! still not working now getting a message saying "Traceback (most recent call last):
File "eggbot.py", line 34, in <module>
import eggbot_scan
ImportError: No module named eggbot_scan"

and when I look in finder inkscape extensions there is no file eggbot_scan... Where can I get this file??
Find all posts by this user
Quote this message in a reply
04-06-2019, 12:06 PM
Post: #8
RE: Having problems detecting the Arduino?: Checking things
Hi Cathyfc,

I am having exactly the same problem you are facing. Have you got your Eggbot to work yet?

I am using my MacBook Pro (running OS 10.14.1 Mojve) to connect to my Eggbot which has an Arduino Leonard with the JJRobots Brain Shield.

Like you, I installed Inkscape version 0.91 and Eggbot Control extension release 2.7.1.

There is communication between the Arduino IDE and the Arduino Leonardo board. The motor spin OK when I sent the command "SM,2000,0,-200" from the Serial Monitor on the Arduino IDE.

However, I still get the message "Failed to connect to Eggbot Sad" when I try to connect to the Eggbot from the Inkscape Eggbot Control extension.

I googled this problem and looked everywhere without any solution. I could only find your post which is right on point. Very frustrating indeed.

Let me know if you figure this out.
Find all posts by this user
Quote this message in a reply
04-08-2019, 09:03 AM
Post: #9
RE: Having problems detecting the Arduino?: Checking things
(04-06-2019 12:06 PM)Majdi Wrote:  Hi Cathyfc,

I am having exactly the same problem you are facing. Have you got your Eggbot to work yet?

I am using my MacBook Pro (running OS 10.14.1 Mojve) to connect to my Eggbot which has an Arduino Leonard with the JJRobots Brain Shield.

Like you, I installed Inkscape version 0.91 and Eggbot Control extension release 2.7.1.

There is communication between the Arduino IDE and the Arduino Leonardo board. The motor spin OK when I sent the command "SM,2000,0,-200" from the Serial Monitor on the Arduino IDE.

However, I still get the message "Failed to connect to Eggbot Sad" when I try to connect to the Eggbot from the Inkscape Eggbot Control extension.

I googled this problem and looked everywhere without any solution. I could only find your post which is right on point. Very frustrating indeed.

Let me know if you figure this out.

Check this thread: http://forums.jjrobots.com/showthread.php?tid=1168
Visit this user's website Find all posts by this user
Quote this message in a reply
04-08-2019, 02:38 PM
Post: #10
RE: Having problems detecting the Arduino?: Checking things
Thank you Administrator,

I followed the setup listed by forum member "rauls4" in the thread you listed -> http://forums.jjrobots.com/showthread.php?tid=1168

I installed Inkscape version 0.48.5 and Eggbot version 2.4.0 on my MacBook Pro, and now I am getting another error, as follows:

Inkscape has received additional data from the script executed. The script did not return an error, but this may indicate the results will not be as expected.

python: VERSIONER_PYTHON_VERSION environment variable error (ignored)
The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension. Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml


I should mention that I can move the spinning motor on the Eggbot by sending the command "SM,2000,0,-200" from the Arduino IDE Serial Monitor. So the problem seems to be with Inkscape and its Eggbot Control extension.

Again, frustrating indeed. But I am still investigating.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)