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
#55
Quote: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??

Sorry for taking up your time on this while I did not remember all the details right. I made a big switch box in order to be able to switch back to the good old trusty Neco control box for redundancy reasons. The switch box is already quite big and complicated. It switches the power, the main coil, the shunt coil and serial coil, the clutch coil, the end of travel switches and the rudder angle back and forth between the PyPilot and the Neco control box. I could not easily change to where and when the end of travel switches short to while keeping the Neco control box operational as well. Changing the code was easier than more wiring. Now that I started 3d printing everything, I will make a new separate rudder position sensor as well as separate end switches for the Pypilot, and keep the old end switches and rudder position sensor wired permanently to the Neco control box. It will be great for redundancy and simplicity of the switch box, and I will get to keep your original code.


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

Running this in the terminal gives me: "python3: can't open file 'setup.py': [Errno 2] No such file or directory"

I also tried typing "sudo apt-get install python3"
It gives me this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.

I then tried to upgrade to python 3.9.5. following instruction here: https://itheo.nl/install-python-3-9-on-raspberry-pi

When I get to: "sudo update-alternatives --config python"

It says: "update-alternatives: error: no alternatives for python"

Then I follow the troubleshooting part and: nano ~/.bashrc
But there is nothing that looks like "alias python=/usr/bin/python-3.8" in the file.

I think I am thrown a bit off course, or am I not? I am a newbie to the Linux ecosystem.
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 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)