PCB antenna trace impedance

I have been using these 2.4ghz transmitter previously in my arduino projects, with good success.

One of my latest PCB design incorporates the schematic of the chip used on these boards. It is working but I've narrowed an issue down to the pcb antenna, and the manufacturing of that. Basically I'm having intermittent signal loss and other weak signal artefacts.

My question is, knowing that certain factors of the radio signal and the 'ideal' antenna will depend on the final casing and other components, how do I make sure I can get the trace impedance to be 50 ohms? THis is required by the chip manufacturer.

Assuming the microstrip impedance is the way to calculate this (I used this one https://www.eeweb.com/tools/microstrip-impedance) for a 'standard' board, 1.6mm thickness, 1oz trace thickness and substrate dielectric of 4 (which I believe is FR4) I get a trace thickness of 3.2mm. However, the PCB on most of these off the shelf transmitters (they are around 1-1.1mm thick) have antenna traces of 1mm width.

I am puzzled as to which is wrong here. Based on the info that I know, should I go with the 3.2 mm wide trace antenna? Or should I rather 'copy' the layout of these existing boards, even though I cannot know the trace thickness and thus my information to calculate their exact impedance is incomplete?

Image result for nrf24l01+

#PCB#
Circuit Design
Cannot delete shape using API

The API documentation does not explain how to delete a shape: https://docs.easyeda.com/en/API/EasyEDA-API/index.html#Examples

In fact, it says this:

Delete Shapes
Removing shapes by follow code

Except, there is no code example!

In my case, I need to delete a track. I have tried an educated guess, such as:


api('deleteShape', {id:'gge13'})

I've also tried just setting the shape to have no points, as in:

                                api('updateShape', {
                                        "shapeType": "TRACK",
                                        "jsonCache": {
                                        "gId": t2.gId,
                                        "pointArr": []
                                    }
                                    });

The script I'm writing ought to be very handy for a lot of people. When you're designing and redesigning a board, often your tracks get subdivided. Then when you try and move things around, only part of the track moves; you have to move each subpart and delete any bits that are hanging on. The script does two things:

  1. It looks for pairs of tracks that have the same net, layer, and width, and where the start/end of one is also the start/end of the other. It combines them into a single track.
  2. Within any track, it looks for triplets of points (a,b,c) that are in line (ie: slope(a,b) == slope(b,c)) and replaces them with the pair (a,c), simplifying the track.

I have it completely working except for deleting the redundant track.

Much obliged for any help that can be provided.

#Bug Reports#
Bug Reports