@ExplainingComputers
  @ExplainingComputers
ExplainingComputers | GPIO for any PC or Laptop: Adafruit FT232H @ExplainingComputers | Uploaded March 2023 | Updated October 2024, 5 days ago.
Add GPIO to any PC or laptop running Windows, Linux or macOS using an Adafruit FT232H USB breakout board. Here we set things up, control some LEDs using Python code, and then communicate over I2C with a BME280 temperature, pressure and humidity sensor.

The Bmax B1 Plus video I refer to is here:
youtube.com/watch?v=UGcWLgAk5kA

The Adafruit FT232H GPIO breakout is available from many retailers including:

Amazon.com: amzn.to/3kJ19zi
Amazon.co.uk: amzn.to/3kHBabC
Adafruit (US): adafruit.com/product/2264
Pimoroni (UK): shop.pimoroni.com/products/adafruit-ft232h-breakout-general-purpose-usb-to-gpio-spi-i2c

Note that the above Amazon URLs are affiliate links from which I earn a commission.

Adafruit’s excellent setup instructions for their FT232H breakout are here: learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/setup

You can download my LED test code here:
explainingcomputers.com/sample_code/LED_Test.py

And my final BME280 code that writes data to a spreadsheet is here:
explainingcomputers.com/sample_code/Sensor_Spreadsheet.py

Note that the above BME280 code expects to find a spreadsheet called Weather.xlsx in the folder Python_Code -- you will need to edit the code to point it to whatever location you put this file in. A blank Weather.xls spreadsheet can be found at: explainingcomputers.com/sample_code/weather.xlsx

More information on using openpyxl to store sensor readings (or any other data) in a spreadsheet using Python is contain in my Raspberry Pi Weather Station video:
youtube.com/watch?v=ChQpD2gsC20

The exact BME280 sensor used in the video is available from Pimoroni here: shop.pimoroni.com/products/bme280-breakout

Note that, as mentioned in the video, to use the above Pimoroni sensor with the Adafruit CircuitPython library, you will need to edit the file called basic.py found in the adafruit_bme280 folder to change the I2C address from 0x77 to 0x76 (or you could cut the connection on the top of the BME280 module to change its address to 0x77). If you use an Adafruit BME280 module, then this change is not needed. :)

For additional ExplainingComputers videos and other content, you can become a channel member here:
youtube.com/channel/UCbiGcwDWZjz05njNPrJU7jA/join

More videos on computing and related topics can be found at:
youtube.com/@explainingcomputers

You may also like my ExplainingTheFuture channel at: youtube.com/@explainingthefuture

Chapters:
00:00 Introduction
01:05 GPIO Options
05:29 Setup
22:33 LEDs Test
14:22 Sensor Readings (BME280)
18:27 Wrap

#GPIO #FH232H #Adafruit #explainingcomputers
GPIO for any PC or Laptop: Adafruit FT232HFydeOS: ChromiumOS with Android, Linux & no Google!Quantum Computing 2022 UpdateRaspberry Pi Pico: Inputs & Servo ControlArgon One M.2 Raspberry Pi 4 CaseSetting Up a Raspberry PiTesting a $100 Mini PC: The Bmax B1 PlusRaspberry Pi Pico LCD ProjectsInstalling Windows 11 on Unsupported HardwareLinux for an x86 TabletBest Value Ryzen PC BuildRISC-V NAS: BPI-F3 & OpenMediaVault

GPIO for any PC or Laptop: Adafruit FT232H @ExplainingComputers

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER