The presence of a hand must trigger the circuit.
To do this, i read up about capacitive sensing on arduino library .https://playground.arduino.cc/Main/CapacitiveSensor/ So the logic is that the capacitive sensor’s second capacitor plate is the human hand. I put a resistor of 1MOhm such that the capacitor takes a longer time to charge. Once it charges, the presence of the hand will finish capacitor circuit and decrease current flowing through that part of the circuit and hence reduce the values of current flowing. The physical hardware is pretty straightforward for this part. Put a large metal plate across a resistor and connect it to two pins on the tiny. One would think this would be enough, but barely. I guess experience is a great teacher. Windows incompatibility with the entire setup - my new computer gave me interesting problems and challenges, it wouldn’t read the board, no matter what I tried. The ports would just ont get recognized by the device manager or arduino ports or couldn’t even be found on git bash. So i had to go on a wild goose chase to get the usb-c to usb 2.0 hub.



However, i didn’t get it right in the first 20-30 tries. Every time I would plug in the board to try and run the code, my board would fry and i would smell solder and see smoke. Trying to understand the issues, I had to debug everything, starting from the Attiny.