Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Analog_Inputs.py
Battery_Monitor.py
Controller_PWM.py
Fan_Speed.py
IMU.py
LED_Lights.py
ReadMe.md
Remote_Decoder.py
Remote_to_Controller.py
Tachometer.py

ReadMe.md

Python Samples

This directory includes Python samples for Turta RC Driver HAT.

Index

  • Analog_Inputs.py: Demonstrates reading analog inputs.
  • Battery_Monitor.py: Demonstrates measuring battery Voltage.
  • Controller_PWM.py: Demonstrates using PWM outputs on controller port.
  • Fan_Speed.py: Demonstrates setting fan speed according to CPU temperature.
  • IMU.py: Demonstrates reading 3D gyro and acceleration data.
  • LED_Lights.py: Demonstrates controlling LED lighting.
  • Remote_Decoder.py: Demonstrates reading remote controller PWM channels from an RC receiver.
  • Remote_to_Controller.py: Demonstrates transferring RC remote inputs to steering servo and ESC.
  • Tachometer.py: Demonstrates reading vehicle speed using tachometer inputs.

Running the Python Samples

  • Copy the sample code to your Raspberry Pi.
  • Install the libraries with 'pip3 install turta-relayhat2' command.
  • Run the sample with 'python3 <Sample_Name>.py' command.
  • Exit from the sample using CTRL+C or ^C key.

Documentation

Visit docs.turta.io for documentation.

You can’t perform that action at this time.