Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for G&G JJ100B scale #7

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 60 additions & 3 deletions opentrickler_config.ini
Original file line number Diff line number Diff line change
@@ -1,57 +1,114 @@
[general]
verbose = False

verbose = true





[bluetooth]

name = Trickler





[scale]

# See the SCALES variable in scales.py for options.
model = and-fx120

model = gg-jj100b

port = /dev/ttyUSB0
baudrate = 19200

baudrate = 9600

timeout = 0.1





[motors]

trickler_pin = 18

trickler_max_pwm = 100

trickler_min_pwm = 32

#servo_pin =





[leds]

# https://gpiozero.readthedocs.io/en/stable/recipes_advanced.html#controlling-the-pi-s-own-leds

status_led_pin = 47

active_high = False

enable_status_leds = True

ready_status_led_mode = pulse

running_status_led_mode = on

done_status_led_mode = fast_blink





[PID]

# Higher Kp values will:

# - decrease rise time

# - increase overshoot

# - slightly increase settling time

# - decrease steady-state error

# - degrade stability

Kp = 10

# Higher Ki values will:

# - slightly decrease rise time

# - increase overshoot

# - increase settling time

# - largely decrease steady-state error

# - degrade stability

Ki = 2.3

# Higher Kd values will:

# - slightly decrease rise time

# - decrease overshoot

# - decrease settling time

# - minorly affect steady-state error

# - improve stability

Kd = 3.75

# Enable for use with pidtuner.com

pid_tuner_mode = False

Loading