Page 2
BUMP-SENSOR SEN-BUMP01 1. GENERAL INFORMATION Dear customer, thank you very much for choosing our product. In the following, we will introduce you to what to observe while starting up and using this product. Should you encounter any unexpected problems during use, please do...
Page 3
2. DEVICE OVERVIEW Signal PowerSupply - PowerSupply + When the switch is not activated, a HIGH level is present at the signal pin. When the switch is activated, a LOW level is present at the signal pin and the LED on the board lights up red.
Page 4
3. USE WITH ARDUINO Wiring Connect the sensor to your Arduino as shown in the diagram and table below. BUMP-Sensor Arduino...
Page 5
Example Code In this code example, the status of the sensor is read out every second and displayed in the serial monitor. const SWITCH_PIN = 2; bool switchState = HIGH; //Variable the switch status void setup() { // Initialize the switch pin as an input pinMode(SWITCH_PIN, INPUT);...
Page 6
4. USE WITH RASPBERRY PI Wiring Connect the sensor to your Raspberry Pi as shown in the diagram and table below. BUMP-Sensor Raspberry Pi GND (Pin 6) 3V3 (Pin 1) GPIO17 (Pin 11)
Page 7
Example Code In this code example, the status of the sensor is read out every second and displayed in the console. import RPi.GPIO GPIO import time # Define the GPIO pin number SWITCH_PIN = 17 # Setup GPIO mode GPIO.setmode(GPIO.BCM) # Setup the GPIO pin as input with a pull-up resistor GPIO.setup(SWITCH_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP) try:...
Page 8
Possibility of return in your area: We will send you a parcel stamp with which you can return the device to us free of charge. Please contact us by email at Service@joy-it.net or by telephone. Information on packaging: If you do not have suitable packaging material or do not wish to use your own, please contact us and we will send you suitable packaging.
Need help?
Do you have a question about the BUMP-SENSOR and is the answer not in the manual?
Questions and answers