Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.3k stars 5.28k forks source link

Buzzer support on STM32F103 Creality boards #4726

Closed Kieraneasdale closed 2 years ago

Kieraneasdale commented 2 years ago

Hi there, could someone add default buzzer support to printer-creality-ender3pro-2020.cfg and V2? I just dont know the pin number

Woodcat64 commented 2 years ago

I haven't try this yet, but on the v4.2.2 board the beeper is on pin PB13 https://github.com/Jyers/Marlin/discussions/814

Kieraneasdale commented 2 years ago

Ah great! I will test and let you know how it goes!

Kieraneasdale commented 2 years ago

Some is wrong here:

https://github.com/Klipper3d/klipper/blob/master/config/printer-creality-ender3pro-2020.cfg

This shows PB13 being assigned to display:

sclk_pin: PB13

Kieraneasdale commented 2 years ago

Screenshot 2021-09-28 120732

According to the Schem, is is the buzzer though

Woodcat64 commented 2 years ago

It's working for me. I have E3v2 with Creality Dwin screen connected to RPi so I don't use the [display] section in printer.cfg. https://github.com/Klipper3d/klipper/blob/master/config/printer-creality-ender3-v2-2020.cfg. With the Dwin screen, that pin is directly connected to the buzzer inside the screen.

According to this, the old screen is using pin PC6. But you know, it may be incorrect! https://fabrizio.zellini.org/wp-content/uploads/2019/05/ender3dvsanet3d.png

edit. also, thanks for the idea, now my printer makes sounds again. beep, beep

Kieraneasdale commented 2 years ago

ok so for myself on the stock display with the ender 2 Pro 2020 the correct pin was PC6