Factory-IO-with-Esp32

This repository contains code to establish communication between an ESP32 and Factory IO, specifically for controlling the "Pick and Place XYZ" scene using real-life buttons and a joystick.

Stars
0
Committers
2

FactoryIO with ESP32

Description

This repository contains code to establish communication between an ESP32 and Factory IO, specifically for controlling the "Pick and Place XYZ" scene using real-life buttons and a joystick.

Files and usage

  • Factory IO with Esp32/Factory io Server - Esp32 Code.
  • Pick & Place XYZ ESp32.factoryio - Modified scene.

Software and Libraries

  • FactoryIO
  • VS Code with PlatformIO
  • This Modbus TCP/IP library for Esp32

Schematics

  • Pin 21, 22 → Button inputs (FactoryIO Z+ and Z-)
  • Pin 23 → Joystick switch (FactoryIO Vacuum Actuator)
  • Pin 32 → Joystick X pin (FactoryIO X+ and X-)
  • Pin 33 → Joystick Y pin (FactoryIO Y+ and Y-)

Usage

Upload the given code to the ESP32, then go to the Serial Monitor and grab the output IP address.

Next, navigate to File > Drivers > Configuration in Factory IO and paste the IP address into the Host section. After that, connect and start the scene.

Results

Video

Related Projects