How To Connect Factory I/O With Arduino (For Free)

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 29

  • @justinpuzak2558
    @justinpuzak2558 Рік тому

    it use to work but it keeps saying that there is no matching functions for the modbus Serial class,, even though the object is declared

  • @hasnimhjob
    @hasnimhjob 7 місяців тому

    how i can fixe the probleme of adress ip please

  • @joannaxu7786
    @joannaxu7786 2 роки тому

    is the ip address in the exe supposed to be different than the one in the driver configuration?

    • @seafoxc
      @seafoxc  2 роки тому

      No, change it in Factory IO to the same IP.

  • @joannaxu7786
    @joannaxu7786 2 роки тому

    i changed the ip address but the tx rx still dont blink and they dont connect, please helpp

    • @seafoxc
      @seafoxc  2 роки тому

      Did you read thru the written guide? www.hackster.io/Seafox_C/run-a-virtual-factory-with-arduino-2e2046? It is hard to troubleshoot from a distance. Make sure you run as an admin and maybe deactivate windows defende or your antivirus. Also make sure you use the write COM-port.

    • @joannaxu7786
      @joannaxu7786 2 роки тому

      @@seafoxc yes i have read and followed everything, but it still doesnt work, the tx rx dont blink

    • @seafoxc
      @seafoxc  2 роки тому

      @@joannaxu7786 can you try on another pc?

  • @OscarGomez-fh6tl
    @OscarGomez-fh6tl 3 роки тому

    Hello, great tutorial! It has helped me a lot. I would like to know how a "waiting time" would be done, thank you.

  • @justinpuzak2558
    @justinpuzak2558 2 роки тому

    when i use while loops it won't connect to the IP, any reasons?

    • @seafoxc
      @seafoxc  2 роки тому

      The communication with FactorIO works with Modbus. Modbus is made for industry and needs to poll in a certain time otherwise in a real factory environment you could miss the signals from you I/O. Your While will take too long to process (do u use delays?) and Modbus will create an error.

  • @softwareofautomation1366
    @softwareofautomation1366 3 роки тому +1

    Hello, I connected arduino and factory ıo but I didnt see arduino input read.Arduino uno has totatly 12 digital pins.But Code say 16 pins.Please Can u explain pins of Arduino?

    • @seafoxc
      @seafoxc  3 роки тому

      You have 16 virtual inputs and 16 virtual outputs that you can connect to Factory I/O. You can use the 12 physical inputs from the Arduino in the code but you don't have to. I also made a claw machine video and in the description you can find the code where I use the pins of the Arduino to connect to the virtual inputs of Factory I/O. :-)

    • @softwareofautomation1366
      @softwareofautomation1366 3 роки тому

      ​@@seafoxc I guess find the problem.There isn't option of realtek pcıe gbe family controller in the connectıon confıgration of Factory ıo.There is software loopback interface.How I arrange this settings?

    • @seafoxc
      @seafoxc  3 роки тому

      @@softwareofautomation1366 "pcıe gbe family controller" is the name of my network card. I use the default setting for Factory I/O. You need a network card to connect to Factory I/O. Can you check your network card "Control Panel\Network and Internet\Network Connections" and see if there is one. If you see you have a network card you maybe did not give permission to Factory I/O to have access to your network when installing.

    • @softwareofautomation1366
      @softwareofautomation1366 3 роки тому

      @@seafoxc I reinstalled the program. It never asked for the trace you mentioned. I tried versions 2.5.0 and 2.4.3. By the way, there was realtek pcle gbe family controller in the network connections section. Which version of Factory IO are you using?

    • @seafoxc
      @seafoxc  3 роки тому

      @@softwareofautomation1366 I use version 2.4.3. Maybe make sure it has permission in you anti virus and Windows Firewall and also open it as administrator?

  • @pedroomega2904
    @pedroomega2904 2 роки тому

    Hello good afternoon ! all is well ? I really like your work and commitment to what you do and I would like you to ask me a question if it were possible, please, could I use the files you provided to connect to factory on an Esp32 I have? I thank you for your attention !

    • @seafoxc
      @seafoxc  2 роки тому

      I Don't have an ESP32 to try it out but It could. Keep in mind that the MODBUS communication requeres a USB connection to the PC running the program. I tried compiling it with an ESP32 board selected and it compiles. So try to upload it and let me know how it goes.

  • @samza9
    @samza9 8 місяців тому

    มีไลน์ไว้ติดต่อไหมครับ

  • @funnyautomation763
    @funnyautomation763 3 роки тому +1

    Great video! Thank you.

  • @劉建忠-l7d
    @劉建忠-l7d 3 роки тому

    How change the "link to factory io" ip address?

    • @seafoxc
      @seafoxc  3 роки тому

      I hardcoded it in the Python script and from this script I created a exe. file. If you want to change it you should install Python and go to the written guide webpage and download "Not_Needed_Source_Code_Modbus_converter" file. You can edit the code in the Python IDE. If you try to run the script you will get some errors because you have to install some libraries. To install libraries I would advice "PIP install" in the command prompt (just google "how to PIP install"). In the first lines of the python script you can see the modules that has to be installed to run the script (pymodbus , tkinter , argparse, socket, umodbus). after PIP installing them you can run the script with the IP address you want... Just wondering why do you need to change the IP address?

    • @劉建忠-l7d
      @劉建忠-l7d 3 роки тому

      @@seafoxc Thanks!! My ip address of PC is not in 192.168.0.XX, I must change that!

    • @softwareofautomation1366
      @softwareofautomation1366 3 роки тому

      @@劉建忠-l7d Hello did you connect the factory io and arduino?

  • @plcsingh9835
    @plcsingh9835 3 роки тому +2

    Sir leave factory io behind.i learn from you that how to make a perfect evening programming,😀😀😀😀