New IMU BerryGPS-IMUv4 - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: New IMU BerryGPS-IMUv4 (/showthread.php?tid=3480) |
RE: New IMU BerryGPS-IMUv4 - cortinaman - 2022-02-10 (2022-02-09, 02:38 PM)Sailoog Wrote: To fix that you have 2 options: Thanks, I will try that while waiting for OP3. Yes, serial is default for the berrygps, you are correct that I2C requires soldering jumpers and python script. I got both the IMU and magnet to respond over I2C the first try before I messed up, but not the gps. I'm installing it on top of a PICAN-M, I believe this excludes serial? RE: New IMU BerryGPS-IMUv4 - Sailoog - 2022-02-10 You could use berryGPS by serial as long as you do not connect anything to the NMEA 0183 input in the PICAN but you could use the berryGPS and the PICAN NMEA 0183 output at the same time. I do not have any of these devices so this is all guesswork... RE: New IMU BerryGPS-IMUv4 - cortinaman - 2022-02-14 (2021-07-12, 11:39 AM)Mark_OzzMaker Wrote: Below is what I did to get it working. (2022-02-10, 01:50 PM)Sailoog Wrote: You could use berryGPS by serial as long as you do not connect anything to the NMEA 0183 input in the PICAN but you could use the berryGPS and the PICAN NMEA 0183 output at the same time. Update successful, but following the procedure above now breaks pypilot. Starting fresh again and keeping a closer eye on where it fails: Install latest starting image -> OK Setting up system (country, language, keyboard, wifi etc.) sudo apt-get update --allowreleaseinfo-change -> OK Enable I2C Install latest OP packages (signalk, I2C, pypilot) from OP settings, OP settings updated as part of process -> signalk OK -> i2c OK, able to add pressure/temperature sensor and send to signalk -> pypilot OK, opens from Openplotter menu -> IMU not detected by pypilot (as expected at this stage) Continuing procedure above (skipping step 1 as already updated) step 2 to 9 -> OK, pypilot opens from OP menu -> IMU not detected by pypilot (as expected at this stage) Continuing step 10 - 16 -> pypilot no longer available from menu Reinstall pypilot from OP installer -> OK, pypilot opens from OP menu -> IMU not detected by pypilot (as expected at this stage) Conclusion 1: The python commands step 10 - 16 above breaks pypilot, incompatible after Raspi Buster update? Conclusion 2: Wait for OPv3, hoping BerryGPS-IMU v4 is supported in new version of pypilot For the gps I would prefer to get the I2C and gpsd route working, I plan on connecting an external gps to PICAN-M NMEA 0183 interface as secondary source. Cheers RE: New IMU BerryGPS-IMUv4 - seandepagnier - 2022-02-15 a quick search shows the LSM6DSL. It should be supported although this is not the usual sensor. I tested and the gyroscope has a higher noise level than icm20948/mpu9255 so I would prefer that sensor if possible instead. What does i2cdetect -y 1 show? RE: New IMU BerryGPS-IMUv4 - cortinaman - 2022-02-15 (2022-02-15, 03:43 AM)seandepagnier Wrote: a quick search shows the LSM6DSL. It should be supported although this is not the usual sensor. I tested and the gyroscope has a higher noise level than icm20948/mpu9255 so I would prefer that sensor if possible instead. 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- 42 -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- -- 70: -- -- -- -- -- -- -- 77 Where from BerryGPS-IMU v4 documentation: 0x1c = LSM6DSL accelerometer (not detectable from pypilot, even after procedure above and reinstalling pypilot) 0x1e = LIS3MDL magnetometer (not detected by i2cdetect above) 0x42 = GPS chip (this is a whole other kettle of fish) 0x6a = LSM6DSL gyro (not detectable from pypilot, even after procedure above and reinstalling pypilot) 0x77 = BM388 pressure/temperature sensor (these are visible in i2c app and connected to signalk) RE: New IMU BerryGPS-IMUv4 - seandepagnier - 2022-02-16 Which version of rtimulib2 is installed? It should detect it. Can you stop all pypilot processes and services and perhap install rtimulib2 from source and run the basic drive demo? It could be something very simple like the sensors set to the secondary address or something like that. It should be supported. try single stepping RTIMUSettings::discoverIMU in gdb especially line 213: } else if (result == LSM6DS33_ID || result == LSM6DSL_ID || result == ISM330DHCX_ID) { and check the value of "result" RE: New IMU BerryGPS-IMUv4 - cortinaman - 2022-02-16 (2022-02-15, 01:30 PM)cortinaman Wrote:(2022-02-15, 03:43 AM)seandepagnier Wrote: a quick search shows the LSM6DSL. It should be supported although this is not the usual sensor. I tested and the gyroscope has a higher noise level than icm20948/mpu9255 so I would prefer that sensor if possible instead. (2022-02-16, 12:46 AM)seandepagnier Wrote: Which version of rtimulib2 is installed? It should detect it. Can you stop all pypilot processes and services and perhap install rtimulib2 from source and run the basic drive demo? Sorry, my mistake. I was mistaken about the i2c adresses, 0x1e should not be there. Correct addresses are:
This time I checked on pypilot after each step, after step 14 pypilot detected the imu and magnetometer so I stopped.
Maybe it's time to clone the sd card before I continue with gps and PICAN-M. RE: New IMU BerryGPS-IMUv4 - Surfer2010 - 2022-02-20 cortinaman I was more worried about pypilot being broken, so I started from scratch again. This time I checked on pypilot after each step, after step 14 pypilot detected the imu and magnetometer so I stopped.
does not work, no idea why or what to do RE: New IMU BerryGPS-IMUv4 - BlackSea - 2022-02-20 (2022-02-20, 10:54 AM)Surfer2010 Wrote: cd RTIMULib2/Linux/ are you sure you have executed this Quote:2. sudo apt-get install libqt4-dev cmake -y RE: New IMU BerryGPS-IMUv4 - Surfer2010 - 2022-02-20 (2022-02-20, 12:30 PM)BlackSea Wrote:(2022-02-20, 10:54 AM)Surfer2010 Wrote: cd RTIMULib2/Linux/ ok that did the trick. executed all stepts up to 14, rebooted but no change. Pypilot still does not recognize the MPU9250 |