IoT Sensors Input/Output Challenge

Linear SoftPot

Sensor

We used a Softpot Touch Sensor connected to P0 on the micro:bit. This sensor detects touch and gives a number between 0 and 1023, depending on where it is touched.

Outputs

The LED matrix on the micro:bit shows a line that changes position based on the touch sensor’s input. Since the LED display has 5 columns, we used Math.map() to change the sensor’s values (0-1023) into a 0-4 range so the line appears in the right column.

What We Learned

How It Works

Links

Buttons

Sensor

Button P1: Cycles forward through colors.

Button P2: Cycles backward through colors.

Outputs

We can use the button to switch between the different animations.

What We Learned

How It Works

Links

Make Code

GitHub

Servo

Sensor

We used multiple sensors in our micro:bit project, including Bluetooth for wireless commands, buttons for manual control, a sound sensor to detect loud noises, and an accelerometer to recognize tilting gestures. Each sensor provides input that the micro:bit processes to control outputs like servos, LEDs, and sound.

Outputs

The micro:bit responds in different ways depending on the input:

What We Learned

General

Programming Interface

How It Works

Links

Make Code

GitHub