
IOExpansion
ja1umi/MUTIF09Project
Various design materials for building my 8-bit-microprocessor-based single board computer(s)

Filabot Automatic Recycling Machine (FARM): a closed-loop embedded system for automated plastic recycling and filament production.
MakerLab is an open-source printed circuit board by LycosNoctis, from the LycosNoctis/F.A.R.M repository on GitHub. It is a 2-layer board of 90 × 68.3 mm with 42 parts on 51 nets, routed with 355 tracks and 39 vias.
It is built around the ADUM1250AR and 1N4148W. Its parts include 13 resistors, 11 capacitors, 6 ICs, 3 connectors and 2 diodes. It belongs with the AVR (ATmega, ATtiny) boards of this library.
F.A.R.M. (Filabot Automatic Recycling Machine) is a senior design project focused on automating filament production on a Filabot-style plastic recycling and extrusion system. The project uses closed-loop embedded control to monitor filament diameter and adjust machine behavior in real time.
The goal of this repository is to organize the firmware, hardware design files, parts list, and operating documentation in one place so future collaborators can understand, build, test, and improve the system.
F.A.R.M. is designed to help maintain a consistent filament diameter during extrusion. A digital diameter gauge provides feedback to an Arduino Nano Every. The Arduino processes the sensor readings and controls two MCP4725 DAC outputs:
The firmware uses feedback from the diameter sensor to reduce overshoot, undershoot, and unstable oscillations around the target filament diameter.
F.A.R.M-main/
├── Firmware/
│ ├── 1.75mm Nozzle Code/
│ │ └── 1.75mm_F.A.R.M_Code.INO
│ ├── 3.00mm Nozzle Code/
│ │ └── 3mm_F.A.R.M_Code.INO
│ └── Arduino IDE Setup instructions/
│ └── ArduinoIDE_setup_for_Nano.txt
│
├── Hardware/
│ ├── Kikad/
│ │ └── MakerLab/
│ │ ├── MakerLab.kicad_sch
│ │ ├── MakerLab.kicad_pcb
│ │ ├── MakerLab.kicad_pro
│ │ ├── MakerLab3dimage.png
│ │ └── supporting library / report files
│ │
│ ├── Parts List/
│ │ └── Organized Final Parts List.xlsx
│ │
│ └── Schematic_PCB/
│ ├── MakerLab.kicad_sch
│ └── NEW_Makerlab.kicad_pcbThe firmware is split into two main versions based on nozzle size.
Firmware/1.75mm Nozzle Code/1.75mm_F.A.R.M_Code.INOThis version targets standard 1.75 mm filament production.
Default target:
const float TARGET_MM = 1.75f;Firmware/3.00mm Nozzle Code/3mm_F.A.R.M_Code.INOThis version is adapted for 3.00 mm filament production. It follows the same general control structure as the 1.75 mm version, but the target diameter and tuning values are adjusted for the larger nozzle size.
The firmware uses a closed-loop control system based on the measured filament diameter. The system continuously compares the filtered diameter reading to the target diameter and adjusts machine outputs to reduce the error.
Basic control idea:
error = target diameter - measured diameterIn the firmware, this is calculated as:
eFilt = TARGET_MM - filtMM;A positive error means the filament is too thin. A negative error means the filament is too thick.
The controller uses PID-style behavior:
The winder is the main fast correction actuator. It changes pulling force, which affects whether the filament becomes thinner or thicker. The extruder is adjusted more slowly through a trim system that helps correct long-term drift and bias.
| State | Purpose |
|---|---|
TIMEOUT | Safe fallback when sensor data is missing or stale |
NO_FILAMENT | Safe state when no usable filament is detected |
EASY_LOAD | Manual loading mode for startup and threading filament |
HOLD_LAST | Temporarily freezes the last valid outputs during sensor glitches or bad frames |
DEADBAND | Holds outputs steady when the filament is close enough to the target |
LARGE_ERROR | Recovery mode for large but valid diameter errors |
PID / PI Control | Normal closed-loop control around the target diameter |
The firmware also includes a reacquire process, but this is not a true operating state. It is a temporary validation phase used after bad sensor data, easy-load behavior, no-filament detection, sensor glitches, or stale readings.
During reacquire, the firmware waits for several believable sensor readings before trusting the measurement again and returning to normal control.
The system uses an Arduino Nano Every as the main controller. The Nano reads the diameter gauge signal and communicates with MCP4725 DAC modules over I2C.
const uint8_t ADDR_WINDER_DAC = 0x64;
const uint8_t ADDR_EXTRUDER_DAC = 0x65;
const byte PIN_CLK = 3;
const byte PIN_DAT = 2;The gauge clock and data pins are used to capture the digital gauge bitstream. The DAC addresses are used to send output commands to the winder and extruder control channels.
The firmware decodes a digital gauge signal into a filament diameter measurement in millimeters. The sensor stream is captured using an interrupt on the clock pin.
The decoding process includes:
This helps prevent bad sensor frames from causing sudden motor output changes.
The firmware is intended for the Arduino Nano Every.
Install the Arduino megaAVR board package:
Tools → Board → Boards Manager → Search "megaAVR" → Install Arduino megaAVR BoardsThen select:
Tools → Board → Arduino megaAVR Boards → Arduino Nano EveryInstall the following library from the Arduino Library Manager:
Adafruit MCP4725When prompted, install all dependencies, including:
Adafruit BusIOThe full setup notes are available here:
Firmware/Arduino IDE Setup instructions/ArduinoIDE_setup_for_Nano.txt.INO file for the nozzle size being used.115200 baudA message similar to the following may appear during upload:
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in descriptionThis is a known warning for the Nano Every upload backend and is not necessarily a firmware failure if the upload completes successfully.
KiCad project files are located in:
Hardware/Kikad/MakerLab/Important files include:
MakerLab.kicad_pro
MakerLab.kicad_sch
MakerLab.kicad_pcb
MakerLab3dimage.pngAdditional schematic and PCB files are also stored in:
Hardware/Schematic_PCB/The organized final parts list is located at:
Hardware/Parts List/Organized Final Parts List.xlsxUse this spreadsheet to review the major electrical and mechanical components used in the project.
The system operating instructions are located at:
Operational Manual/Operational Instruction Manual.docxThis document should be used when setting up, operating, or demonstrating the machine.
The firmware contains several tuning constants for adjusting system behavior, including:
Most tuning values are near the top of each firmware file and are heavily commented to help future users understand what each value does.
Debug output can be controlled using the debug switches near the top of the firmware.
Example:
#define DBG_STARTUP 1
#define DBG_FRAME_EVENT 0
#define DBG_DECODE_SUCCESS 0
#define DBG_DECODE_FAIL 0
#define DBG_FILTER 0
#define DBG_STATE_CHANGE 1
#define DBG_STATUS_PERIODIC 1
#define DBG_BASELINES 1
#define DBG_EXTRUDER_TRIM 1For normal operation, keep noisy debug options disabled. Enable only the specific debug messages needed for testing.
The Serial Monitor can be used to observe:
This project controls moving mechanical parts and heated extrusion equipment. Before operating the machine:
This repository represents the current working version of the F.A.R.M. senior design project. The firmware and hardware files are intended for continued testing, tuning, and documentation by the project team.
- Alex Anta
- John Hoellen
- Wyatt Morrison
- Yakob AderaNo license has been selected yet.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | .1uf | Capacitor_SMD:C_0603_1608Metric | C2, C3, C4, C5, C7, C8, C9, C10 |
| 6 | 4.7k | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4, R5, R6 |
| 3 | 10uf | Capacitor_SMD:C_0603_1608Metric | C11, C12, C13 |
| 3 | 1k | Resistor_SMD:R_0603_1608Metric | R8, R9, R12 |
| 2 | 100 | Resistor_SMD:R_0603_1608Metric | R18, R117 |
| 2 | 100k | Resistor_SMD:R_0603_1608Metric | R7, R11 |
| 2 | ADuM1250 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1, U2 |
| 2 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1_drive1, J2_extuder1 |
| 2 | MCP4725xxx-xCH | MCP4725A2T_E_CH:SOT-23-6_MC | U3, U4 |
| 2 | MCP6001-OT | MCP6001T_E_LT:SOT65P210X110-5N | U5, U6 |
| 1 | 1N4148W | Diode_SMD:D_SOD-123F | D1 |
| 1 | AVR-ISP-10 | Connector_IDC:IDC-Header_2x05_P2.54mm_Vertical | J3 |
| 1 | Arduino_Nano_Every | Module:Arduino_Nano | A1 |
| 1 | G6K-2 | Relay_THT:Relay_DPDT_Omron_G6K-2P-Y | K1 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D2 |
The 37 most common of 42 parts.

ja1umi/MUTIF09Project
Various design materials for building my 8-bit-microprocessor-based single board computer(s)




80morpheus/KNX_Dimmer
W = Single CW = Cold/Warm White RGB = RGB RGBW = RGB+White RGBCW = RGB+Cold/Warm White


juarendra/Open-Embedded-Breakouts
Collection of open-source embedded breakout board designs (KiCad). I2C Signal Isolator, and more.

niko34/esp32-pool-controller
Contrôleur automatique de piscine ESP32 avec gestion pH, ORP, température, filtration, éclairage, app web locale, MQTT (HomeAssistant auto-discovery), API
It measures 90 × 68.3 mm and has 2 copper layers, 1.6 mm thick.
42 parts, built around the ADUM1250AR and 1N4148W. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the LycosNoctis/F.A.R.M repository on GitHub, at the commit this page was made from: the board is Hardware/Kikad/MakerLab/MakerLab.kicad_pcb and its schematic Hardware/Kikad/MakerLab/MakerLab.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask LycosNoctis before reusing the design.