cocktailyogi / EggDuino

Arduino Firmware for Spherebot / Eggbot integration in Inkscape
MIT License
91 stars 138 forks source link

Connection to EggBot extensions #3

Closed bernabap closed 9 years ago

bernabap commented 9 years ago

I don't think there is a bug with the extensions, isn't just trying to find an EiBotBoard?

As we are using something else I tried to change the VID/PID number at line 6 of eggbot_scanwin32.py file to FTDI vendor ID and product ID as I am using arduino nano and it does the job:

hKey = _winreg.OpenKey( hReg, r"SYSTEM\CurrentControlSet\Enum\USB\VID_0403&PID_6001")

For Linux I just had to change from "ttyACM" to "ttyUSB" at line 28 of eggbot_scanlinux.py file.

BTW, great firmware thanks for sharing.

duezero commented 7 years ago

I tried to replace SPMCSR &= ~SELFPRGEN; with SPMCSR &= ~SPMEN;

and now it compiles both for UNO and MEGA.

I don't have a Mega so I cannot test it (:

Asenom commented 7 years ago

Thank you very much! I tried it and it seems to work with all the other changes! I also tried to connect with the Inkscape extensions and by checking for the EBB Version it also replied with the right Version. I think the communication is now properly working! I will give a reply on how it worked with steppers and the servo motors, but first i have to change the PINs!

UPDATE: It worked fine with the servo, Steppers will come soon!

Thank you very much! :)

SpeedGP commented 7 years ago

Different topic, is there any way I could run the Gcode while it's in the Arduino code? My plan is to push a button, draw an egg, push a button, draw an egg, etc. (Science fair project)

Thanks!

On Feb 23, 2017 3:54 PM, "Asenom" notifications@github.com wrote:

Thank you very much! I tried it and it seems to work with all the other changes! I also tried to connect with the Inkscape extensions and by checking for the EBB Version it also replied with the right Version. I think the communication is now properly working! I will give a reply on how it worked with steppers and the servo motors, but first i have to change the PINs!

Thank you very much! :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cocktailyogi/EggDuino/issues/3#issuecomment-282160543, or mute the thread https://github.com/notifications/unsubscribe-auth/ALPvIAdqszStuS8kqx0yZAOV-yHM1vrXks5rfhwwgaJpZM4Dqxy- .

duezero commented 7 years ago

Different topic, is there any way I could run the Gcode while it's in the Arduino code? My plan is to push a button, draw an egg, push a button, draw an egg, etc.

I think you should re-design the whole firmware. Actually the program reads commands sent by Inkscape extension that are NOT g-code. Conversion from "drawing-->G-code-->eggbot commands" is performed by inkscape extension

SpeedGP commented 7 years ago

Interesting, thanks!

Unfortunately I'm no programmer, I can tweak, but not really write... Just checking if it was easy.

Thanks!

-James--

On Sun, Mar 5, 2017 at 1:11 AM, duezero notifications@github.com wrote:

Different topic, is there any way I could run the Gcode while it's in the Arduino code? My plan is to push a button, draw an egg, push a button, draw an egg, etc.

I think you should re-design the whole firmware. Actually the program reads commands sent by Inkscape extension that are NOT g-code. Conversion from "drawing-->G-code-->eggbot commands" is performed by inkscape extension

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cocktailyogi/EggDuino/issues/3#issuecomment-284215269, or mute the thread https://github.com/notifications/unsubscribe-auth/ALPvIPAn-2O7J6SfjQaTtF1yiAo3R-eOks5rinwqgaJpZM4Dqxy- .

rahendri commented 7 years ago

Hi, my eggbot keeps turning into the same direction, it does not matter if i send an SM,1000,0,-800 or SM,1000,0,800 (even quick after eachother.) I use and arduino Leonardo together with an Adafruit motorshield V.2.3. I already changed some of to code to have this working. Any idea on how to fix this?

ellow7 commented 7 years ago

I got the error message "Failed to connect to EggBot. :(" every time in Inkscape, however I could use the serial interface from the arduino IDE without problems (e.g. sending "v" and receiving the version). After some research I found that my extension/serial in inkscape was outdated. After updating everything worked -> https://github.com/pyserial/pyserial/tree/master/serial