# Raspberry Pi Zero 2 and Camera Module 3 Widew MotionEye / MotionEyeOS

**URL:** <https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885>\
**Category:** Uncategorized\
**Created:** [30 December 2023 06:32 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885 "2023-12-30T06:32:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quinn262858](https://avatars.discourse-cdn.com/v4/letter/q/f6c823/32.png) [@Quinn262858](https://forum.core-electronics.com.au/u/Quinn262858)\
**Post date:** [30 December 2023 06:32 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/1 "2023-12-30T06:32:33Z")

</div>

Hello there,

This is my first time fiddling with RaspberryPi and wanted to go about building a single camera CCTV system.

I’d been looking into a platform called MotionEye (MotionEyeOS) and fits the bill for my needs. I’m having issues following the install instructions, I’ve run into alot of errors and warnings stating outdated packages when I’ve tried installing this over the top of Raspberry Pi OS (64bit).

I’ve had different issues when trying to use the actual OS environment installed straight onto the SD Card, where its “Unable to open video device”.

The camera is working as I’ve managed to do a libcamera-still check on RaspberryPi OS but I’m not sure other things to try.

Has anyone had any success with this platform or knows of another CCTV software/OS that can motion detect, send notifications, and record/take stills?

Any help is appreciated and please let me know if you needed any further details 😃

---

<div class="post-metadata">

**Author:** ![Pixmusix](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/pixmusix/32/9719_2.png) [@Pixmusix](https://forum.core-electronics.com.au/u/Pixmusix)\
**Post date:** [31 December 2023 02:37 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/2 "2023-12-31T02:37:28Z")

</div>

Hi @Quinn262858

Welcome to the forums.

Sounds frustrating.  
Best place to look when it seems like it’s a problem native to the OS itself is that operating systems github issues.

Maybe have a look at the solution offered on this git-issue from only a few weeks ago 🙂

> <https://github.com/motioneye-project/motioneyeos/issues/3018>
>
> I am getting this error on the connection of the camera.
> the camera does work I… have proved it on the same hardware with libcamera I get a video feed.
> 
> 
> \### Preliminary Docs
> 
> I confirm that I have read the \[CONTRIBUTING\](https://github.com/ccrisan/motioneyeos/blob/master/.github/CONTRIBUTING.md) guide before opening this issue.
> 
> I confirm that I have read the \[FAQ\](https://github.com/ccrisan/motioneyeos/wiki/FAQ) before opening this issue.
> 
> \### motionEyeOS Version
> 
> I am running motionEyeOS version: motionEyeOS 20200606 // 0.42.1 // 4.2.2+gitUNKNOWN
> 
> \### Board Model
> 
> Rpi Zero w
> 
> I am using the following board/model: (insert your board model here, e.g. Raspberry PI 3B+).
> 
> \### Camera
> 
> I am using the following type of camera: V4L2
> 
> My camera model is: (insert your camera model, e.g. Logitech C290).
> 
> RPI Camera 3 == direct connected to the board via a ribbon 
> 
> \### Network Connection
> 
> My motionEyeOS unit is connected to the network via: (choose your network connection, e.g. WiFi, Ethernet).
> 
> Wifi 
> 
> \### Peripherals
> 
> I am using the following peripherals that I consider relevant to this issue:
> 
> \* (e.g. USB WiFi adapter)
> \* (e.g. External Hard Disk)
> 
> None
> 
> \### Log Files
> 
> I consider the following log files relevant to this issue:
> 
> \[motioneye-5.log\](https://github.com/motioneye-project/motioneyeos/files/13679089/motioneye-5.log)
> 
> \[boot.log\](https://github.com/motioneye-project/motioneyeos/files/13679091/boot.log)
> 
> 
> \* (attach e.g. motioneye.log)
> \* (attach e.g. boot.log)
>  
> thanks for any help.

I found it by searching your error on the open and closed OS’s github issues page.

> **[Issues · motioneye-project/motioneyeos](https://github.com/motioneye-project/motioneyeos/issues?q=is%3Aissue%2Bunable%2Bto%2Bopen%2Bvideo%2Bdevice)**
>
> A Video Surveillance OS For Single-board Computers - Issues · motioneye-project/motioneyeos

Wish I had more for you.  
Looks like a cool project.  
Pix ❣

---

<div class="post-metadata">

**Author:** ![Quinn262858](https://avatars.discourse-cdn.com/v4/letter/q/f6c823/32.png) [@Quinn262858](https://forum.core-electronics.com.au/u/Quinn262858)\
**Post date:** [1 January 2024 08:17 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/3 "2024-01-01T08:17:33Z")

</div>

Thanks for getting back to me!

I did some more digging following on from the links which you provided, and have now got the MotionEye system running as a service on Raspbian Buster 03/05/23.

The service appears to be working however I’ve run I’m unable to open the camera by running raspistill -0 /Desktop/Image.png

I get this returned

mmal: mmal\_vc\_component\_enable: failed to enabled component: ENOSPC  
mmal: camera component couldn’t be enabled.  
mmal: main: failed to create camera component.  
mmal: failed to run camera app. please check for firmware updates.

I’ve run apt update, apt upgrade as well as rpi-update but none of these have worked. I’ve tried reseating the camera but this has not worked either.

Is there anything else I can try?

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [2 January 2024 00:28 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/4 "2024-01-02T00:28:25Z")

</div>

Hey @Quinn262858 - after some light research it seems like there might one of multiple possibilities.  
This [StackExchange](https://raspberrypi.stackexchange.com/questions/13764/what-causes-enospc-error-when-using-the-raspberry-pi-camera-module) post has a few people weighing in on the issue.

_sanity check_:  
is the camera peripheral enabled from `sudo raspi-config`?

---

<div class="post-metadata">

**Author:** ![Quinn262858](https://avatars.discourse-cdn.com/v4/letter/q/f6c823/32.png) [@Quinn262858](https://forum.core-electronics.com.au/u/Quinn262858)\
**Post date:** [2 January 2024 00:50 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/5 "2024-01-02T00:50:14Z")

</div>

Thanks Michael,

Lot to read and try there, may even have to start from scratch, new install, the works ☹

_sanity saving throw:_  
Yeah, enabled both from the raspi-config menu and the Pi Configuration Interfaces menu.

I really hope the issue isn’t hardware related - I’ll try some things this evening and see whats the go.

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [2 January 2024 00:54 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/6 "2024-01-02T00:54:08Z")

</div>

For what it’s worth, running rpi-update is apparently not recommended since it may ‘upgrade’ you to an unstable version of the kernal… according to a user in that StackExchange thread anyway.

---

<div class="post-metadata">

**Author:** ![Andrew110199](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Andrew110199](https://forum.core-electronics.com.au/u/Andrew110199)\
**Post date:** [2 January 2024 09:22 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/7 "2024-01-02T09:22:13Z")

</div>

I have used MotioneyeOS for a few years now. Mostly problem free. I have a couple of Pi Zero 2W boards with the Jawsper version of the software(might only work on wifi boards?). Maybe try it,or try another camera.  
Best of luck.

---

<div class="post-metadata">

**Author:** ![Quinn262858](https://avatars.discourse-cdn.com/v4/letter/q/f6c823/32.png) [@Quinn262858](https://forum.core-electronics.com.au/u/Quinn262858)\
**Post date:** [2 January 2024 09:46 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/8 "2024-01-02T09:46:17Z")

</div>

Hi Andrew,

The board I currently have is the Pi Zero 2w with the camera module v3 wide.

I used the Raspberry Pi 3 image of the Jawsper build of MotionEyeOS but the camera displayed “Unable to open video device” both when I selected mmal camera and the v…something something camera.

Would you mind sharing your build specs as well as camera settings and any other steps I might be missing that weren’t documented? I’d really appreciate it.

Cheers

---

<div class="post-metadata">

**Author:** ![Andrew110199](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Andrew110199](https://forum.core-electronics.com.au/u/Andrew110199)\
**Post date:** [3 January 2024 06:06 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/9 "2024-01-03T06:06:39Z")

</div>

Hi Quinn,I have a very basic setup. Pi Zero 2 W board with a plain Pi camera.(MMAL camera) Using the Jawsper branch of MotioneyeOS. I add the following to the extra motion options: mmalcam\_control\_params -awb greyworld  
to correct the negative image. That’s about it. The camera is currently in a box in my yard and not connecting to wifi due to distance.

---

<div class="post-metadata">

**Author:** ![Blayden](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/blayden/32/7535_2.png) [@Blayden](https://forum.core-electronics.com.au/u/Blayden)\
**Post date:** [5 January 2024 05:25 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/10 "2024-01-05T05:25:20Z")

</div>

Hey Quinn,

Sounds like you have had a bunch of trouble with this MotionEye, it gets tricky when using it with the Raspberry Pi Zero 2 W as it is not natively supported. There are a couple of ways to get it set up including the Jawsper version, though that hasnt been updated since Jan 2022 so isnt a preffered option.

Have you had a look into the alternative software such as [Shinobi](https://docs.shinobi.video/installation/raspberry-pi)? Depending on what you are doing with the camera and your plans in future with the Pi (Home automation), it may just be a better way of getting this project on its way to completion.

Cheers,  
Blayden

---

<div class="post-metadata">

**Author:** ![P269486](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@P269486](https://forum.core-electronics.com.au/u/P269486)\
**Post date:** [13 April 2024 20:34 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/11 "2024-04-13T20:34:07Z")

</div>

RasPi Zero 2 W + USB-Webcam running here.

**On the MotionEyeOs webinterface:**  
login, on the left upper corner klick on  
**“Camera 1” → add Camera:**  
Camera Type: Local V4L2 Camera (for USB-Webcam, for CameraModule i dont know.  
**Camera: try Out till it works, i needed to try out two different entrys, then i got a picture.**

I installed this [Jawsper Release 20220119-dev](https://github.com/jawsper/motioneyeos/releases/tag/20220119-dev) straight onto the SD with the [writeimage.sh](https://github.com/jawsper/motioneyeos/blob/master/writeimage.sh) script.  
If wifi doesnt work, edit the wpa\_supplicant.conf on the SD.  
To change the Admin and User Passwords i needed to edit the “motion.conf” on the SD card manually.

This Guy seems to use a PiCam, maybe it helps you:  
[https://community.element14.com/members-area/personalblogs/b/ralph-yamamoto-s-blog/posts/raspberry-pi-zero-2-w---motioneyeos](https://community.element14.com/members-area/personalblogs/b/ralph-yamamoto-s-blog/posts/raspberry-pi-zero-2-w---motioneyeos)

---

<div class="post-metadata">

**Author:** ![Samuel](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/samuel/32/11763_2.png) [@Samuel](https://forum.core-electronics.com.au/u/Samuel)\
**Post date:** [15 April 2024 04:38 UTC](https://forum.core-electronics.com.au/t/raspberry-pi-zero-2-and-camera-module-3-widew-motioneye-motioneyeos/18885/12 "2024-04-15T04:38:12Z")

</div>

Hey @P269486,

Welcome to the forums!  
Thanks for your input I’m glad to hear you have a solution that works for you, hopefully this helps out @Quinn262858 in some way.

Thanks, Sam.
