I would need some help for a student project, a structural projection with a video that must be played when a movement is detected in front of the structure. I think it is quite simple but I have very little to no experience with Arduino
For that, I have a arduino uno and a PIR motion sensor to do that.
This could be a very simple project. If you have only one PIR and you are happy with its default timings, then it is very simple.
If you want to start having a start delay, an on period different to the standard on period, or you want to have multiple PIRs for increased coverage (and these are cheap ones which re-trigger each other through electrical noise), or maybe you want activity suppressed depending on the ambient light conditions etc., then it gets more complicated.
Start by posting a link to the PIR type you are using.
6v6gt:
This could be a very simple project. If you have only one PIR and you are happy with its default timings, then it is very simple.
If you want to start having a start delay, an on period different to the standard on period, or you want to have multiple PIRs for increased coverage (and these are cheap ones which re-trigger each other through electrical noise), or maybe you want activity suppressed depending on the ambient light conditions etc., then it gets more complicated.
Start by posting a link to the PIR type you are using.
Yes actually I want something very simple, a person walks in front of the structure and the video starts to play. (even if another person comes, the video must continue until the end before to start again)
OK. the PIR has an on-time adjustable between 3 and 18 seconds. You will probably need a relay module to convert the output from the PIR (3 volts) into a level which can be used by the video devices.
If you want more flexibility in the timings, then an Arduino is ideal. For coverage, you require only one PIR ? is that right ?
6v6gt:
OK. the PIR has an on-time adjustable between 3 and 18 seconds. You will probably need a relay module to convert the output from the PIR (3 volts) into a level which can be used by the video devices.
If you want more flexibility in the timings, then an Arduino is ideal. For coverage, you require only one PIR ? is that right ?
Do I need a relay module even if my Arduino is connected to a computer at all times, on which the video is launched ?
Actually, in the end, there will be 5 projection surfaces so 5 PIR, but I start with one.
OK. I now understand that the Video is to be played on the same PC as the the Arduino is connected to.
This is not so simple as simply starting a device which, immediately on starting, launches into playing a Video. But then you don't need a relay.
You'll probably have to do something like this:
Obtain / develop a Windows? program which (a) can select? and launch a video and (b) can interpret serial output from the Arduino. You would then write an Arduino sketch which, via the serial port, issues commands to your PC based program depending on the state of the PIR sensor(s).
Which Arduino have you? Things may be marginally easier with a Leonardo / Micro which can emulate a PC keyboard. Your PC is a Windows PC ?
6v6gt:
OK. I now understand that the Video is to be played on the same PC as the the Arduino is connected to.
This is not so simple as simply starting a device which, immediately on starting, launches into playing a Video. But then you don't need a relay.
You'll probably have to do something like this:
Obtain / develop a Windows? program which (a) can select? and launch a video and (b) can interpret serial output from the Arduino. You would then write an Arduino sketch which, via the serial port, issues commands to your PC based program depending on the state of the PIR sensor(s).
Which Arduino have you? Things may be marginally easier with a Leonardo / Micro which can emulate a PC keyboard. Your PC is a Windows PC ?
I don't know the MacBook development options well enough to be able to say what you have to do to interpret serial data from the USB an, on that basis, launch a Video. I hope another forum user will be able to offer some suggestions.
If you can formulate a sequence of keyboard presses which launches the video, you may be able to use the Leonardo / Micro keyboard emulation solution but, naturally, at the cost of more hardware.
Are you repeating the same video each time or are you selecting different videos depending on some criteria ?
6v6gt:
I don't know the MacBook development options well enough to be able to say what you have to do to interpret serial data from the USB an, on that basis, launch a Video. I hope another forum user will be able to offer some suggestions.
If you can formulate a sequence of keyboard presses which launches the video, you may be able to use the Leonardo / Micro keyboard emulation solution but, naturally, at the cost of more hardware.
Are you repeating the same video each time or are you selecting different videos depending on some criteria ?
There is only one video per PIR sensor (so 5 in general)
I have also thought to associate the motion detected by the PIR sensor to a MIDI note that could be treated in a mapping software like Resolume Arena. In that way, it is much easier to choose where the video is diffused on the structure. What do you think ?