barnaclebill
SKSignal K
•Created by jimseng on 11/16/2024 in #questions
Signalk on Pi Zero 2w install hangs.
+1 @Scott Bender ; you can do it but it takes a while. You might want to check your swap settings and allocate more swap on SD card because it swaps like mad during the install. Once it's running it works better. I think I once installed OS and SK on an SD card in a Pi4 and transferred it to Zero and that worked, if my memory isn't faulty.
4 replies
SKSignal K
•Created by motamman on 10/17/2024 in #sensors
motamman - I posted this on the Arduino group b...
However, I'm not a hardware engineer so I'm just repeating what I've read about.
6 replies
SKSignal K
•Created by motamman on 10/17/2024 in #sensors
motamman - I posted this on the Arduino group b...
It could. There's some documentation on using multiple I2C devices here: https://learn.sparkfun.com/tutorials/i2c/all
If you have multiple devices and your total pull-up resistance is too high, at the very least you will have issues (like timeouts) on the bus. I doubt this would affect a BME280...it's a very simple device and doesn't need the bus very frequently. But an IMU is a completely different story.
6 replies
SKSignal K
•Created by motamman on 10/17/2024 in #sensors
motamman - I posted this on the Arduino group b...
Since you have two I2C devices, did you remove the pull-up resistor from one of them? (Can provide more detail if this is new to you).
The MPU9250 has been discontinued for while. You might want to try a newer module like the ICM20948. I have used
[this](https://github.com/jremington/ICM_20948-AHRS)
library successfully and the author still maintains it.
I didn't look into the details of your library, but it's possible that it's implementing a Mahony or Madgwick algorithm that relies on precise timing to calculate how long the gyro has sensed rotation. With several devices, you might need to use a dedicated ESP task.
The delay() in your loop might also be messing up timing (although unlikely to cause a hang). I would consider using [ReactESP](https://github.com/mairas/ReactESP)
instead.6 replies
SKSignal K
•Created by barnaclebill on 9/14/2024 in #sensesp
barnaclebill - Has anyone found an accurate com...
Would the SK Autopilot plugin make a display unnecessary?
8 replies
SKSignal K
•Created by barnaclebill on 9/14/2024 in #sensesp
barnaclebill - Has anyone found an accurate com...
The drift does not go away. I have made several compasses based on that chip (Bosch BNO085, same in CMPS14). It's a great chip for consumer electronics but not particularly good for heading. This weekend I found this repo: https://github.com/jremington/ICM_20948-AHRS and made a compass based on that IMU, which seems to be working much better. It's one of the IMUs that is recommended for Pypilot. Calibration is fairly simple and based on a sketch and some python processing code. Unlike the CMPS14, there's no fusion code, hence the need for the Mahony library.
8 replies
SKSignal K
•Created by barnaclebill on 9/3/2024 in #plugins-and-webapps
barnaclebill - Is there a plugin that will allo...
OK, thank you. I will investigate that.
7 replies
SKSignal K
•Created by barnaclebill on 9/3/2024 in #plugins-and-webapps
barnaclebill - Is there a plugin that will allo...
(Instead of sending on CAN bus, send to serial.)
7 replies
SKSignal K
•Created by barnaclebill on 9/3/2024 in #plugins-and-webapps
barnaclebill - Is there a plugin that will allo...
I could use SK->N2K plugin, but I don't know whether the destination can be configured (for that or any other plugin).
7 replies
SKSignal K
•Created by barnaclebill on 9/3/2024 in #plugins-and-webapps
barnaclebill - Is there a plugin that will allo...
I'm trying to send data directly from RPI/SK to ESP32 using a serial link. The ESP32 is the reader. So it doesn't really matter what format as long as it's something I can interpret simply on the ESP32.
7 replies
SKSignal K
•Created by barnaclebill on 8/8/2024 in #questions
inject data?
Agreed the FAQ should maybe be more visible...all this time I didn't know it existed! Thanks.
18 replies
SKSignal K
•Created by Runar on 8/3/2024 in #questions
CAN works, then don't!
Try "ifconfig can0" and see if you are getting RX or TX errors.
5 replies
SKSignal K
•Created by Runar on 8/3/2024 in #questions
CAN works, then don't!
I've had this happen on CAN HATs that are dying.
I recommend opening a shell and trying "candump can0".
That will tell you if the interface itself is still up and receiving data.
Then try "dmesg | grep can" to see if you're getting any errors. When this happened to me I was getting SPI bus errors on the interface, which was a sign the HAT was bad.
You can also try "sudo ifconfig can0 down" and then "sudo ifconfig can0 up". That might help but isn't a permanent fix.
5 replies
SKSignal K
•Created by Blaise on 7/31/2024 in #questions
optocoupler question
Presumably it's a diesel? I used a CT and an amplifier to make a tachometer/engine hour meter for my outboard, but it's a bit harder to get to the spark plugs on a diesel 🙂
If the optocoupler doesn't work out, you might want to consider a Hall Effect sensor. It might be able to detect the magnetism from the alternator directly, or you could take the more typical approach and attach a magnet to the shaft.
15 replies
SKSignal K
•Created by Blaise on 7/31/2024 in #questions
optocoupler question
Where are you measuring? What provides V+?
15 replies
SKSignal K
•Created by Blaise on 7/31/2024 in #questions
optocoupler question
Is optocoupler output voltage linear with respect to input? Does it work like a voltage divider? Or is it binary?
15 replies