Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Sense Pushbutton Presses

Sense Pushbutton Presses

Review and Practice

Self-check

  • In this activity, you:
    • Measured continuity between various combinations of the pushbutton’s pins while it was pressed and not pressed.
    • Looked inside the pushbutton to see how pressing it made the electrical connections change.
    • Examined the functions of the resistors in the pushbutton circuit.
  • Do you understand the continuity inside the pushbutton?
  • Do you understand how the pull-down and pull-up resistors work inside the pushbutton circuits?
  • Were you able to successfully use methods specific to the pushbuttons scripts to manipulate the pushbuttons and LEDs

                                                                           

Questions

  1. Which pushbutton pins are always connected to each other?
  2. When the pushbutton is pressed, what is the voltage through the circuit and why?
  3. What function does a pull down resistor have in a circuit?
  4. Describe “active-high.”
  5. When a pushbutton doesn’t work as expected, what is one of the first things that professionals check?

 

Exercises

  1. In simple terms how would you describe a schematic of a pull-down resistor circuit versus a pull-up resistor circuit?
  2. How does display.off() impact pin 6?
  3. How does pin6.set_pull(pin6.NO_PULL) work within a pushbutton circuit connected to P6?
     

Project

Imagine that you want a light to blink red when nothing is sensed but to stop when an object is present, much like an automatic door opens when you step on a mat, but is closed the rest of the time. Write a script so that your new pushbutton pull-up circuit flashes the red LED without a pushbutton press and turns off when you press the pushbutton.


Printer-friendly version
Active vs Resting States
Prev
Solutions
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress