No knowledge of electrical or electronic schematics.
The schematic above seems to turn a small light bulb on and off with a battery 6V.
I want to turn this into a circuit that turns on and off a 220V incandescent light bulb with 220V electricity.
And when changed, I wonder if there is any problem with the operation of the PIC chip in the schematic.
Answer 2
You can use it in parallel with 220V power circuit.
First of all, 6V power should be supplied to the control circuit, so make a circuit that can rectify the voltage down (adapter DC 6V can be used.) Install 6V DC Relay instead of 6V Lamp.
And you can use 220V lamp by using 6V relay contact.
The important thing here is that the relay capacity should not be large.
So, if necessary, if the capacity of a lamp or electric furnace is large, you can use it as you want by installing a large magnet, etc. using the relay contact again.
Answer 1
Use a 6V relay in place of the lamp
Just connect a 220V bulb to the relay contact.
Since the relay contact and the PIC circuit are separated
There are no problems with the operation of the PIC.
For TR protection, connect a rectifier diode (1N4004) to the relay coil in parallel.
(For diode direction, 6V is the cathode)