I am designing a circuit with an Attiny85 microcontroller and a temperature sensor, eventually I want everything including the battery to weigh less than 5g (preferably<3g). I want to be able to reprogram the Attiny while it is soldered to the board, so I need some way to connect the programmer to the attiny85.
I am drawing the PCB using Fritzing (pcb design program), eventually I hope it will only be 1cm by 1cm using surface mount components, though might be twice that if I put the battery on the board. I know I could just add some rows of pins next to the attiny and use the pins to connect to the programmer, but putting more pins on the board would add weight and also stop it being a nice flat design. I know I could solder and desolder the pins whenever I want to program but I think there must be a better way.
I was thinking maybe there is some way to draw tracks to the side of the board and then get some type of clip on connector which connects to the tracks?
Could anyone suggest something, that doesn't add extra weight to the board, or very very lightweight (e.g. maybe 0.2g).
Thanks in advance. Sorry if I'm missing something obvious!