You are not logged in.

#1 2017-10-16 23:23:56

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 95

Moment of Camera capture.

By default, camera capture takes place during exposure.
How could I instruct nanoDLP to take a shot after the lift?

Offline

#2 2017-10-17 05:04:01

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Moment of Camera capture.

Use after layer gcode or syscall input to send command to take photo manually.

Offline

#3 2017-10-20 09:00:30

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 95

Re: Moment of Camera capture.

[[Exec raspistill -o public/shots/[[LayerNumber]].jpg]]
I added this command in the  GCODE After Each Layer box but it caused some weird behavior:
It caused the projector to expose almost half the build area at full brightness for a split second.
When I removed the command the problem went away.

If my description is not helping I can produce a short video.

Last edited by Yianni-VJ (2017-10-20 09:00:46)

Offline

#4 2017-10-20 09:20:56

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Moment of Camera capture.

It is probably caused by raspistill, but it is strange as after each layer runs after image displayed not before that.

Offline

#5 2017-10-20 09:24:15

Yianni-VJ
Member
Registered: 2016-05-24
Posts: 95

Re: Moment of Camera capture.

I see.
Is there another way I can grab a shot when the platform is at the lift position and display it on the dashboard?

Offline

#6 2017-10-21 04:51:01

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Moment of Camera capture.

Use Exec with bash script and call raspistill from there.
As I remember raspistill had quite long delays before taking photo so it is possible it takes photo during layer cure. It has some switches to decrease delay, maybe it fixes the issue.

Offline

#7 2018-04-25 19:57:27

Greg209
Member
Registered: 2018-04-25
Posts: 6

Re: Moment of Camera capture.

Hi,

Sorry for bringing this thread up after a few months, but I'm now trying to find a way of taking a snapshot at the top of the lift between layer curing.

Looking at the thread /forum/viewtopic.php?pid=3488#p3488 there is a sequence of events that shows when the syscall and gcodes are executed. In that sequence, I'm looking to capture after step 13 and before step 1 starts for the next layer.

Is there somewhere I can inject an [[Exec ....]] for raspistill after the lift? Adding it to the 'GCode after layer' as described seems to call the camera after the leds shut off - as per the sequence above (although I am getting a camera error but that's a different thing..). So

BTW, if you use the -n flag or --nopreview then raspistill will suppress the camera preview before taking the snapshot. I originally had raspbistill called via timer and noticed that every 5secs (the timer) my LCD would show the live camera output - not helpful when trying to cure the layer - fortunately, -n fixed that.

Thanks in advance.

Greg

Offline

Board footer

Powered by FluxBB