Hello, I am Shien from Malaysia
Good to meet you all here

I found some problem when doing my final year project
Now, I am doing a security system with using PIC18

My project is like this
Sensor (digital sensor) detected -> signal send to my PIC18, then I want make a delay of 5 seconds to start the alarm

So, anyone here know how to write a program / coding to make the time delay for the operation?
can someone teach me

Can tell me in here

Thanks :)

Recommended Answers

All 2 Replies

Please post what code you have already and we will give you some advice on fixing what you have. That said, depending on which system calls and other functions you have available with your C/C++ compiler system, you can look at sleep() or similar function calls to set a delay.

Thanks for reply ~
the problem is I dont know C++, so I didnt any coding or program~

I just want make the time delay for the operation of the alarm ~

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.