In this article you will find out what a push button sensor is and how to use it
DESCRIPTION
Push button sensor is the simplest and the most accessible of all kinds of sensors. By clicking on it, a signal is sent to the controller, leading to different actions: LEDs turn on, sounds are made, motors start. Push button sensor is Lego and Arduino compatible.
Technical description:

– Size (L*W*H): 40x24x24
– Lego compatible body
– The button registers a push and, depending on the state, changes the state of the signal output (1\0)
– Working voltage: from 5V
– Connector for connecting to another device: XH 3pin

Functionality when connected to the RED X controller:

Changes the state of the signal output when the button is pressed.

Push button sensor connecting scheme

Program example
*Physically, if the push button sensor connected to port D2 detects pressure, then the servomotor connected to port D1 rotates by zero degree, otherwise the servomotor rotates by 180 degrees.

Technical support

red.help@r-ed.world

Technical support in Telegram

© R:ED – Robotics Education. All rights reserved