This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pypilot working on my Nicholson 44
#54
(2021-05-30, 07:07 AM)Kris Wrote: Thank you so much for your help! I will be back with the results on the PWM clutch soon.

I am pairing this Pypilot installation with the Neco drive that already has built-in end switches and a rudder position potentiometer. The end switches short out when the end of travel is reached, so they work just the other way than your code was written. I have deleted the exclamation mark in your code as follows:

Altered code:re
It is normal for the switch to short at end of travel. You should short the pin to gnd so it goes low when the switch is closed and the internal pullup keeps it high when open. i'm not sure how you wired it, but I don't think you want to change the code since there are not internal pulldowns, or at least you are complicating the design with external resistors.

Unless you mean your switch is normally closed and only opens at end of travel??
(2021-05-30, 04:18 PM)Kris Wrote: Traceback (most recent call last):
  File "/usr/local/bin/pypilot_client", line 11, in <module>
    load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot_client')()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 383, in main
    msg = client.receive_single(.1)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 207, in receive_single
    line = self.receive_line(timeout)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 172, in receive_line
    return self.receive_line(timeout - dt)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 158, in receive_line
    raise Exception('invalid message from server:', line)
Exception: ('invalid message from server:', 'invalid request: set unknown value: servo.clutch_pwm')

Uninstalling and reinstalling Pypilot did not solve the issue.

You have to run "sudo python3 setup.py install" twice
Reply


Messages In This Thread
Pypilot working on my Nicholson 44 - by xfactor99 - 2019-04-03, 06:19 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2020-12-14, 10:31 AM
RE: Pypilot working on my Nicholson 44 - by Kris - 2020-12-15, 11:59 AM
RE: Pypilot working on my Nicholson 44 - by Kris - 2020-12-15, 02:24 PM
RE: Pypilot working on my Nicholson 44 - by wdee - 2020-02-08, 08:05 PM
RE: Pypilot working on my Nicholson 44 - by mlvg - 2020-04-04, 04:51 PM
RE: Pypilot working on my Nicholson 44 - by mlvg - 2020-04-05, 12:41 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-05-23, 03:42 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-05-24, 05:40 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-05-25, 02:01 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-05-30, 04:18 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-05-30, 07:07 AM
RE: Pypilot working on my Nicholson 44 - by seandepagnier - 2021-05-30, 04:57 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-06-01, 01:32 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-06-01, 09:34 PM
RE: Pypilot working on my Nicholson 44 - by Kris - 2021-06-04, 12:07 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)