Skip to content

sajrashid/RpiPythonScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RpiPythonScripts

Various Python Scripts for PI

Switching Mosfet

fan.py

Using IRF520 0-24V MOS Driver Module

IRF520 AliExpress Link

Example -

Raspberry PI GPIO refrence

OR

Raspberry PI GPIO refrence

alt text

Connect DC input (max 24v) to VIN & GND

Connect load to output V+ & V-

Connect GPIO pin 2 to SIG

Connect GPIO GND pin(6 or any GND pin)

Switching 3.3v Relay

relay.py

Connect 3.3v Pin (1) from RPI to VCC on Relay

Connect Gnd to Gnd

Connect GPIO BCM pin 4 (actual pin 7) alt text

See vid here for wiring caution shows 5v, wiring is same apart from use 3.3v as above from pin 1

Connect Load to to NO or NC & Common

About

Various Python Scripts for PI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages