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

Start Up Log/Status Indicator #30

Closed
Shooter0423 opened this issue Jan 5, 2020 · 10 comments
Closed

Start Up Log/Status Indicator #30

Shooter0423 opened this issue Jan 5, 2020 · 10 comments
Labels
enhancement New feature or request trickler Issues relating to the open-source trickler project

Comments

@Shooter0423
Copy link

Have a questions about the new image, and a question about an Improvement?

  1. New image allows for changing password, restoring network security as before?
  2. With the log file I can see 3 status situations that have to be true to work correctly. A) TRICKLER, B) SCALE and C) BT. I found 3 variables that are set to TRUE, TRICKLER_READY, BT_READY, TRICKLER.scale.ready when ready. I assume the event handles can detect when they are changed to TRUE. If 3 additional pins (7, 13, 18) where defined in ecosystem.config.js and their OUTPUT set to HIGH when the variables are set to TRUE then we can know without looking at the log that things are good. I know real estate is at a premium on the perma-proto bonnet but 3 leds (and accompanying resistors) could be added to give a visual indicator. And maybe we need a variable SCALE_READY to keep the coding looking consistent?
@erichiggins
Copy link
Contributor

Thanks for the suggestions!

New image allows for changing password, restoring network security as before?

You can actually already change the root password now, if you wish, by running the passwd command on the Pi.

Example terminal output (as run from an OSX or Linux computer):

$ ssh root@opentrickler.local

root@opentrickler.local's password: ....
# passwd

Changing password for root
New password: 
Retype password: 
passwd: password for root changed by root

But your point is still a good one. The production image will likely just disable logging into the device entirely to help lock it down, but I'll also offer a development image for the tech savvy folks who want to tinker.

I know real estate is at a premium on the perma-proto bonnet but 3 leds (and accompanying resistors) could be added to give a visual indicator.

The status LEDs are a good idea! If that's something you want toprototype on yours, I can assist you with the code portion. If you can get it working well, then we can incorporate it into the project!

The more community support for features like this, the easier it is for me to maintain and focus on other things. The goal of Ammolytics isn't just to design and support DIY projects for free 😂

@Shooter0423
Copy link
Author

Shooter0423 commented Jan 5, 2020 via email

@erichiggins erichiggins added enhancement New feature or request trickler Issues relating to the open-source trickler project labels Jan 12, 2020
@Shooter0423
Copy link
Author

I have had success with implementing status LED's. 3 led's and current limiting resistor fit pretty easily on the perma-proto bonnet. I edited the ecosystem.config.js file to declare the pin assignments and modified the index.js file in the "lib" subfolder to initialize the pin LOW and then set to HIGH when TRICKLER_READY is TRUE, TRICKLER.scale.ready is TRUE and BT_READY. Currently this only indicates what happened at startup and is not checked afterwards.

@erichiggins
Copy link
Contributor

@Shooter0423 Great! If you'd like to create a pull request and some wiring advice, I can review and add it to the project for others to benefit from!

@ande7824
Copy link

Hi Eric,
I have everything working with your alpha image, but the trickler is severely overshooting (0.2-0.5gr) for each fill. I can't seem to edit the motor.js file because its listed as ready only. However I am logged in as root and the permissions seem to show that I have read and write permissions. Can you help me out? I can't figure out what I am missing.

I am editing with vim and through putty.

Thank you

@erichiggins
Copy link
Contributor

@ande7824 The OpenTrickler code that lives on the CODE partition is read-only from the perspective of the Pi. This is intentional for a few reasons, but mainly so that nothing about the Pi can alter change the code that needs to be run.

If you remove the SD card and put it into your computer, you will be able to modify it. That is the intended approach, since you can make changes on your computer then copy them over to the SD card to test. This way, if you happen to wipe the SD card by accident, you'll still have a backup.

Regarding overshooting, I have two suggestions:

  1. Prime the trickling tube on your OpenTrickler
    The goal here is to get powder into the tube so that trickling happens at a consistent rate. I like to set my usual target weight through the app then place an empty pan onto the scale. This will cause the OpenTrickler to run at it's fastest speed first, priming the tube, and eventually slowing down until it reaches the target weight.
  2. Adjust the trickler angle
    The angle of your powder trickler plays a significant role in tuning both the speed and precision of the OpenTrickler. Too steep towards the pan and it will trickle too fast, causing over-pours. Too shallow and it will run very, very slowly. Especially for the last few kernels of powder.
    Same as before: Set the usual target weight and keep filling the pan, adjusting things as necessary, until you get a few perfect throws in a row.

I have to make minor angle adjustments on mine when switching between H4350 and Varget, which are both stick powders that look nearly identical. They sure don't trickle identically though.

@ande7824
Copy link

Hi Eric- great suggestions that I hadn't even thought of from the physical trickler setup perspective.

I did try to modify the SD card files but Windows keeps saying I need to format the card :/. I may just try reflashing it with some speed changes and try to standardize the angle and initial priming process to see if I can get things to improve. Thanks for the great blog post and quick reply!

@TQBCPC
Copy link

TQBCPC commented Sep 13, 2020

I have had success with implementing status LED's. 3 led's and current limiting resistor fit pretty easily on the perma-proto bonnet. I edited the ecosystem.config.js file to declare the pin assignments and modified the index.js file in the "lib" subfolder to initialize the pin LOW and then set to HIGH when TRICKLER_READY is TRUE, TRICKLER.scale.ready is TRUE and BT_READY. Currently this only indicates what happened at startup and is not checked afterwards.

@Shooter0423 Shooter0423 what resistors and LED did you use?

@erichiggins, can you update the SD Card image with this feature?

@erichiggins
Copy link
Contributor

Quick note about this ticket. It's pretty easy to control the built-in LED on the trickler. My question is, what would make sense for using it for status? A pre-defined series of blinks? Solid vs blinking? Pulsing? Fast vs slow blinking? A combo of all of these?

@erichiggins
Copy link
Contributor

I've updated the trickler to change the built-in LEDs with status. This behavior can be changed/modified, and other LEDs can be used simply by modifying the included opentrickler_config.ini file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request trickler Issues relating to the open-source trickler project
Projects
None yet
Development

No branches or pull requests

4 participants