# Raspberry Pi Pedal for Youtube

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/097/306/medium800thumb/sensors_ezgif.com-optimize%283%29.jpg?1606754672)

Need a little more incentive to meet your exercise goals on a stationary bike?&nbsp; With Adafruit Blinka and a Raspberry Pi 4, you can use a Bluetooth BLE cadence sensor to play YouTube videos only when you are pedaling above a target RPM value.

**This project does not require any soldering or wiring or even modification to your stationary bike - the sensor can be taped onto the bottom of the pedal, and the Raspberry Pi reads the cadence data over wireless Bluetooth!**

The code is easily adjustable, you can add goals, HIIT pacing, even turn it around so you have to pedal harder to _stop_ yourself from watching disgusting videos!

![](https://cdn-learn.adafruit.com/assets/assets/000/097/358/medium800/sensors_PXL_20201201_224939879.NIGHT.jpg?1606868814)

Just hook your Pi to a TV with a Micro HDM to HDMI cable and get pedaling!

## Parts
### Raspberry Pi 4 Model B - 4 GB RAM

[Raspberry Pi 4 Model B - 4 GB RAM](https://www.adafruit.com/product/4296)
The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 4 better than the 3? How about a&nbsp;_faster_ processor, USB 3.0 ports, and updated Gigabit Ethernet chip with...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4296)
[Related Guides to the Product](https://learn.adafruit.com/products/4296/guides)
![Angled shot of Raspberry Pi 4](https://cdn-shop.adafruit.com/640x480/4296-11.jpg)

Info: 

### Micro HDMI to HDMI Cable - 2 meter

[Micro HDMI to HDMI Cable - 2 meter](https://www.adafruit.com/product/1322)
Connect an HDMI device with a micro HDMI port to one with a regular size HDMI port together with this basic HDMI cable. It has nice molded grips for easy installation, and is 2 meter long (about 6 feet). This is a HDMI 1.3 cable. Works great with a BeagleBone or Raspberry Pi 4  
  
<img...></img...>

In Stock
[Buy Now](https://www.adafruit.com/product/1322)
[Related Guides to the Product](https://learn.adafruit.com/products/1322/guides)
![Coiled, 2 meter long, black, micro HDMI to HDMI cable.](https://cdn-shop.adafruit.com/640x480/1322-05.jpg)

### Official Raspberry Pi Foundation Raspberry Pi 4 Case - Red White

[Official Raspberry Pi Foundation Raspberry Pi 4 Case - Red White](https://www.adafruit.com/product/4301)
Keep your Raspberry Pi® 4 Model B&nbsp;computer safe and snug in this solid ABS acrylic enclosure. Y[ou can even pick up an official case fan + heatsink kit](https://www.adafruit.com/product/4794) to super-charge your Pi 4 projects and keep them cool even under computational...

In Stock
[Buy Now](https://www.adafruit.com/product/4301)
[Related Guides to the Product](https://learn.adafruit.com/products/4301/guides)
![Partially assembled Red and whit Raspberry Pi Foundation Raspberry Pi 4 Case. ](https://cdn-shop.adafruit.com/640x480/4301-03.jpg)

### Official Raspberry Pi Power Supply 5.1V 3A with USB C

[Official Raspberry Pi Power Supply 5.1V 3A with USB C](https://www.adafruit.com/product/4298)
The official Raspberry Pi USB-C power supply is here! And of course, we have 'em in classic Adafruit black! Superfast with just the right amount of cable length to get your Pi 4 projects up and running!

Best for use with Pi 4 series, [Pi...](https://www.adafruit.com/product/5814)

In Stock
[Buy Now](https://www.adafruit.com/product/4298)
[Related Guides to the Product](https://learn.adafruit.com/products/4298/guides)
![Angled shot of Official Raspberry Pi Power Supply 5.1V 3A with USB C with Power plug facing down. ](https://cdn-shop.adafruit.com/640x480/4298-04.jpg)

### Part: Wahoo RPM Cycling Cadence Sensor, Bluetooth/ANT+ 
quantity: 1
Other Bluetooth Low Energy Cadence Sensors may also work
[Wahoo RPM Cycling Cadence Sensor, Bluetooth/ANT+ ](https://www.amazon.com/Wahoo-Cycling-Cadence-Sensor-Bluetooth/dp/B00L9XNFPY/)

- [Next Page](https://learn.adafruit.com/raspberry-pi-pedal-for-youtube/install-the-cadence-sensor.md)

## Featured Products

### Raspberry Pi 4 Model B - 4 GB RAM

[Raspberry Pi 4 Model B - 4 GB RAM](https://www.adafruit.com/product/4296)
The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 4 better than the 3? How about a&nbsp;_faster_ processor, USB 3.0 ports, and updated Gigabit Ethernet chip with...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4296)
[Related Guides to the Product](https://learn.adafruit.com/products/4296/guides)
### Micro HDMI to HDMI Cable - 2 meter

[Micro HDMI to HDMI Cable - 2 meter](https://www.adafruit.com/product/1322)
Connect an HDMI device with a micro HDMI port to one with a regular size HDMI port together with this basic HDMI cable. It has nice molded grips for easy installation, and is 2 meter long (about 6 feet). This is a HDMI 1.3 cable. Works great with a BeagleBone or Raspberry Pi 4  
  
<img...></img...>

In Stock
[Buy Now](https://www.adafruit.com/product/1322)
[Related Guides to the Product](https://learn.adafruit.com/products/1322/guides)
### Official Raspberry Pi Foundation Raspberry Pi 4 Case - Red White

[Official Raspberry Pi Foundation Raspberry Pi 4 Case - Red White](https://www.adafruit.com/product/4301)
Keep your Raspberry Pi® 4 Model B&nbsp;computer safe and snug in this solid ABS acrylic enclosure. Y[ou can even pick up an official case fan + heatsink kit](https://www.adafruit.com/product/4794) to super-charge your Pi 4 projects and keep them cool even under computational...

In Stock
[Buy Now](https://www.adafruit.com/product/4301)
[Related Guides to the Product](https://learn.adafruit.com/products/4301/guides)
### Official Raspberry Pi Power Supply 5.1V 3A with USB C

[Official Raspberry Pi Power Supply 5.1V 3A with USB C](https://www.adafruit.com/product/4298)
The official Raspberry Pi USB-C power supply is here! And of course, we have 'em in classic Adafruit black! Superfast with just the right amount of cable length to get your Pi 4 projects up and running!

Best for use with Pi 4 series, [Pi...](https://www.adafruit.com/product/5814)

In Stock
[Buy Now](https://www.adafruit.com/product/4298)
[Related Guides to the Product](https://learn.adafruit.com/products/4298/guides)
### 16GB Card with NOOBS 3.1 for Raspberry Pi Computers including 4

[16GB Card with NOOBS 3.1 for Raspberry Pi Computers including 4](https://www.adafruit.com/product/4266)
NOOBS 3.1&nbsp;is the fastest way to have a variety of operating systems on your Pi. Available on a 16G card, you can now boot multiple OS's such as Raspbian, Pidora, RaspBMC, Snappy Ubuntu, etc. There's a boot up menu for selecting which one you like.&nbsp; **This card has NooBs...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/4266)
[Related Guides to the Product](https://learn.adafruit.com/products/4266/guides)
### Raspberry Pi 4 Model B - 2 GB RAM

[Raspberry Pi 4 Model B - 2 GB RAM](https://www.adafruit.com/product/4292)
The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 4...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4292)
[Related Guides to the Product](https://learn.adafruit.com/products/4292/guides)

## Related Guides

- [Raspberry Pi Care and Troubleshooting](https://learn.adafruit.com/raspberry-pi-care-and-troubleshooting.md)
- [Adafruit 9-DOF Orientation IMU Fusion Breakout - BNO085](https://learn.adafruit.com/adafruit-9-dof-orientation-imu-fusion-breakout-bno085.md)
- [CLUE Sensor Plotter in CircuitPython](https://learn.adafruit.com/clue-sensor-plotter-circuitpython.md)
- [Raspberry Pi I2C Clock Stretching Fixes](https://learn.adafruit.com/raspberry-pi-i2c-clock-stretching-fixes.md)
- [Mini Mac Pi](https://learn.adafruit.com/mini-mac-pi.md)
- [Smart Bathroom App](https://learn.adafruit.com/smart-bathroom-app.md)
- [Adafruit LSM9DS1 Accelerometer + Gyro + Magnetometer 9-DOF Breakout](https://learn.adafruit.com/adafruit-lsm9ds1-accelerometer-plus-gyro-plus-magnetometer-9-dof-breakout.md)
- [Plantagotchi: PyBadge Plant Monitor](https://learn.adafruit.com/plantagotchi-pybadge-plant-monitor.md)
- [No-Code Offline Data Logger with WipperSnapper](https://learn.adafruit.com/no-code-offline-data-logging-with-wippersnapper.md)
- [Easy NeoPixel Graphics with the CircuitPython Pixel Framebuf Library](https://learn.adafruit.com/easy-neopixel-graphics-with-the-circuitpython-pixel-framebuf-library.md)
- [DOOM on Fruit Jam](https://learn.adafruit.com/doom-on-fruit-jam.md)
- [Raspberry Pi Low-Light Long-Exposure Photography](https://learn.adafruit.com/raspberry-pi-hq-camera-low-light-long-exposure-photography.md)
- [Face Mask Efficacy Testing with SCIENCE!](https://learn.adafruit.com/raspberry-pi-camera-vision-face-mask-efficacy-testing.md)
- [CircuitPython Libraries on any Computer with FT232H](https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h.md)
- [Adafruit Bonsai Buckaroo](https://learn.adafruit.com/adafruit-bonsai-buckaroo.md)
- [Robotic AI Bear using ChatGPT](https://learn.adafruit.com/robotic-ai-bear-using-chatgpt.md)
