https://github.com/autorope/donkeypart_sombrero
Custom donkey car hat with power switch, pwm and leds.
https://github.com/autorope/donkeypart_sombrero
Last synced: 2 months ago
JSON representation
Custom donkey car hat with power switch, pwm and leds.
- Host: GitHub
- URL: https://github.com/autorope/donkeypart_sombrero
- Owner: autorope
- License: mit
- Created: 2018-11-11T18:09:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T08:57:36.000Z (almost 7 years ago)
- Last Synced: 2025-04-25T15:11:46.609Z (6 months ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Donkey Car Sombrero
=======
A Rasperry Pi hat for the Donkey Car that provides a few helpful features.* The power for the Raspberry Pi comes from the RC car battery.
* A single power switch turns on the car and the pi.
* The PWM controller ins included.
* 3 GPIO pins are accessable.
* 2 LEDS to indicate stasues.## Install
1. Install the part library.
```bash
pip install git+https://github.com/autorope/donkeypart_sombrero.git
```2. Import Sombrero at the top of your manage.py script.
```python
from donkeypart_sombrero import Sombrero
```3. Update your car's mangae.py script to use the Sombrero instead of the
other steering and throttle actuators. This section should look like this..```python
sombrero = Sombrero(
steering_channel=cfg.STEERING_CHANNEL,
steering_left_pwm=cfg.STEERING_LEFT_PWM,
steering_right_pwm=cfg.STEERING_RIGHT_PWM,
throttle_channel=cfg.THROTTLE_CHANNEL,
throttle_forward_pwm=cfg.THROTTLE_FORWARD_PWM,
throttle_stop_pwm=cfg.THROTTLE_STOPPED_PWM,
throttle_reverse_pwm=cfg.THROTTLE_REVERSE_PWM
)
V.add(sombrero, inputs=['angle', 'throttle'])
```