-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Installation Problems #28
Comments
@GTMux Thanks for reporting this! If you have the complete installation log available, would you mind including it here in the ticket, or as a separate Gist? I think some critical information from the trace may be missing. Lastly, can you provide a little bit of detail about your setup?
Thanks again! |
Hi @erichiggins,
System setup started based on your description (rename, expand etc., update, install bluetooth bluez libbluetooth-dev libudev-dev, cloning project) And than this time it seems to work fine except some warnings concerning missing pre-build resources (please see InstallLog.txt attached). Only the service installation ended with a failure (Log attached). And unfortunately I got an error message in the app on my android tab (SM-T210 Android Version 4.4.2) that no device is connected. The difference between today and the last 5 days of installation trials: I only did: Maybe you have some hints for me to get this running? Thanks for your time! Ralf |
Anyone have any ideas? Thanks and best regards, |
Sorry for the delay (I was traveling for work)! I have some time this weekend to dig into this issue -- I'd first like to see if I can reproduce it. The real solution, I believe, would be for me to provide a ready-to-flash image that has everything installed. That avoids this type of complication. |
Thanks a lot - this would be great. I was close to ask you for an image. :) |
Just a quick update on this: I have made some significant progress on a pre-configured image. It's nearly there, just requires a few more tweaks. Once it's ready, I'll share a link for you to give it a try. If it works for you, I'll update this repo and docs w/ an official link to it. |
Another update: I know it's taking a while -- sorry about that! It's very close now. More context: I'm using a system called buildroot to build a custom SD card image. The manual is long and complex, and it takes a few hours to run a complete build from scratch. So, it's not quite as easy as making a small change then being able to test it quickly. I still have to write the image to an SD card, boot a system, and see if everything is working. It's coming along, but is very, very time-consuming. The two pieces I'm blocked on are:
Thanks for your patience on this. If you happen to have any experience with buildroot, help is always appreciated! |
Hi Eric, thanks for the update. I keep my fingers crossed that you succeed. |
Great news! I just got bluetooth working! |
SUCCESS! I'll share an image file today along with some instructions. It'll help if someone can try it out and make sure it works on their end before I publish it to the world. |
great - would be a pleasure for me to test it! :) |
Test image file can be downloaded here. Please be sure to read all of the following instructions and notes. Please let me know if you have any questions, have any issues, or (hopefully) are able to get it working! Instructions
Notes
|
Quick update: I'm working on another image that addresses some of the missing features that I listed above. Namely:
|
Hi Eric, Thanks for your updates. I downloaded the image, decompressed it, brought it on the SD card using balena etcher with success. Due to the fact that my scale is currently borrowed by a friend I was not able to connect the scale. Currently I can't establish a bluetooth connection and can't find the raspberry via bluetooth. Open trickler app: You are not connected to a device. Is it necessary to connect to a scale first? |
IT WORKS SUPER NICE !!! |
@GTMux From the Android App, you need to connect to the unit. You do not need to pair with the app from your Bluetooth menu/system settings.
I'm pretty sure I demonstrated all of this in my YouTube video. Hope this helps! FWIW: The UI needs some updates to make this all easier based on what we've learned from using it. |
@erichiggins Thanks for the information but this is what I did. The app isn't showing any device. Of course I tapped the button on the bottem-right of the screen a couple of times. :) Maybe because of my old Android Tab. I will try with a newer model in the following days. |
@GTMux That's interesting. A few things come to mind: The Pi won't advertise itself on Bluetooth if it cannot detect the scale. The scale has to be plugged into it, turned on, and correctly configured. Assuming a correct setup on the Pi/Scale, the question is: Is the problem the Pi or the Android app? |
I was having the same issue as GTMux and then noticed only the boot partition was on the sd card. I’m not sure what i am doing wrong. |
@cyclepath37 Which operating system are you using? Windows and Apple computers won't be able to see all three, but the As long as your using the balena etcher program to flash the SD card, it should create the same result. Did you configure your scale using the instructions listed in my article? |
Windows and using balena etcher as suggested. Only showing boot if i etch with or without decompressing. |
@cyclepath37 I'm not familiar with that particular model, so you may want to double check the manual to verify that it's RS232 interface operates the same way. For the sake of this conversation, let's assume it does for now. Potential causes:
I can share another image tomorrow that includes logging, which would help to diagnose these problems more easily. With the image you have, you can configure it to connect to your WiFi then SSH into the Pi and see what's going on, if you're comfortable working with the Linux command line. |
@erichiggins thanks for the updated image. I loaded to two different RPi Zero W's with different brand SD cards (1 16g, the other 32g) both connected to the scale and worked to ready the scale value in the startup are. My issue comes in 2 parts.
|
@Shooter0423 Glad you were able to get them working fairly easily -- now to see if we can figure out some of the issues you've run into. Let's start with the motors not running. The reason I changed the control pin from 15 to 12 was to allow the use of PWM (Pulse Width Modulation) control on the motors. Here's a pin out diagram for the Pi Zero W. Note that physical pin 15 is BCM 22 and physical pin 12 is BCM 18 (PWM 0) You can check if this is the issue you're having pretty easily with two different methods: First, power up the OpenTrickler Pi & scale in the usual way, connect w/ the app, then set a charge weight (like 10.00 gr) and hit the Play button. At this point, the motor should be running. If it's doing nothing, you can check the control pin on the Pi using a multimeter/voltmeter. You should see it turning on/off with approx 3V. If you don't, then check the other pin. The other method you can use is to change the pin setting in the config file. Pull the microSD card out of the Pi and connect it to your computer. You should see a drive called As for the issues you're having with disconnecting... I may need more info for that. There could be a software bug that I can fix. For now, how about we get the motor working first? |
Thanks for the quick response. I had debugged the issue the way you described but the real culprit turned out to be a bad solder joint. So everything is up and running. The Bluetooth connection seem to need more time than I’m allowing, I think that will eliminates the problem, I’ll let you know.
…Sent from my iPhone
On Dec 27, 2019, at 5:37 PM, Eric Higgins ***@***.***> wrote:
@Shooter0423 Glad you were able to get them working fairly easily -- now to see if we can figure out some of the issues you've run into.
Let's start with the motors not running. The reason I changed the control pin from 15 to 12 was to allow the use of PWM (Pulse Width Modulation) control on the motors.
Here's a pin out diagram for the Pi Zero W. Note that physical pin 15 is BCM 22 and physical pin 12 is BCM 18 (PWM 0)
You can check if this is the issue you're having pretty easily with two different methods:
First, power up the OpenTrickler Pi & scale in the usual way, connect w/ the app, then set a charge weight (like 10.00 gr) and hit the Play button. At this point, the motor should be running. If it's doing nothing, you can check the control pin on the Pi using a multimeter/voltmeter. You should see it turning on/off with approx 3V. If you don't, then check the other pin.
The other method you can use is to change the pin setting in the config file. Pull the microSD card out of the Pi and connect it to your computer. You should see a drive called code. On that drive, there will be a folder named opentrickler which has a file named ecosystem.config.js. Open that file with a text editor (NOT a word processor). You can change the MOTOR_PIN setting from 12 to whatever you are using. You may still want to use a multimeter in the same way I described above to verify that it's working as expected.
As for the issues you're having with disconnecting... I may need more info for that. There could be a software bug that I can fix. For now, how about we get the motor working first?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@Shooter0423 Great! If you are able to reproduce the bluetooth issues, go ahead and open a new issue here on GitHub so we can track it separately. @GTMux @cyclepath37 Have either of you had luck getting yours working? |
@erichiggins: thanks for the update. As mentioned I‘m still waiting for the scale. When the scale arrives back at my home I‘ll let you know directly. |
Still stuck. I confirmed the fx & hr202i balance RS232 pins are the same. Does it need the entire breadboard motor circuit connected for the bluetooth to work? I am using an old dandy trickler and haven’t tied it in yet, so i have been trying to connect with just the bare pi zero without the motor circuit. |
Update: I continued to struggle with bluetooth connection loss as many others had also. It would connect, then drop and sometimes take several attempts to reconnect, followed by dropping it again. I ended up ordering a different serial cable. |
Update: |
@Shooter0423 Interesting! Thanks for the update! I'll order one of these cables and try it out, then update the parts list. So happy that the community was able to find a great solution for this one! |
@erichiggins |
I ordered the Cable Creations cable as well and I am no longer experiencing Bluetooth issues. So far it’s been 100% and connecting quickly. Thank you @cyclepath37 & @Shooter0423 !!! Moving forward and starting to build a Dandy style trickler for the system. |
@Datakalu great news, haven't heard any news from @erichiggins about his experience with the new cable. We owe a bit of thanks to @cyclepath37. If you start a new thread about your trickler build, i'll post a couple pictures of a trickler I built out of gray pvc conduit connectors (iirc about $5 maybe $7) and eric's vibro-motor circuit |
I activate stepmotor only when I need need more then 30 grains case (tickDelta > 1499): ... drv8825 working very well :) |
I ordered a new cable, but I'm out of town for work and won't get a chance to try it until tomorrow. Thanks to everyone for sharing their feedback & suggestions, generally helping each other out and being awesome! |
@Shooter0423 Two ways to share your code changes:
Don't hesitate to email me if you need some help. |
@MrMr-No, great idea to put it in as another speed option. I have struggled to keep it from double throwing in shouldGo or startWhenReady. Are you setting up a function for the stepper code and calling it and are you using setIntervals or msleep/usleep. My coding skill with js is poor, any code you want to share will be greatly appreciated. |
From case i calling pythonshell cod and using python to run step motor. First check if requested weight is more then 30 grains then and scale is set to 0 . case (tickDelta > 1499 && this.scale.weight === 0 ) :
PythonShell.run('/home/pi/projects/trickler/peripheral/lib/steper.py', null, function(err) { |
@cyclepath37 I got the new cable -- are you using it with the adapter, or just connected directly to the scale? |
@erichiggins I use the null modem adapter, and I ended up getting a 90degree adapter also since i have my scale pushed up against the wall. StarTech.com Right Angle DB9 to DB9 Serial Cable Adapter Type 2 - M/F (GC99MFRA2) https://www.amazon.com/dp/B001S2PYV4/ref=cm_sw_r_cp_api_i_rVhqEbJXQ41NM |
@cyclepath37 Great setup -- thanks for the photo! |
I've had a chance to try the new cable and it worked great for me! I'll try doing a few rapid reboots today just to verify that it's more stable, but so far so good. |
Hello everyone, first of all thank you for moving this ahead. Really great addition to our hobby.
I can contribute my 3D design skills to this project. Once my system is running I am planing to make a case for RPi and all the components. Anything else you were thinking about? |
@Passaita welcome to the group. You are correct about the cable, definitely buy the cable @cyclepath37 suggested, im not sure if @erichiggins update the list of materials. |
I don't have a powder measure to play with and to be honest I am currently 3D designing powder trickler just for this project as I didn't have one. I know, I know, I am sorry, no comments :) |
My scale arrived today! Will try to connect everything tonight. |
It works!!! |
@Passaita good to hear that thing worked well. I had some of the same issues with the trickler. I built a trickler out of parts on hand but did use the vibro motor listed in the BOM. I rewrote the portion of code that @erichiggins had developed. Eric had set me up a discussion thread for PWM control, I didn't have much success in that area but that thread might be a place to continue this discussion and keep this thread focused on installation. By the why, what powder are you using, i'm using Tac and Varget, a ball powder and a stick powder. You said the pipe may be to long, the pipe I built is 6" long made of the aluminum tube spec'd in the build list. My thought was the hole I drilled may be to big and causing the pipe to clog. And lastly, when you say it to slow, what amount of time are you referring, with Tac I get a charge at the target weight in 20 secs 95% of the time. I load in blocks of 100 as a match is 69 rnds or 88 rnds (20 rnds for record x3 or 4 and sighters as allowed) so if the throw is +/-0.02gr it gets used but put in the front row and get used for foulers or something not in the match. |
There is following response from Datakalu and I want to say that I have made similar modifications. I have moved the motor instead of the weight and it gives different results on flow, speed and accuracy. |
Brilliant! |
@Datakalu very nice looking trickler |
Hey everyone! I've updated the instructions on the main README to reflect the work that was done here to use ready-to-flash images. I've also added links to two new images: production and dev. Notable changes:
With that said, I think this ticket can finally be closed out. Please feel free to open a new ticket if you experience issues with the latest images! |
Hey everyone! I created a Discord to make it easier for folks who are building an Open Trickler to chat with and support each other. This invite link expires in 1 day to keep out spammers, but feel free to email me directly and I'd be happy to invite you! |
This project is great! And I would love to bring it in our shooting club for these people who like accurate reloads. Unfortunately I'm not able to get the RPi Zero running due to problems during the installation process:
.
.
.
.
npm install
make: Entering directory '/home/pi/node_modules/bluetooth-hci-socket/build'
CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
In file included from ../src/BluetoothHciSocket.cpp:8:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
...
...
...
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.75+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/bluetooth-hci-socket
gyp ERR! node -v v10.17.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
The text was updated successfully, but these errors were encountered: