Connect one end a resistor from the +V of the 9V battery and the other end to the +V terminal of the capacitor [assumed polarised capacitor].Its not really a project, I'm just playing around with components and trying to figure stuff out. The circuit is powered by a 9v battery.
I understand the capacitor will charge until it cannot charge anymore and also that it will only discharge when the current removed from it. I am trying to figure out how to achieve this.
Thanks for the reply.