Some general
This commit is contained in:
@@ -8,12 +8,6 @@ Use adafruit servokit to manage the servos through the external board.
|
|||||||
Enable the I2C module for the rasberry pi.
|
Enable the I2C module for the rasberry pi.
|
||||||
Install the package and initialize with
|
Install the package and initialize with
|
||||||
|
|
||||||
```python
|
|
||||||
from adafruit_servokit import ServoKit
|
|
||||||
kit = ServoKit(channels=16)
|
|
||||||
kit.servo[0].angle = 180
|
|
||||||
```
|
|
||||||
|
|
||||||
```text
|
```text
|
||||||
https://pinout.xyz/ Full pinout for the rpi3
|
https://pinout.xyz/ Full pinout for the rpi3
|
||||||
https://components101.com/sites/default/files/component_datasheet/SG90%20Servo%20Motor%20Datasheet.pdf Datasheet for the servomotor used
|
https://components101.com/sites/default/files/component_datasheet/SG90%20Servo%20Motor%20Datasheet.pdf Datasheet for the servomotor used
|
||||||
@@ -23,7 +17,7 @@ https://ben.akrin.com/raspberry-pi-servo-jitter/ Blog post how to fix jittering
|
|||||||
Local address
|
Local address
|
||||||
inet6 fe80::7e2c:ada5:5de7:9a2c/64
|
inet6 fe80::7e2c:ada5:5de7:9a2c/64
|
||||||
|
|
||||||
## Cables
|
## Cables on the rpi
|
||||||
|
|
||||||
From right to left
|
From right to left
|
||||||
|
|
||||||
|
|||||||
5
justfile
5
justfile
@@ -1,10 +1,9 @@
|
|||||||
default: sim
|
default: sim
|
||||||
|
|
||||||
sim:
|
sim:
|
||||||
|
@echo "Starting the simulation!"
|
||||||
uv run python simulation.py
|
uv run python simulation.py
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@echo "Try to run all the tests."
|
||||||
uv run python -m unittest discover -v
|
uv run python -m unittest discover -v
|
||||||
|
|
||||||
sync:
|
|
||||||
rsync -r --exclude=venv ~/solarmotor guest@hahn1.one:
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "solarmotor"
|
name = "solarmotor"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
description = "Add your description here"
|
description = "Binary to simulate mirrors"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|||||||
Reference in New Issue
Block a user