Share:
Notifications
Clear all

[Sticky] Having problems detecting the Arduino?: Checking things

Page 1 / 2

350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 5 years ago
Posts: 727
Topic starter  

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.4drivers
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.4drivers
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”


Quote
9e0ec5acaeab2651d1752af4d9593fc0?s=80&d=mm&r=g
(@colbrydi_1603271710)
Member
Joined: 4 years ago
Posts: 3
 

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:

  
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).


ReplyQuote
9e0ec5acaeab2651d1752af4d9593fc0?s=80&d=mm&r=g
(@colbrydi_1603271710)
Member
Joined: 4 years ago
Posts: 3
 

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!


ReplyQuote
9e0ec5acaeab2651d1752af4d9593fc0?s=80&d=mm&r=g
(@colbrydi_1603271710)
Member
Joined: 4 years ago
Posts: 3
 

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!.


ReplyQuote
bfabd8bf55676cc4eb2790af0c440cb7?s=80&d=mm&r=g
(@arnylogan)
Member
Joined: 3 years ago
Posts: 1
 

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


ReplyQuote
039db7c9ce8b6ac751125156cb40fd59?s=80&d=mm&r=g
(@cathyfc)
Member
Joined: 2 years ago
Posts: 4
 

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.4drivers
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.4drivers
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 🙁


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…


ReplyQuote
039db7c9ce8b6ac751125156cb40fd59?s=80&d=mm&r=g
(@cathyfc)
Member
Joined: 2 years ago
Posts: 4
 

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
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??


ReplyQuote
e108b307141be9e367f97a43e0b7ed57?s=80&d=mm&r=g
(@majdi-alqahtani)
Member Customer
Joined: 2 years ago
Posts: 7
 

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 :(” 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.


ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 5 years ago
Posts: 727
Topic starter  

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 :(” 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


ReplyQuote
e108b307141be9e367f97a43e0b7ed57?s=80&d=mm&r=g
(@majdi-alqahtani)
Member Customer
Joined: 2 years ago
Posts: 7
 

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.


ReplyQuote
c37e256e2663dd9298ea163b06755fe0?s=80&d=mm&r=g
(@dhl452)
Member Customer
Joined: 2 years ago
Posts: 2
 

Sphere-O-Bot Arduino Leonardo does not connect to InkScape on one computer running Windows 10. The EggBot extension is available but InkScape does not see it.
I can use the Arduino IDE serial monitor window and send the SM,2000,0,-200 command and Shere-O-Bot head motor drives.
When I try to use the EggBot extension in InkScape I get the following message:
Traceback (most recent call last): (Yes, I have changed the eggbot.py file with the one mentioned in other places on this forum.

File “eggbot.py”, line 1406, in
e.affect()
File “C:Program FilesInkscapeshareextensionsinkex.py”, line 268, in affect
self.effect()
File “eggbot.py”, line 318, in effect

self.EggbotOpenSerial()
File “eggbot.py”, line 1299, in EggbotOpenSerial
self.serialPort = self.getSerialPort()
File “eggbot.py”, line 1356, in getSerialPort
for strComPort in eggbot_scan.findEiBotBoards():
File “C:Program FilesInkscapeshareextensionseggbot_scanwin32.py”, line 6, in findEiBotBoards
hKey = _winreg.OpenKey( hReg, r”SYSTEMCurrentControlSetEnumUSBVID_04D8&PID_FD92″ )
WindowsError: [Error 2] The system cannot find the file specified

I have replaced the eggbot.py with the one recomended in another thread on this forum. I have also made sure the serial port is com 2 and is at 9600,8,none,1 and none for the flow control.

Again the motor does drive in the serial monitor window of the arduino ide.

help please.


ReplyQuote
c37e256e2663dd9298ea163b06755fe0?s=80&d=mm&r=g
(@dhl452)
Member Customer
Joined: 2 years ago
Posts: 2
 

I have had this issue and now have it resolved.
I deleted all of the eggbot files on my computer. I uninstalled the 64bit version of InkScape.
To fix the issue I installed the 32 bit version of Inkscape. Then I installed the EggBot Software: version 2.4.0. Once that was installed I changed the eggbot.py file as indicated here: http://forums.jjrobots.com/showthread.php?tid=1199. I then went into the device manager and changed the serial port to com 2 from com 17 for the Arduino Leonardo. At this point I rebooted the computer. After the reboot Inkscape recognized the Shero-O-Bot hardware and works.
I am running Windows 10 on an Intel I7 64bit with 32gb ram and an 8gb video card. The Shere-O-Bot hardware does not like the 64bit version of Inkskape and the eggbot.py python file needs to be replaced. Also make sure your serial port is below 4 or below on the com ports.


ReplyQuote
3c703ec7b22311d8f92fd6c7817dacc9?s=80&d=mm&r=g
(@richard1220)
Member
Joined: 2 years ago
Posts: 2
 

Business users may choose the product according to their business level. Other product by the antivirus is for different categories and users across the world rely on it to secure their data.

Office.com/setup


ReplyQuote
69077c88d2edc3f3fc206a2335b57eb5?s=80&d=mm&r=g
(@christophe-guillon)
Member Customer
Joined: 1 year ago
Posts: 7
 

Hello All,

I’m a newbie on this forum.

I just received my kit two weeks ago.
Now i’m trying to upload the code to the card. But this one remains silent.

That is to say that the Arduino IDE recognizes it, I upload and then nothing happens. when I enter the SM,2000,0,-200 command, nothing happens at all…

I tried to write a little code test :

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

  Serial.print("Hello world");
}

upload success but in the the serial monitor, nothing appear…

Some one could help me ?

Thanks,


ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 5 years ago
Posts: 727
Topic starter  

Hello All,

I’m a newbie on this forum.

I just received my kit two weeks ago.
Now i’m trying to upload the code to the card. But this one remains silent.

That is to say that the Arduino IDE recognizes it, I upload and then nothing happens. when I enter the SM,2000,0,-200 command, nothing happens at all…

I tried to write a little code test :

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

  Serial.print("Hello world");
}

upload success but in the the serial monitor, nothing appear…

Some one could help me ?

Thanks,

Are you setting the BAUDS speed to the correct value? When you upload the Sphere-o-bot code (where are you getting it from?), do you get any error or warning message?
Are you trying to control the Robot using the latest INKSCAPE portable version? https://www.jjrobots.com/wp-content/uploads/2020/02/inkscape-Sphere-o-bot.zip


ReplyQuote
Page 1 / 2
Share: