as mentioned by @Henlor there is no electronics involved. But to do what you won’t you don’t need any. Just learn a bit about gcode syntax if not yet done and do some “sweeping” experiments with the printer you would like to mod. You can use the end gcode in printer settings to make the printer do what you want to do after the print is finished. Once you have a solution which works once you can easily print in sequence, for example using this app:
As mentioned by @MalcTheOracle I unfortunately can’t help you here. Even not because of competition, but because it seams to me like at the moment you are probably not yet skilled enough to devope what you are plan to achieve. But this can change when you start somewhere, learn, try, develop and share you results (preferably in a new thread) and when these are promising, you will surely get aditional feedback and help from the comunity.