-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find an Eggbot on any serial port. :( Error reading serial data. #7
Comments
It's great you have your eggbot working :) |
Yes you are right. I realized that the servo had a hard time holding the pen in the raised position. |
I also have struggled with the same error when using the Eggbot extensions on Inkscape. I also have modified eggbot.py and eggbot_scanwin32.py to use the VID and PID of my arduino board (I am using a UNO clone with a CH340 USB/Serial chip). I can drive the UNO+Adafruit motor driver V2 with Spherebot on board using serial commands but can't get Inkscape to do its stuff - any suggestions? Peter |
To get my Eggduino communication to work with Inkscape I made all of the following changes:
But most important: Before using Inkscape you first of all may want to make absolutely sure, that your Eggduino responds at all: Start with simply asking "v" (small v for Version) using Arduinos serial monitor: You should get an answer string like "Egg.... modified..." before even try to look for other tools in the chain. This is because your Eggduino simply must respond to any legal command entered on the serial line indepentently of the caller-tool. Another example: Toggle Pen "TP" (capital letters) gets an "OK" and the particular action. Only if this goes well you should proceed. Arnd |
And by the way: if things don't go well, check with a different USB-port. I have two UNO-clones (with 16u2) that both show unreliable communication with the USB-ports build in into my TFT-monitor. My NANOs with FTDI- or WCH-chips are running smooth there. |
here a short overview how I get it running ... [SOLVED] My environment: ALL of them came gave me the error, that no EggBot could be found with an USB monitor I see clearly, that Inkscape sends twice "v", but did not receive any string back! finaly I made the modifications in egg_bot.py (portable inkscape) as suggested from Rick_S (THANKS!!!) and so I could connect. trying to plot something I've recognised that the schemtic @ SphereBot for micro-stepping is not correct (all low set full step). at the end of the day I could say: Done! to do: testing with normal inkscape 0.91 & 2.7.1 |
Hello, |
@alpe66 |
It looks like your steppers skip steps. Try to increase the current: http://reprap.org/wiki/Pololu_stepper_driver_board |
To make 2.7.1 work, you should change VID/PID in ebb_serial.py, or just hard code your port number by replacing |
Hi, thanks for the reply. The steppers are ok, because when I use Spherebot, it works flawlessly. |
I sympathise. I never resolved this and have to use two or three programs. I concluded that unless you are a skilled python programmer it is difficult to eliminate the various checks to ensure the system is connected to a ‘proper’ Eggbot board.... but there again what do I know?
Peter
From: H3nk
Sent: Monday, March 28, 2016 8:19 AM
To: cocktailyogi/EggDuino
Cc: pseddon
Subject: Re: [EggDuino] Unable to find an Eggbot on any serial port. :( Error reading serial data. (#7)
Hi, thanks for the reply. The steppers are ok, because when I use Spherebot, it works flawlessly.
I will try to change that, because it's easier to have everything integrated in 1 program, instead of creating the gcode with 1, and sending it with another.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
|
I changed the none into COM4, and it worxx with 2.7.1, but the same distorted effect. |
@H3nk And no, I think that you don't need to be an experienced Python programmer to understand what happens in the function find_port() in ebb_serial.py: All of the art is simply identifying an Arduino instead of an EiBotBoard. As of today I was even successful to add a connection to a CH340G-based Arduino clone as well and found it not too complicated. Concerning the very special problem with Arduino NANOs that suffer from faked FTDI-Chips (Arduino Uno cannot be concerned because of different USB-devices) you better check the basic function from the Arduino IDE first of all. The Eggduino/EiBotBoard answers to any command you type into the Serial Console. There is no Python and no Inkscape involved at this time. Type 'v' (with CRLF) and your Eggduino will answer with a string "EBB...somewhat". Only NANOs with faked FTDI will answer here with that annoying "NO GENUINE DEVICE...". This is the reply of newer genuine(!) FTDI-drivers when detecting a faked USB-chip. You may want to make absolutely sure that this basic communication works before first-time trying to connect with Inkscape. Concerning crude lines, I faced similar problems first and excluded Python first hand, because the main-script does nothing but sending pen-moving commands to be interpreted by EggDuino itself. But yes, I had to do some tuning on the following topics to get rid of it:
|
@H3nk @caravanserei You may try my fork as well, it implements some missing features like pen raising/lowering speed and engraver control.. |
I had the problems of connecting the Arduino nano clone with CH340 but I managed to solve it. I went in to device manager and found the name of the device on Arduino port. It was named USB-SERIAL CH340 and I used just the first word of it and used it ebb_serial.py on line 49: The original line is: PawArmy's code is: and my changed code looks like this: And now it works on both Arduino Uno and Nano clones with CH340. |
The pen arm just want to rotate in one direction. |
I have the same problems. |
@cocktailyogi
Even after the fix in eggbot.py I still get this error.
Am I supposed to have serial access without Inkscape? Using the Arduino Serial Monitor or Putty I am not able to get any connection. Still the servo runs hot. 55°C.
[SOLVED]
I have found that hardcoding the USB VID into eggbot_scanwin32.py make everything working!
You have to replace in line 6 in eggbot_scanwin32.py:
hKey = _winreg.OpenKey( hReg, r"SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0043" )
//this line above has already been modified with my Arduino Hardware ID
with your Arduino VID which can be obtained from Device Manager - Arduino - Details - Hardware ID
The text was updated successfully, but these errors were encountered: