Author Topic: Control 12V fans with Digispark, TIP122 and DigiUSB  (Read 1525 times)

Greg311

  • Newbie
  • *
  • Posts: 3
Control 12V fans with Digispark, TIP122 and DigiUSB
« on: October 07, 2019, 10:59:29 am »
Hi!

I want control 12V PC fans with Digispark. I made some scheme based on this tutorial: http://www.mythoughtspot.com/2017/06/20/controlling-a-fan-using-pwm-and-arduino/
My friend make simple PCB:
https://www.dropbox.com/s/bj4ixrn1jsmk94a/IMG_20191007_195400.jpg?dl=0
https://www.dropbox.com/s/c19gvi9yx4odpax/IMG_20191007_195405.jpg?dl=0

But it doesn't work. Digispark crashed or don't connect with my Mac Mini (Arduino IDE or Digiterm).
When I unsolder power jack and 1N4001 it connects.

Can someone check my PCB scheme and board? I have no idea what is wrong with that :(

granzeier

  • Jr. Member
  • **
  • Posts: 73
Re: Control 12V fans with Digispark, TIP122 and DigiUSB
« Reply #1 on: October 08, 2019, 03:54:06 am »
According to the Differences (from the Arduino) and limitations section of the Digispark Basics page (https://digistump.com/wiki/digispark/tutorials/basics)
Quote
Pin 3 and Pin 4 (P3 and P4) are used for USB communication and programming, while you can use them in your circuit if you are not using USB communication, you may have to unplug your circuit during programming if the circuit would impede the pin states or dramatically affect the voltage levels on these pins.
Try moving your input to another PWM pin, P0 or P1 (since you are not using any other pins in your circuit.) See if that does the job.
« Last Edit: October 08, 2019, 03:56:30 am by granzeier »