The connector to the left of the switch IC shows a 5V power connection; if the data signal exceeds the 3.3V supply to the switch it will almost certainly malfunction.
You may need a resistive divider first to keep the signal within a suitable voltage range.
Hi D,
1st, Do you agree with 'I' that this switch isn't suitable or is it ok?
Before connecting the HC-12 radio and GPS to the 2x INPUTs, I tested the switch and it switched ok.
With both modules connected and running:
When switched to the GPS, it looks as if the HC-12 is not connected.
When switched to the HC-12 the GPS both signals appear at the PIC INPUT PIN.
The connector to the left of the switch IC shows a 5V power connection; if the data signal exceeds the 3.3V supply to the switch it will almost certainly malfunction.
You may need a resistive divider first to keep the signal within a suitable voltage range.
After re-reading a few times.... If the MAX4644 hasn't a proper pullup on pin 1 the relay may be chattering.... I would like to see what a scope shows..
Hi D,
1st, Do you agree with 'I' that this switch isn't suitable or is it ok?
Before connecting the HC-12 radio and GPS to the 2x INPUTs, I tested the switch and it switched ok.
With both modules connected and running:
When switched to the GPS, it looks as if the HC-12 is not connected.
When switched to the HC-12 the GPS both signals appear at the PIC INPUT PIN.
I personally don't see an obvious issue with using that switch.
But cameraart is right. If your gps is putting 5V into the switch and the switch is being powered by 3.3V, the ESD clamp diodes will conduct and possibly cause the behaviour you are seeing.
I personally don't see an obvious issue with using that switch.
But cameraart is right. If your gps is putting 5V into the switch and the switch is being powered by 3.3V, the ESD clamp diodes will conduct and possibly cause the behaviour you are seeing.
Correction: The GPS is supplied by 5V, but it's output is 3.3V as all the other modules on the circuit.
I did ask what would happen if the switch is powered by 5V and switched by 3.3V?
C.
Hi,
I added 104 caps to the 3.3v and the switch track, also changed to 5V supply for the switch. It seems better, but it looks like it's not perfect, although it's not easy to see.
Could it be the PIC internal clock? I received 8MHz crystals today.