Your shopping cart is empty!
Octopus Analog Rotation Brick OBARot
- Brands Elecfreaks Code: BRK-VR
Octopus Electronic Bricks, you can use them to build electronics projects just as easy as piling bricks. By using Octopus electronic bricks, you may connect Arduino/Freaduino compatible boards easily with various digital, analog, and I2C/UART interfaces. These the breadboard-less firm connection are prepared to extensive modules like potentiometers, sensors, relays, servos even buttons, just plug and play.
Octopus Analog Rotation Brick is Arduino and micro:bit compatible and can be rotated up to 300-degree. It is based on the potentiometer. With the Arduino IO expansion board, in combination, it can be very easy to achieve position-dependent interaction with the rotating effect or produce a MIDI instrument.
As the connector is SVG, this module/brick is compatible with:
Hardware Connection:
Connect to the P1 port on sensor:bit.
Programming:
Click the "Advanced" selection in the Makecode to check more coding selections.
We need to add a package for the coding. Click "Add package" from the bottom of the page and search"Tinker-kit" in the dialog box, then download the equivalent package.(Pointed by the red arrows below)
Code:
Program links: https://makecode.microbit.org/_2hr1UMdcp0uj
Results:
Rotate the button on the sensor clock-wisely, then the led on the micro:bit lights on gradually; Oppositely, the led lights off one by one.