It's easy enough to work out the pinouts for the LCD display and the IMU from the schematic. I haven't yet been able to work out the pinouts for the 5- or 6-button waterproof keys.
GPIO 17 = AUTO (Autopilot Standby/ON)
GPIO 27 and GPIO 22 = 1 degree +/- (Configures as smallstep)
GPIO 5 and GPIO 6 = 10 degree +/-(Configured as bigstep)
GPIO 23 = Menu (swiches through menues to navegate in the menue use buttens 1dregree +/-)
GPIO 18 = Select (I don´t use/not working for me, if ther is a value to confirm it works pressing Menue GPIO 23 again)
Use buttens that are normaly off and switch a moment on.
Wire all buttens against ground.
it is also suggested to put a resistor in series with each switch. This is even safer than a single resistor shared to ground for all the switches and prevents shorting the pins if the wrong software is loaded and the pins are set to output.
There are 7 keys for the normal control, but I'm considering adding additional keys to an arduino which communicates to the raspberry on the spi port.
(2019-12-21, 03:50 AM)seandepagnier Wrote: it is also suggested to put a resistor in series with each switch. This is even safer than a single resistor shared to ground for all the switches and prevents shorting the pins if the wrong software is loaded and the pins are set to output.
There are 7 keys for the normal control, but I'm considering adding additional keys to an arduino which communicates to the raspberry on the spi port.
Hi,
just made a prototype board with 5 switches.......
Are the buttons and nokia display are only used for TINYPILOT or can I also connect the switch pad and Nokia display also to Raspberry 3 with OPENPLOTTER?
Which image should I use with OPENPLOTTER and PLUGIN of Pypilot?
(2019-12-21, 03:50 AM)seandepagnier Wrote: it is also suggested to put a resistor in series with each switch. This is even safer than a single resistor shared to ground for all the switches and prevents shorting the pins if the wrong software is loaded and the pins are set to output.
There are 7 keys for the normal control, but I'm considering adding additional keys to an arduino which communicates to the raspberry on the spi port.
Hi,
just made a prototype board with 5 switches.......
Are the buttons and nokia display are only used for TINYPILOT or can I also connect the switch pad and Nokia display also to Raspberry 3 with OPENPLOTTER?
Which image should I use with OPENPLOTTER and PLUGIN of Pypilot?
It is possible to use this interface with openplotter as well. You should run the pypilot_lcd service. It should be supported by openplotter 2.0: https://github.com/pypilot/openplotter-pypilot
Hi,
I would like to use the 7 buttons as you have described, but it doesn’t work with "Big step" GPIO 5+6. When I looked into README it shows only 5 buttons. I am using the Tinypilot image tinypilot_21122019
README
inputs:
gpio buttons (physical 11 12 13 15 16)
ir remote using /dev/lirc0
keyboard (glut only)
Hi Frank
the readme is not actual.
Check the code in the file lcd.py and you see.
look at the lines 162.163.270 or arroud that.
there is were the gpio pins are defined ....
greetings
andreas
Thank you Anderas for quick answer. Just a stupid question, which editor could I use or how to I get to the editor.
I come from Sun Solaris....and retired for 10 years ago....
Thank you
Frank
2020-01-14, 02:27 PM (This post was last modified: 2020-01-14, 02:43 PM by xfactor99.)
Hi Frank
you can use any editor ... in tynypilot you can use the nano editor
go to the folder with lcd.py
and type "nano lcd.py" or "or sudo nano lcd.py".
it is easyer as you yust want to look use my link in an post above
and just view the code at github in your broeser.
hope this helps .... i'm also only an amateur in this ...