7 years, 2 months ago.

I need to do some work at specified time , every day at 9:00 PM and 8:00 AM

I have a DC motor controlled with H-bridge.

Class for H-bridge is finished, and now I can easily control the rotation of motor in which side I want.

So problem is I need to get this motor in motion in 9:00 PM and 8:00 AM every day. (stopping of motor is resolve with switch)

I did a research i found a unix temp stamp need to do calculation from 01/01/1970 and then get the time in second

but i do not know how to do that .

Is then a some kind of api tells me what time is it now or something like that ?

Any help is very appreciate

1 Answer

7 years, 2 months ago.

Hello Stjepan,
You can schedule recurrent events by utilizing the RTC library or by using a Ticker driven clock.

Accepted Answer

Thank you very much

posted by Stjepan Skrnjug 28 Jan 2017