Skip to content

Latest commit

 

History

History
312 lines (208 loc) · 14.2 KB

hardware_installation.md

File metadata and controls

312 lines (208 loc) · 14.2 KB

Back to README.md

Table of Contents

Parts List

Display

Connection board for MIP Reflective color LCD to FRDM-K64F (MIP Interface Board) is also needed

Pros&Cons

  • (good) very visible even in direct sunshine

  • (good) ultra-low power consumption

  • (good) backlight

  • (bad) very expensive ($170, Alternatives: $100~)

  • (bad) 8 colors only (but can use more colors with dithering)

  • Recommend if you don't think costs. Commercial products often uses a reflective LCD.

Alternatives:

Pros&Cons

  • (good) very visible
  • (good) ultra-low power consumption
  • (good) not expensive ($45)
  • (good) fast drawing
  • (bad) no backlight
  • (bad) 2 colors only
  • Recommend if you think costs. I think it's better than PiTFT and E-ink displays.

PiTFT 2.4 (OBSOLETE)

Pros&Cons

  • (good) easy to assemble and test
  • (bad) hard to see in direct sunshine

E-ink display (OBSOLETE)

Pros&Cons

GPS module

UART modules with GPSd are recommended. I2C(Sparkfun qwiic or Adafruit STEMMA QT) modules are supported experimentally.

  • UART, I2C(Sparkfun qwiic) and SPI
  • an antenna is also needed
  • stable and low power consumption
  • recommended as of 2020/6.
  • UART and I2C
  • an antenna is also needed
  • BMP390 and IMU(LSM6DS/LIS3MDL) are included
  • best replacement for Enviro pHAT
  • magnetic sensor is broken...? (All the two modules I have are not working properly.)
  • UART and I2C
  • an antenna is also needed with Gmm slice model. L80 slice model can use an internal or external antenna.
  • MS5637(pressure) and IMU(BNO055) are included
  • UART
  • easy to get in Tokyo (buy at Akihabara)
  • cheap and low power consumption

PA1010D GPS

  • UART

I2C sensors

Adafuit circuitpython library is required or original drivers are available. Refer to learing page of each sensors.

If you use Sparkfun Qwiic or Adafruit STEMMA QT sensors, SparkFun Qwiic SHIM for Raspberry Pi is very useful for connecting sensors.

Pressure, temperature

for altitude, grade, and total ascent/descent

IMU

The accelerometer is used for stop detection when using GPS. The magnetometer is used in compasses.

Light

for auto backlight when using MIP Reflective color LCD

Multi sensors

  • Environment Sensor HAT
    • BME280 (Pressure, temperature and humidity)
    • ICM20948 (Accel / Gyro / Mag)
    • TSL25911FN (Light)
    • LTR390 (UV)
    • SGP40 (VOC:volatile organic compounds)

Button

This is essential for displays without buttons, like MIP displays.

Battery

get battery percent, etc.

ANT+ USB dongle

  • available in eBay or aliexpress
  • also need micro USB OTG Adapter : like adafruit adapter.
  • ANT+ USB dongle + USB OTG Adapter

SD card

Case

  • make a nice case if you can use 3D printer.
  • Topeak SMARTPHONE DRYBAG 5" is easy to use. It is waterproof.
    • If you attach the PiTFT directly to the Raspberry Pi Zero, you can use Topeak SMARTPHONE DRYBAG for iPhone 5 which is smaller than Topeak SMARTPHONE DRYBAG 5".
    • On the other hand, if you want to put some sensors in, Topeak SMARTPHONE DRYBAG 6" is better.

Hardware Assembly

Using many pHATs can be bulky, so it's best to use one pHat only. It's essential to make it compact.

Here are two assembly examples.

Displays with pHAT headers (PiTFT or E-ink displays)

see hardware_installation_pitft.md as PiTFT(obsolete) example.

Displays without pHAT headers (MIP Reflective color LCD and SHARP Memory Display)

It's quite difficult, but the hardware configuration is better than PiTFT.

Adafruit SHARP Memory Display

  • top left: Raspberry Pi Zero WH
  • top right: PiJuice Zero
  • central left: Adafruit SHARP Memory Display
  • center: GPS module
  • central right: DFRobot BMP160(IMU) and BMP388(pressure and temperature)
  • bottom left: Button SHIM
  • bottom right: SparkFun Qwiic SHIM for Raspberry Pi

Connect the Raspberry Pi Zero to the display. Note that the connection between Raspberry Pi and SHARP Memory Display is different from the Adafruit tutorial.

Name Raspberry Pi SHARP Memory Display Breakout MIP Interface Board
GND IO25 GND CN1-4
VCOMSEL IO11 EXTIN CN2-3
DISP IO13 DISP CN1-9
CS IO16 CS CN1-8
3.3V IO17 VIN CN1-6
SPI MOSI IO19 MOSI CN1-7
SPI SCLK IO23 SCLK CN1-5

for backlight (MIP Interface Board)

Name Raspberry Pi MIP Interface Board
LEDPWM IO12 CN2-1
VBUS-5V IO02/04 CN3-5
BL2-CTRL IO06/09/14/20/25/34/39 CN4-3

Reference:

Every time you connect, it is good idea to check the module with the sample program to make sure it works.

Connect the GPS module and Qwiic SHIM for Raspberry Pi.

Fix the parts with screws.

Finally, connect the battery for the PiJuice Zero.

MIP Reflective color LCD module 2.7" w/ backlight (LPM027M128C)

Here is another example.

  • Raspberry Pi Zero WH
  • MIP Reflective color LCD module 2.7" w/ backlight (LPM027M128C)
  • Adafruit SHARP Memory Display Breakout
  • MAX-M10S Ultra Low Power GNSS receiver with SMA connector
  • SparkFun 9DoF IMU Breakout
    • ISM330DHCX(Accel / Gyro)
    • MMC5983MA(Mag)
  • SparkFun BMP581
  • SparkFun Qwiic SHIM for Raspberry Pi
  • Pimoroni Button SHIM
  • ANT+ USB dongle

Bicycle mounting

Attach the case to the handlebar and connect it to a battery in a top tube bag. There is no switch, so the pizero_bikecomputer will start the moment you connect the battery.

bike-01.png

Back to README.md