-
-
Notifications
You must be signed in to change notification settings - Fork 107
Using 3D printer mainboards
Many especially older 3d printer mainboards are based on the Arduino Mega 2560, and some setups even had a "3d printer shield", an add-on board that plugged on top of a regular Arduino Mega and contained additional electronics to drive the stepper motors heaters, fans and other electronics.
Naturally you should know your way around electronics to do something like this, what each of the outputs and inputs on a 3D printer expect and how they work, and also understand that I am not an expert, so anything in this document is what I have tried, but it might well be wrong too. So use this information at your own risk, of course.
I happened to have a spare Velleman K8400 board that flashed with Mobiflight without problems, as it is very much an Arduino Mega 2560.
(image from reprap.org)
Like stated earlier, this is basically an Arduino Mega on steroids. It expects 15V but seems to work fine with 12V too, of course then the output voltages will be also lower. But my fans I tested with are 12V for example, so its fine.
So if you are lucky and your board is basically a Mega, you end up with an Mobiflight Mega that needs pin configuration. I would guess many of those are clones of each other and also based on the open source design called RAMPS which has many versions, but of which the 1.4 seems to be quite popular, and even my Velleman board is based on its design, most of the pins are the same.
https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.1.x/Marlin/src/pins/ramps
There are also other header files for other boards, but many seem to include the RAMPS pins as a starting point and then possibly override some where they made changes on their design. So, with a bit of detective work you can look up pins for:
- End stops - these can likely be used as input buttons/switches
- Stepper motor drivers (these are using step + direction + enable + "CS" pins, so need to dig a bit how to use these with Mobiflight sensibly)
- Heaters and fans (basically MOSFETs that can be driven as leds with PWM.
- Thermistors are heat-sensitive resistors, so potentiometers might be usable on these pins
There is also the LCD display, but I am not sure what connection that uses, MobiFlight expects I2C.
- MobiFlight Connector Installation
- Mobiflight Connector BETA version installation
- Modules
- MobiFlight Connector Files Structure
- MobiFlight Connector Uninstall
- Modules Reset to factory default
- Verifying the WASM module installation and locating the MSFS2020 community folder
- Verifying the WASM module installation and locating the MSFS2024 community folder
- Using a Winwing FCU with MobiFlight
- Using VKB controllers with MobiFlight
- Providing logs from MobiFlight
- MobiFlight Connector How does it work
- Mobiflight Connector Main Window
- Flash module with MobiFlight firmware
- Input and Output devices
- Joysticks
- Midi Boards
- Sim Variables (for Output)
- Input Actions
- Merging configuration files
- Disabling specific COM ports
- Examples Output LEDs
- Examples Input Switch
- Example 7 segment display
- Example Servo motor
- Controlling LEDs with an output shift register
- Adding lots of buttons with an input shift register
- Beginner's guide to input multiplexers
- Key Matrix with standard MobiFlight and Multiplexers
- Tutorial Easy Driver and x.27 or x.40 Stepper Motor
- Tutorial for Airbus VS display via 7-Segment LED Module
- Example Analog Input Potentiometer
- Baron G58 Tutorial Gear, Flaps, Mags, ELT Input Output Programming
- Using Mobiflight to control arduino-based 3rd party panels (RealSimGear GNS530)
- How to use a VNH2SP30 DC motor shield with MobiFlight
- Using 3D printer mainboards
- Playing sounds by sending keystrokes to AutoHotKey
- Using the selector knob on a Honeycomb Bravo
- Using an adjustable 12 position switch as a GA starter
- Brightness of LCD displays with I2C
- Using three-position switches
- Transponder with one Rotary
- Workflow for Creating Flight Simulation Panels ‐ Part 1
- MSFS2020 RPN Tips and Tricks
- MSFS2020 Using the Custom Input Code Box
- MSFS2020 Install WASM module and Event List
- MSFS2020 How to Create and Use User Defined Lvars
- MSFS2020 How to Create a Blinking LED configuration
- MSFS2020 User Defined WASM Module Events Best Practices
- MSFS2020 Developer Mode, Model Behavior dialog and Console window
- MSFS2020 PMDG 737‐700 List of Events that require use of FSUIPC7
- MSFS2020 PMDG 737‐700 Calibrate throttle idle and reverse thrust using interpolation (Valkyrie)
- MSFS2020 PMDG 737-700 Chrono unit functions implemented in Mobiflight
- Configuring PMDG 737 Parking Brake Lever Auto-Release with a Servo in Mobiflight
- Using encoder to drive a value back and forth within a given range
- Adding a custom board to MobiFlight
- User guide - Community Board and Custom Devices
- Developing your own custom devices/boards