- that's 11, 16, 18 and 22 but 11 and 22 are already being used by Colin, so we have 2 more 16, 18, which is a good start. What about the other LCD display pins - can they be used as GPIO as well or are they limited to the MOSI/MISO used elsewhere in the Portsdown ?
Incidentally, why do we still need I, Q and the IQ filter select? There is no IQ in the Pluto/Langstone? Compatibility with the older version?
I think I will use the shutdown LED pin for my yellow LED - using it as an error signal might be useful and shouldn't interfere with the standard running.
The PTT LED can share pin 40. Leaving something like this? The order of the IO is a bit strange but probably doesn't matter.
I have added 4 extra band bits to the code on pins 16, 18, 19 and 21 as you suggested.
The band bits setting code has been changed so that you can set each bit individually.
Use the left and right mouse button to select the relevant bit which will show in green. Turn the tuning knob to change from 0 to 1.
It appears to work on the screen but I have not checked that the actual outputs are being set. Maybe you could check that.
Works perfectly. I tested a few bands. A bit tedious as my relays are inverted, so I edited the config file after that to set them all to 255 rather than 0. Then went through band by band. All good. Checking the config file all OK. I find editing the config file is easier than going through the Gui but that's probably just me. The binary nature of the setting is quite intuitive. It might be worth having a sensible initial default setting,
However, I have noticed a problem with my mouse rotary encoder bounce so it was quite hard to set 0 or 1 consistently. I don't know if you are doing any de-bouncing but it might help. Might just be the encoder I have. Not sure if others have seen that..
Here is the relay card I am using. Prices have risen considerably, they are now over £6, but it's still cheaper than making your own.
Glad to hear it is working.
Any debouncing of the encoder should be done by the mouse controller. All it sends to the GUI is a value indicating the number of clicks. If it is bouncing then I would have thought it wouldn’t work very well as a mouse scroll wheel. Mine seems to work fine.
I could probably change the code so that turning any number of clicks clockwise set the bit to 1 and any number anti-clockwise set it to 0. That might make setting a bit easier.
The default setting is for each of the 12 bands to be encoded as a binary number from 0 to 11. That fits in with the use of a decoded switch board such as the BATC one.
As you say for multiple bands it is probably easier the edit the config file.
Has the middle button been scrapped - I ask as Im planning my 'front panel' and intend to use a DPCO switch to change the data lines over from external mouse to internal mouse PCB wired to encoder and switches.
ANyone see a flaw in this thinking? Do I need to fit a '3rd button' atall??