Go to advanced search

by lcamilo
Sun Dec 24, 2017 1:57 pm
Forum: Other projects
Topic: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it
Replies: 56
Views: 88332

Re: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it

Cant be sure because I cant see clearly but Ii think you might have things connected wrong. your circuit should look like this ( diode left out for clarity ) https://i.imgur.com/hdjeZnB.jpg?1 which matches this diagram https://i.imgur.com/ynC6IiP.jpg for reference. https://i.imgur.com/D0ub1W3.jpg 😓...
by lcamilo
Sun Dec 24, 2017 12:26 am
Forum: Other projects
Topic: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it
Replies: 56
Views: 88332

Re: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it

pcmanbob wrote:
Sun Dec 24, 2017 12:00 am
2N2222A is the same transistor.
What's the rating on your fan ? May be current drawn by fan is to much for transistor.
Are you sure it's connected correctly?
Yes, every things conecte correctly. Is a ver small fan, but I don't know the rating.
20171223_222027-min.jpg
20171223_222027-min.jpg (246.76 KiB) Viewed 7261 times
20171223_222232-min.jpg
20171223_222232-min.jpg (204.38 KiB) Viewed 7261 times
by lcamilo
Sat Dec 23, 2017 11:56 pm
Forum: Other projects
Topic: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it
Replies: 56
Views: 88332

Re: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it

It should work with a 470 ohm resistor. You do need a resistor you could try 220 ohm. But don't go to low or you could end up drawing to much current from the gpio pin. What's the rating of the fan you are using ? EDIT........ Just checked and 2N2222 and 470 ohm resistor should power 5V 0.3A fan at...
by lcamilo
Sat Dec 23, 2017 10:39 pm
Forum: Other projects
Topic: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it
Replies: 56
Views: 88332

Re: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it

Using my original diagram to connect your fan you can control the fan speed using PWM. try this simple example code it will drive you fan at various speeds as a demonstration, it uses gpio 25 but if your fan is connected to another gpio just change the gpio number in the code. #written for python2 ...
by lcamilo
Mon Dec 18, 2017 7:07 pm
Forum: Other projects
Topic: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it
Replies: 56
Views: 88332

Re: Adding a 5V Fan to a Raspberry Pi 3 Model B and having control of it

Here you go simple 2n2222 transistor fan driver. included diode to protect transistor from back emf. base current will be about 5ma, which is well within the GPIO limits. do not connect the fan yellow wire it will be outputting 5v signal which will damage you GPIO, if you really need to measure the...

Go to advanced search