The ground connection will go via the DC DC buck module.Does the board have a ground plane? That's not clear as you say it is single layer.
If no ground plane, there is no direct ground reference between the GSM module logic / data and the MCU ground; the GSM 0V probably needs linking to the main smoothing cap negative.
I'd not trust the DC-DC converter as the sole connection as that may introduce noise.
(And if it's actually an isolated DC-DC module, you must provide a ground reference connection for the MCU interconnections).
This "RS" is a small switch mounted on the enclosure. when this pin active low then the relay will be switched off. For the time being I use internal pull-up.Do I still need series resistor & a pullup resisitor?I'd suggest you add a resistor in series and possibly a pullup or pulldown with the connection from the PIC to the "RS" pin to limit current; a direct external connection to an MCU pin with no protection is not a good idea, it's too easy to short or spike something.
That's a very good suggestion.I'd also be tempted to add a small ceramic decoupling cap as close to the GSM module power & ground pins as possible.
You apparently expect to be able to communicate between the PIC & GSM modules yet there is no ground reference between them!
Thanks.As I mentioned in the 3rd post the ground is coming to the GSM module through the buck converter module & not from my pcb track.
It is wrong to me.This topic is to avoid ground loops.I wouldn't depend on that. I'd connect the module's two ground pins with a big fat trace.
It is wrong to me.This topic is to avoid ground loops.
If you connect the modules two ground pins with a trace then there will be a ground loop, one half from module & other half is from your trace forming a closed loop and its a ground loop.
i don't have a data sheet or schematic for the DC-DC module, but i'm willing to bet that the input and output side - terminals are isolated to make the module more flexible in it's usage (such as if i wanted a negative rail voltage output from it, i would simply connect the + output to ground).... iThanks.As I mentioned in the 3rd post the ground is coming to the GSM module through the buck converter module & not from my pcb track.
i don't have a data sheet or schematic for the DC-DC module, but i'm willing to bet that the input and output side - terminals are isolated to make the module more flexible in it's usage (such as if i wanted a negative rail voltage output from it, i would simply connect the + output to ground).... i
A ground _plane_ is a very different thing to having a ground loop.It is wrong to me.This topic is to avoid ground loops.
If you connect the modules two ground pins with a trace then there will be a ground loop.one half from module & other half is from your trace forming a closed loop and its a ground loop.
then maybe his ground trace is close to 1/4 wavelength at 1.3Ghz and is what's upsetting the apple cart... a topside ground plane would help.. isolating the antenna more than 10 wavelengths away, and using ferrite beads to isolate the ends of the cable would also help...If anyone had bothered to have a close look at the bottom side picture of the DC DC module, you would see both negative pins are connected to a solid ground plane on the module.
There is no need to add a track between both negative pins.
If anyone had bothered to have a close look at the bottom side picture of the DC DC module, you would see both negative pins are connected to a solid ground plane on the module.
There is no need to add a track between both negative pins.
Now you got it.Those of us who did look at the picture did indeed notice that detail.
Perhaps those making snide comments didn't notice the only ground connection to the GSM module was via the detour across the module, via four soldered connections, in close proximity to the switcher noise. Perhaps not the most robust path for the data signals.
Sorry to tell you, but that has just wrecked it.I have redrawn the pcb layout. Now all the grounds coming from a single point.
Sorry to tell you, but that has just wrecked it.
The current through the antenna is now circulating through the entire board to get back to the GSM module ground!
You MUST use a ground plane and underside ground areas for it to work.
The SIM800L is not intended to work with an external PCB-connected antenna in the first place; that makes using that pin to connect to a PCB trace very dubious, and means all the tracks and grounding in that are must be absolutely perfect.
If you are going to totally ignore advice and make random changes, there is no point people answering you.
This is an example of a good layout style for a short PCB track to an SMA or similar connector; ground both sides of the PCB and regular VIAs linking the two ground surfaces along either side of the signal trace:
And if the track to the connector is more that a small part of a wavelength, you need to calculate the width of the track and the spaces either side, as shown here:
Ground Backed Coplanar waveguide Impedance Calculator
Radio Frequency Engineering Calculator.leleivre.com
Why do you imagine it would be a problem anyway?. The ground connection to the on-board aerial socket is also absolutely horrible, it wants to be as short as absolutely possible, and a ground plane would be good. Personally I just use the socket on the module, with an extension lead plugged in it to a chassis mounted socket.
I would also suggest a couple of decoupling capacitors across the supply near to the module, I use a 1uF ceramic, and a 1F super capacitor - the high current pulses the SIM takes really mess things up, and a 1F makes a huge difference - it's a standard technique in battery powered GSM units. I have a number of SIM800L based units around Scotland, which are set to upload data weekly (on a Friday morning as it happens).
Ok thanks,I use a Texas LMR62014XMFE IC and build it on the same board, on a ground plane area. I switch the battery power to that using a dual FET DMC3016LSD, and hold the reset pin of the SIM800 while the super capacitor charges up - only then do I let the SIM800 out of reset.
Battery consumption is critical, as we're hoping for around five years battery life - so everything is closed down other than the PIC 32KHz timer, which wakes up the PIC every second, updates the clock, and goes back to sleep.
The lithium thionyl chloride batteries have a VERY long shelf life, but will only provide small currents, hence the super capacitor, and are only 3.6V, so need the converter. Powering from 18650's means you can skip the converter, and feed it directly due to their higher voltage and MUCH great current capability. I've got two on test with 18650's, one in the garage at work, one in my shed at home - and both transmitting daily rather than weekly, just to see how long they last. Just checked their lastest readings, in the one at work the battery reads 4.02V, and the one in my shed reads 3.35V - I'm not sure how new, or how charged, they were when I set them running.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?