OpenMarine
LCD Display - 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: LCD Display (/showthread.php?tid=3093)

Pages: 1 2 3 4 5 6 7 8 9


RE: LCD Display - Andreas29 - 2020-11-19

Hi,

@CapnKernel: I´ll mount my IMU-module as you describe and with x-axis points to the direction of the boat. This works here at home on the table at it´s best.

Regards

Andreas


RE: LCD Display - Jean-Marc Douroux - 2020-11-20

Hi,
The IMU works in 3D and fortunately because the Earth's magnetic field is closer to the vertical than to the horizontal (60 degrees here). The most important thing is to calibrate the vertical correctly so that the calculation of the compass heading is correct. With Pypilot, level calibration is easy and the heading is correct in all conditions.


RE: LCD Display - seandepagnier - 2020-11-21

the advantage of aligning the compass is that pitch and roll are not interchanged and the compass gives absolute readings. For relative compass heading which is good enough to hold a course, only level alignment is needed.


RE: LCD Display - Onno - 2020-11-24

"The backlight from display is powered by 3,3V and is dimmed down with a 2,5k resistor. This is ok for night viewing and not to bright."

Would it be possible to use a/the setting in the menu for the blacklight from a GPIO?
And I would like to have a red light burning when AUTO is active?


RE: LCD Display - seandepagnier - 2020-11-24

the backlight does not turn on and off with auto, it is a user set pwm modulated value and on or off based on the light sensor.


RE: LCD Display - rastam4n - 2020-11-24

(2020-11-24, 11:19 PM)seandepagnier Wrote: the backlight does not turn on and off with auto, it is a user set pwm modulated value and on or off based on the light sensor.

I think he is asking for 2 things. 
1. to turn the backlight on it off - doable with a toggle switch or rotary potentiometer to make it adjustable
2. To add a red light so when AP is activated there is an indicator. I think this would require a bit of code. But would work with a LED and a resistor?


RE: LCD Display - xfactor99 - 2020-11-25

(2020-11-24, 11:38 PM)rastam4n Wrote:
(2020-11-24, 11:19 PM)seandepagnier Wrote: the backlight does not turn on and off with auto, it is a user set pwm modulated value and on or off based on the light sensor.

I think he is asking for 2 things. 
1. to turn the backlight on it off - doable with a toggle switch or rotary potentiometer to make it adjustable
2. To add a red light so when AP is activated there is an indicator. I think this would require a bit of code. But would work with a LED and a resistor?
Hi all,
I think you have a "engage/cluch" pin at the arduino wich can be used for a LED to show if the AP is engaged.
Save sailing
Andreas


RE: LCD Display - Andreas29 - 2020-11-25

Hi,

here´s (https://github.com/McNugget6750/pypilot-motor-electronics/blob/master/Motor.pdf) a shematic from one possibility to build a motorcontroller. You can see there´s a Pin (D7) witch can be used for a LED.

It´s possible to use PWM for the backlight and I think there´s a GPIO Pin free for using it. But my direction was a very easy way and I didn´t want a "Auto"Backlight. I just set the backlight once. First I use a trim potentiometer and after once set to the right point I see that was 2,5kohm so I use this value.

Best regards

Andreas


RE: LCD Display - Onno - 2020-11-25

(2020-11-24, 11:19 PM)seandepagnier Wrote: the backlight does not turn on and off with auto, it is a user set pwm modulated value and on or off based on the light sensor.
Thanks for the reply's!

I have a separate Motorcontroller and Tinypilot and would not like to ad extra switches or potentiometers.

Yes i mean 2 different things.

First the backlight,
I have now seen the baklight setting in the menu that is where I was looking for!
Which GPIO gives the PWM?
I could also be interested in the light sensor I do not see it in the schematics?

Second I would like to have a led burning when AUTO is active (not in standby) 
We could use a GPIO that pulls up? with resistor and led  attached?


RE: LCD Display - seandepagnier - 2020-11-25

I believe it's pin 9 of the arduino on the hat, so it's not controlled by the pi directly.

For an LED, you can do this with either pi or arduino but it's not implemented in the code directly at this time.

https://pypilot.org/schematics/pypilot_tinypilot.pdf