makerbase-mks / MKS-TinyBee

MKS TinyBee is a mainboard for 3d printing, based on ESP32 module
GNU General Public License v3.0
109 stars 111 forks source link

Schematic for MKS tinybee #107

Open Elentriekerke opened 6 months ago

Elentriekerke commented 6 months ago

Hi for some reason fan2 is suddenly at 100% duty cycle all the time, even after rewrite or reset. So I was wondering if there are schematics available for this board in order to find the issue.

I can see a red LED lighting up for one of the fans, maybe there's some G code to reset the pwm driver.

Thanks for the help in advance 🙏

thmalmeida commented 6 months ago

Even the microcontroller (ESP32) has pwm on many pins, tinybee board does not offer direct connection to drives that controls fans or heaters. Perhaps due the few number of pins available. And it uses three 8 bit shift registers to control those parts using I2S peripheral. So, a pwm output on fans or heaters is not possible by hardware. The fan speed can be controlled by some more code to construct a pwm signal by software with low frequency.

Upgrade the firmware image to esp32 is simple by the usb-c cable.

Are you using Marlin firmware? What is the firmware version?

Elentriekerke commented 6 months ago

It worked before as it is now, so i think something went wrong causing this issue... As far as I found schematics from previous versions the fans are controlled by a separate chip, which gets its data from the esp32.

But however there's a red led close to the fan output which is now red lit.

I use marlin 2.1.2...

Marcel67921 commented 5 months ago

Could you please provide the configuration on the TinyBee motherboard for the Marlin-2.1.2.1 . I would add the data for setting the board size, limits and speeds. I'm not an expert in setting up the configuration. Thank you.

viernullvier commented 4 months ago

@Elentriekerke Did you check if your fan's - connection might be shorted against GND? I'm asking because the fan's + pin is always connected to Vin while the - pin is the one that's getting switched (between not connected / off and GND / on). Shorting - to GND will bypass the microcontroller / PWM signal, power the fan connector and light up the LED permanently.

danvie4 commented 3 weeks ago

@Elentriekerke Have you looked at the board to see if there's any physical damage (blown mosfet, other components that look burnt...)?