How do I replace the board of a flashlight with a customized perfboard to set up an invidual On/Off frequency? Answered
I am currently customizing the a flash light (customized intervals between on&off). To program the individual frequency I made use of an attiny 85 microcontroller that has been programmed making use of an arduino. On a breadboard my experiment worked well. I have attached the pins of the attiny 85 as follows:
Pin8: Long lead LED & + side of the battery; Pin5: Small lead LED; Pin 4: - side of the battery; To realize this experiment for a torch light I have disassembled a torch light and replaced the board with a self-made one making use of a perfboard.
Well if I attached the red wire (of an external battery box) to pin 8 and the black wire (of an external battery box) to pin 4 of the attiny85 the torch works well. However I wanted to replace the board and it should work the way it worked before with the programmed mode making use of the battery of the torch light as power source.
The battery within the torch light is placed on the back side. There only the plus side of the battery touches the spring and this gets again in touch with the self made perfboard. Here I am aware that the energy wlil flow through the spring to the soldered microcontrller. Hence alle soldered and connected pins of the attiny 85 will have the voltage of the battery. However I cannot determine certain pins to be charged and some not to be...( here I think I am missing a point) The problem I experience is that only the plus side of the battery, placed in the torch light, gets in touch with the perfboard. The torch light does not work using my perfboard. I know for sure that the torch will work if both the plus and the minus side of the battery are attached to the microcontroller(pin 4/8). However the initial torch light was also attached only to the plus side of the battery, and it did work. I don't know how.
I am pretty sure that there something wrong with my plan or my I do think little naively, can you give some suggestions?