Morning. I’m David, 46 and I have about 40 finches. First time posting. I’m very very new to arduino and to electronics as a whole. I’m not posting codes etc here as I have not got that far yet. Nor am i asking for any ... I’ll may ask for assistance when I get closer to the project assembly. For now though I just have one question: I have googled sunrise / sunset LED dimming, and dimming LEDs over time etc, but all of these seem to use an RTC for absolute time of day timings. I don’t need the LEDs to dim at a certain time by the clock, I need them to dim over a 40 minute period from the time of a button press. Can this be done WITHOUT a real time clock module ? I do have one, though for various reasons I really don’t want to use it.
That was my question. Hereafter comes a brief outline of my project, just in case it’s interesting to anyone, though there is no question in here: My birds fly free throughout the bedroom all day, but are trained to fly into their cage at bed time, this is so that if they get a “night fright” they can’t take flight in panic and fly into a wall or window, injuring or killing themselves. The way that they are trained is that there is an LED strip around the cage door, and when the room is dark they fly to the light, and into the food cage (there are 5 cages end to end, 3 are sleeping and perching cages, one is the dining hall and the other is the bathroom) So phase one of the project is to activate the LED strip around the door based on the darkening of the room at dusk. (Photo sensor) Phase 2, a reed switch on the cage door will turn OFF the door light and turn ON a cage ceiling light (quite dim at its brightest) when the door is closed. Phase 3 the cage ceiling light needs to dim gradually over a 30 or 40 minute timespan in order to let them eat, find a perch and settle down for the night. So that 30-40 minute process would be triggered by the switch activated by the door closing. This is what I want to do without the use of the RTC module if possible. The reason that I don’t want to use the RTC is that eventually I would like to control it all with an AT Tiny 85 in order to put all of the electronics into an aluminium profile in the smallest form factor possible. Obviously the ATtiny85 only has 6 pins I can use: 1) reed switch, 2) door LED strip, 3) photo sensor, 4) ceiling (and maybe back wall) LED strips