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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no communication rpi nano
#1
rpi 4, pypilot latest update, 3.5 inch touchscreen gpio, motor ino set to vnh2sp30: ina to D2, inb to D3, pwm D9, rudderfeedback D4=D5=ground so 5 volt setting for hallsensor, hydraulic 24 volt steering pump
I had everthing running on the workbench. The clone arduino nano 328 with the read and transmit leds blinking (usb connect) and a 18 volt electro motor running with pwm both directions{surrogate for the hydraulic pomp}.
Then a last update openplotter-pypilot before placing the compoments in the ship. And now on board there is no communication between rpi 4 nano 328p (old bootloader) just power on led.
So i buy a new one nano red 168p. this time uploaded both with motor ino '2021 Sean D'Epagnier' pwm 2 style. 
lsusb:
 PL2303 serial port =GPS
Hl-340 USB-Serial adapter =nano clone
VIA Labs is mini wireless keyboard with touchpath
rpi configuration ssh/vnc/ i2c/ serial port enabled, rest disabled as is bluetooth. None /disengaged in autopilot control
I use usb port, have try other usb cables. Usb is superior ?? or  must I use board pins TX RX in the latest motor ino? 
           
Reply
#2
The 'update openplotter-pypilot' part is prime suspect as far as I'm concerned. Last time I looked into openplotter pypilot 2.1.1 (edit: I just did), it installed a really old version of pypilot.

Check your pypilot version; if it is not 0.34, reinstall pypilot from github *). If it is, disable pypilot, run pypilot_servo at the prompt and share the output with us.

*) Or, alternatively, install openplotter-pypilot 2.2.0 from github and run it; this will install a recent version of pypilot, as described here.
Reply
#3
Tnx for quick response. It gives releave . I will print the text and the howtoo update and give it a new try on board.
Reply
#4
Lightbulb 
It's a good and relatively easy habit to make a copy of the Openplotter SD card before updates. I have one of these permanently in a USB slot, and make an SD card copy every now and then. Should anything mess up, it's easy to swap cards and you're back in business.
[Image: 179355156-bb193ea1-8683-4139-a0aa-fa8df943e2ec.png]
Reply
#5
have try to do as suggested. Deleted map pypilot and follow https://github.com/pypilot/pypilot.
In menu Openplottor no submenu pypilot. 
pi@openplotter:~ $ pip3 freeze
Adafruit-Blinka==7.3.0
adafruit-circuitpython-ads1x15==2.2.13
adafruit-circuitpython-bme280==2.6.11
adafruit-circuitpython-bmp280==3.2.13
adafruit-circuitpython-bmp3xx==1.3.10
adafruit-circuitpython-busdevice==5.1.8
adafruit-circuitpython-HTU21D==0.11.4
adafruit-circuitpython-ina260==1.3.4
adafruit-circuitpython-register==1.9.8
adafruit-circuitpython-typing==1.7.0
Adafruit-PlatformDetect==3.22.1
Adafruit-PureIO==1.1.9
asn1crypto==0.24.0
Babel==2.6.0
bidict==0.22.0
blinker==1.4
certifi==2018.8.24
chardet==3.0.4
Click==7.0
colorama==0.3.7
colorzero==1.1
cryptography==2.6.1
cupshelpers==1.0
decorator==4.3.0
entrypoints==0.3
Flask==1.0.2
Flask-Babel==0.11.2
Flask-SocketIO==5.0.0
gevent==21.12.0
gevent-websocket==0.10.1
gpiozero==1.5.1
gps==3.19
greenlet==1.1.2
idna==2.6
ifaddr==0.1.6
importlib-metadata==4.12.0
itsdangerous==0.24
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.0
numpy==1.16.2
olefile==0.46
openplotterDashboards==2.2.3
openplotterGpio==2.3.2
openplotterI2c==2.2.1
openplotterNetwork==2.1.5
openplotterOpencpnInstaller==2.2.3
openplotterSerial==2.2.3
openplotterSettings==2.9.1
openplotterSignalkInstaller==2.4.2
pexpect==4.6.0
pgzero==1.2
picamera==1.13
pigpio==1.44
Pillow==5.4.1
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
pyftdi==0.54.0
pygame==1.9.4.post1
pyglet==1.5.26
PyGObject==3.30.4
pyinotify==0.9.6
PyOpenGL==3.1.0
pyOpenSSL==19.0.0
pypilot==0.34
PyRIC==0.1.6.3
pyserial==3.4
pysmbc==1.0.15.6
python-apt==1.8.4.2
python-engineio==4.3.2
python-socketio==5.6.0
pytz==2019.1
pyudev==0.21.0
pyusb==1.2.1
PyWavefront==1.3.3
pyxdg==0.25
reportlab==3.5.13
requests==2.21.0
rpi-ws281x==4.3.4
RPi.GPIO==0.7.0
RTIMULib==8.1.0
scipy==1.1.0
SecretStorage==2.3.1
simplejson==3.16.0
six==1.12.0
spidev==3.4
ssh-import-id==5.7
sysv-ipc==1.1.0
typing-extensions==4.2.0
ujson==1.35
urllib3==1.24.1
w1thermsensor==2.0.0
websocket-client==1.3.2
Werkzeug==0.14.1
wxPython==4.0.4
zeroconf==0.21.3
zipp==3.8.1
zope.event==4.5.0
zope.interface==5.4.0
pi@openplotter:~ $

Alldo i am used to distro mint, this kind of console acrobat is one step to far. Unless someone tell me what is wrong I go back to backup openplotter version 2.
,
Reply
#6
Pypilot 0.34 looks good! I did not know you could get that with pip freeze. You're almost there. Try installing openplotter-pypilot 2.2.0 following the link I gave:

Code:
git clone https://github.com/pypilot/openplotter-pypilot
cd openplotter-pypilot/
sudo python3 setup.py install
openplotter-pypilot


Attached Files Image(s)
   
Reply
#7
    [quote=[attachment=1843] ironman pid='23251' dateline='1658006146'][attachment=1843]Pypilot 0.34 looks good! I did not know you could get that with pip freeze. You're almost there. Try installing openplotter-pypilot 2.2.0 following the link I gave:

Code:
git clone https://github.com/pypilot/openplotter-pypilot
cd openplotter-pypilot/
sudo python3 setup.py install
openplotter-pypilot
Thx I am there! the Nano is reacting, with bad fuses but it is just hanging on the usbcable (no grounding unused pins, no voltage motor). In serial the HL-340 usb-serial on the nano as ttyAMAO is  nmea to pypilot assigned. Must be right because arduino is in [attachment=1843]     autopilot control. Opencpn does not see gps, I have navionics on a tablet, so i want first a working autopilot on the rpi.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)