-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UART connection for Orange Pi Zero 2W #22
Comments
@mysteryjeans Any solution found? |
@andriib-huma I had to use USB LAN to setup WiFi. Using UART5 for data, check the picture & screenshot of BOM file. |
@mysteryjeans Thanks for update. I tried to use UART5 and for some reason did not get any success. Used Debian Bullseye from OrangePi website. Tested UART5 pins according to this guide. Saw pings according to the test. Did't get it working for actual MCU connection. Only via USB connection. Can I ask you to share orangepi-config/System/Hardware config? Is there any extra steps that you did to make it work? |
@andriib-huma did you compiled MCU firmware with UART5? You need to put MCU in boot mode before flashing firmware. I followed this guide https://youtu.be/qtmPxSt6baU?si=DljXsvXGmKQBSn27 `[include shell_command.cfg] [mcu] [printer] [respond] [force_move] ##################################################################### X/Y/Z Stepper Settings##################################################################### [stepper_x] [tmc2209 stepper_x] [stepper_y] [tmc2209 stepper_y] [stepper_z] [tmc2209 stepper_z] ##################################################################### Extruder Settings##################################################################### [extruder] rotation_distance: 22.67895 Sherpa Microgear_ratio: 50:10 Sherpa Microrotation_distance: 53.494165 # LGX Lite gears clone, Hammingbird Sherpa Micro Annex Firmwaremax_extrude_only_distance: 1400.0 [tmc2209 extruder] ##################################################################### Probe##################################################################### [safe_z_home] A X, Y coordinate (e.g. 100, 100) where the Z homing should beperformed. This parameter must be provided.#speed: 50.0 Speed at which the toolhead is moved to the safe Z homecoordinate. The default is 50 mm/sz_hop: 5 Distance (in mm) to lift the Z axis prior to homing. This isapplied to any homing command, even if it doesn't home the Z axis.If the Z axis is already homed and the current Z position is lessthan z_hop, then this will lift the head to a height of z_hop. Ifthe Z axis is not already homed the head is lifted by z_hop.The default is to not implement Z hop.#z_hop_speed: 15.0 Speed (in mm/s) at which the Z axis is lifted prior to homing. Thedefault is 15 mm/s.#move_to_previous: False When set to True, the X and Y axes are reset to their previouspositions after Z axis homing. The default is False.[output_pin probe_enable] Probe deploy command[gcode_macro PROBE_DOWN] Probe stow command[gcode_macro PROBE_UP] [probe] [filament_switch_sensor filament_sensor] ##################################################################### Bed Settings##################################################################### [bed_screws] [bed_mesh] [screws_tilt_adjust] [heater_bed] ##################################################################### Cooling Settings##################################################################### [heater_fan hotend_fan] [fan] [heater_fan air_filter_fan] ##################################################################### Sensor Settings##################################################################### [temperature_sensor skr_pico] [temperature_sensor orangepi] ##################################################################### Input Shaper##################################################################### #[include PIS.cfg] [input_shaper] [gcode_shell_command plot_graph] ##################################################################### Macros##################################################################### [gcode_macro M600] [gcode_macro SENSORLESS_DELAY] [gcode_macro SENSORLESS_HOME_X] [gcode_macro SENSORLESS_HOME_Y] [gcode_macro SENSORLESS_HOME_Z]
[gcode_macro PROBE_HOME_Z] [gcode_macro G28] {% if (flag_Y == "false" and flag_X == "false" and flag_Z == "false") %} {% if flag_O !="false" and 'x' in printer.toolhead.homed_axes %} {% if flag_O !="false" and 'y' in printer.toolhead.homed_axes %} {% if flag_O !="false" and 'z' in printer.toolhead.homed_axes %} {% if flag_Y != "false" %} {% if flag_X != "false" %} {% if flag_Z != "false" %} [gcode_macro START_PRINT] G90 ; use absolute coordinates M104 S0 ; Setting extruder temp to cool down without waiting {% if "xyz" not in printer.toolhead.homed_axes %} SCREWS_TILT_CALCULATE MAX_DEVIATION=0.1 # Abort print if mesh deviation is > 0.1 M190 S{BED_TEMP} G28 Z M109 S{EXTRUDER_TEMP} [gcode_macro CANCEL_PRINT] CLEAR_PAUSE [gcode_macro END_PRINT]
[gcode_macro DRAW_LINE] [gcode_macro WAIT_FOR_BED_TEMP]
[gcode_macro TEST_SPEED]
[gcode_macro AXES_SHAPER_CALIBRATION]
[gcode_macro BELTS_SHAPER_CALIBRATION]
[gcode_macro EXCITATE_AXIS_AT_FREQ]
## <---------------------- SAVE_CONFIG ----------------------> |
@mysteryjeans Thanks again. I was also inspired to give my first printer a new coat of paint because of The 100 Project)). So I was able to to make it work. Not sure why it didn't in the first place. But I reflashed the SD Card, enabled UART5, connected everything, and it worked. So I will leave some of my steps for troubleshooting the issues.
And then copied to BTT Pico with USB and Bootloader jumpers installed. Also before I copied, I pressed Reset button.
|
Uart cable connector for RX & TX should be separate from 5V, 5V & GND.
Orange Pi Zero 2W has reserved GPIO pin 8 & 10 for UART0 for debugging & console.
If RX & TX cable were separate, then UART5_TX on GPIO pin 11 and UART5_RX on GPIO pin 13 can be utilised.
serial: /dev/ttyS5
restart_method: command
The text was updated successfully, but these errors were encountered: