Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Beaglebone Python Programming

You're reading from   Learning Beaglebone Python Programming Unleash the potential of BeagleBone using Python

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781784399702
Length 196 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alexander C Hiam Alexander C Hiam
Author Profile Icon Alexander C Hiam
Alexander C Hiam
Arrow right icon
View More author details
Toc

Driving higher currents from GPIO pins

We just calculated that a 68 Ω resistor will give us the maximum forward current from a 3.3 V supply, but when we hooked up the LED to the 3.3 V GPIO pin earlier, we used a 330 Ω resistor. This is because the GPIO pins of BeagleBone's processor are only rated to source a maximum current of 4-6 mA. Using a 330 Ω resistor gives 1.3 V / 330 Ω = 3.9 mA.

There are a few ways we can source more current than the 4-6 mA maximum of the GPIO pins; one simple way is to use an NPN Bipolar Junction Transistor (BJT).

For this circuit, you will need:

  • Breadboard
  • 1x 5 mm LED
  • 1x 4.7 kΩ resistor
  • 1x 68 Ω resistor
  • 1x 2N3904 NPN transistor
  • Jumper wires

Wire it up on your breadboard as shown here:

Driving higher currents from GPIO pins

Note

If you have a resistor kit like the one from SparkFun (https://www.sparkfun.com/products/10969) you might not have a 68 Ω resistor handy. If this is the case, you can use one 220 Ω resistor in parallel with one 100 Ω resistor...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image