2018-12-04, 01:16 PM
(2018-12-02, 03:20 PM)seandepagnier Wrote:(2018-11-29, 05:40 PM)ddelorme Wrote: Question:
Is there a reason why the buff is set to 128 as below
This device has 2k of ram, so 128 here doesn't matter. it is on the stack anyway, but 32 as you say should be just fine, but the result is the same.
Quote:the general idea is have the Arduino send nmea to rpi via nrf24l01 when rpi gets request to change state of anchor light send 2 byte code to arduino that then changes state of pin controlling mosfet for anchor light and or some other task like change adjustment for wind vane.
Not sure having this complication is needed for an anchor light. What about just having a switch that can apply 0, 6 or 12 volts up the mast? The anchor light only works with 12 volts (LEDS) but the arduino runs on either.
In my initial concept I wanted to reduce the wires going up the mast. The control unit/arduino and light are one unit with the wind instrument plugged into it.. Granted the mofset just removes one wire.
Besides it is fun to pull out my phone and turn my anchor light on and off when i drank to much to find my boat at a strange marina. So no it is not critical for the Anchor light and if it breaks i will have to haul up a lantern.
I got the radio sending a nmea strings from the wind instrument and openPlotter receiving them with no timeouts.
I need to sort out how to write this out to kplex from the Rpi. So far I am having issues I need to sort out the socket stuff. I have a NMEA string "$ARMWV,325.35,R,0.00,N,A*2c" but I am having issues with sending the nmea string to a UDP port on localhost?