Complete newbie here so apologies for the ignorance.
I'm making a touch lamp.
Picture a 6 foot tall obelisk shaped spike. The top bit also can be removed, both parts have a strip of LED lights. Its going to be touch dimmable and the main part is powered by a plug, and the top part gets it's power from a rechargable battery when it is removed.
Arduinos are new to me, and also general electronics.
But after giving myself a crash course the setup I'm looking at will be something like this-
Everything will be 12v.
The LEDs will be 5630/5730 diodes, warm white, 120/metre.
One arduino in the bottom circuit.
Then the top circuit will have some kind of metal pads that contact for when the top part is put back on.
This top circuit will have it's own arduino.
The battery will be a lithium rechargable battery with some kind of protection to stop power going to it when it's full.
If I was doing one simple circuit I think I could do that with information on this site and youtube.
But I'm not sure how to go about this project.
When the two parts are together I want the touch to switch both lights on.
Hold the finger on the lamp to cycle brighter.
Take the top part off and the lights stay as they are.
And now the circuits work separately.
When the top part is put back on I think I want it to match whatever state the bottom light is at. Haven't decided on this yet though.
The actual conductive touch sensitive part for the bottom bit is at it's top. And vice versa for the top, its touch sensitive bit is at it's bottom half.
This is for practical reasons, one being so the top bit can be taken off without changing the state of the top light.
If you guys have any advice or links to a similar project I am all ears.
I have no experince in coding but want to learn.
Does making two arduinos in seperate circuits work this way come down to the crorect coding?
Thanks again for any advice.