Eggbot and Processing on windows

Home Evil Mad Scientist Forums Egg-Bot Eggbot and Processing on windows

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20425
    dmerleaux
    Participant

    Eggbot Original v2 – connected fine to Windows 7, Inkscape plugins working well.

    Trying to adapt Dave Bliss’ Processing code to control Eggbot via Processing https://github.com/davidbliss/eggbot
    -having problems connecting to the serial port.

    Maybe it’s a problem w/ the Processing Serial Library (ControlP5) (using latest version of that and v2.2.1 of Processing) but I think it may be in the sketch code that is using Mac/*nix port language and I need some suggestions for translating that to Windows.

    the code does this:

    // TODO: find and open the serial port
          String[] ports = Serial.list();
         
          isConnected=false;
         
          for (int i = 0; i < ports.length; i = i+1){
            if (ports.indexOf(“/dev/tty.usbmodem”)==0){
              // this is an arduino port
              println(“connecting to: “+ports
    );
             
              controller = new Serial(parent, ports
    , 9600);

    and I think that the “/dev/tty” etc… part is not working for Windows – the Eggbot is happily connected to COM7 with the Location 0 (Port_#0002.Hub_#0001)

    Any suggestions on how to describe the serial port for this sketch would be much appreciated. Also if there’s a more appropriate forum that you’ve found please point the way.
    Thanks

    • This topic was modified 6 years, 7 months ago by Windell Oskay.
    #22069
    Windell Oskay
    Keymaster

    Download RoboPaint RT from https://github.com/evil-mad/robopaint-rt/releases/latest

    This is a processing example to drive the WaterColorBot, also based on the same EBB controller that the EggBot is.  Use the scanSerial() function there to connect to the EBB.
    #22070
    dmerleaux
    Participant

    Thank you! I should be able to figure it out from there.
    =D

    #22071
    ragstian
    Participant

    Hi

    The above line does not work as is, delete the “&nbsp;” from the end to get it to work.

    ( ͡° ͜ʖ ͡°)
    RGDS
    Ragnar

    #22072
    Windell Oskay
    Keymaster

    Thank you again. (And, damn you forum software!)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.