How to Control 5V Fan with Bolt

Problem: I want to control 5V operating Voltage Fan using Bolt, as we have done with LED
What I did Now: I tried to connect 5V(VCC) and GND of Bolt with Fan motor, It is working fine, but I can’t control it with code.
What I need: I want to control it with Bolt Python Function response = mybolt.digitalWrite('0', 'HIGH'), Here GPIO pin 0 is used, but how can I use GPIO pins to fan motor?
Please Help me out as soon as possible.
Thanks in advance

1 Like

Read last answer of this post by @hibafatima24 …I hope it may help you

Connect it with output Gpio pin