Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Beaglebone Python Programming
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Beaglebone Python Programming

Learning Beaglebone Python Programming

By : Alexander C Hiam
close
close
Learning Beaglebone Python Programming

Learning Beaglebone Python Programming

By: Alexander C Hiam

Overview of this book

If you have experience with the Python language and are interested in getting started with electronics, then BeagleBone Black is the perfect platform for you and this book will provide you with the information you need.
Table of Contents (14 chapters)
close
close

Potentiometers

Another option for user input is to use the ADC to read the position of a potentiometer. Let's revisit some of the things you learned in Chapter 4, PWM and ADC Subsystems, to make our program a bit more interesting.

For this circuit, you will need:

  • Breadboard
  • 2x potentiometers
  • 1x 5 mm LED
  • 1x CdS photocell (also known as photoresistor / light-dependant resistor / LDR)
  • 2x 10 kΩ resistor
  • 1x 4.7 kΩ resistor
  • 1x 68 Ω resistor
  • 1x 2N3904 NPN transistor
  • 1x LM358 (or similar rail-to-rail op-amp)
  • Jumper wires

Put it all together on your breadboard, as shown in the figure:

Potentiometers

This circuit might look a lot more complicated than what we've done so far, but really it's just a combination of a few of the earlier circuits. The only difference is the configuration of the op-amp.

Here it is being used to buffer the output of a 2:1 voltage divider across the 3.3 V rail, which creates a 1.65 V reference voltage. Let's take a look at the following diagram:

Potentiometers

This 1.65 V reference...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Beaglebone Python Programming
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon