Navigation

    Robolink logo
    • Register
    • Login
    • Search
    • [[global:header.categories]]
    • [[global:header.recent]]
    • [[global:header.tags]]
    • [[global:header.popular]]
    • [[global:header.users]]
    • [[global:header.groups]]
    As of September 2021, we have moved technical support to Robolink Help

    Welcome to the Robolink Community forum!

    You can post here to interact with others in the Robolink community. We're checking it weekly, and we'll respond to some messages. If you're looking for technical support, head over to Robolink Help.

    Zumi Camera not working

    Zumi
    2
    4
    997
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Timmytomate last edited by

      Hello,
      after having a talk with a awesome coworker of RoboLink we were finally able to update to 2.31.
      Now I tried to work with the camera.

      When starting drive mode it shows: "Camera may not be connected"

      When trying the QR-Code-Course for example and trying to start the camera it shows the following message:
      Starting PiCamera


      PiCameraMMALError Traceback (most recent call last)
      /usr/lib/python3/dist-packages/picamera/camera.py in _init_camera(self, num, stereo_mode, stereo_decimate)
      455 try:
      --> 456 self._camera = mo.MMALCamera()
      457 except PiCameraMMALError as e:

      /usr/lib/python3/dist-packages/picamera/mmalobj.py in init(self)
      2278 global FIX_RGB_BGR_ORDER
      -> 2279 super(MMALCamera, self).init()
      2280 if PARAM_TYPES[mmal.MMAL_PARAMETER_ANNOTATE] is None:

      /usr/lib/python3/dist-packages/picamera/mmalobj.py in init(self)
      632 mmal.mmal_component_create(self.component_type, self._component),
      --> 633 prefix="Failed to create MMAL component %s" % self.component_type)
      634 if self._component[0].input_num != len(self.opaque_input_subformats):

      /usr/lib/python3/dist-packages/picamera/exc.py in mmal_check(status, prefix)
      183 if status != mmal.MMAL_SUCCESS:
      --> 184 raise PiCameraMMALError(status, prefix)
      185

      PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

      During handling of the above exception, another exception occurred:

      PiCameraError Traceback (most recent call last)
      <ipython-input-2-128cc1752c2b> in <module>
      ----> 1 camera.start_camera()
      2 try:
      3 for i in range(50):
      4 frame = camera.capture()
      5 vision.find_QR_code(frame)

      /usr/local/lib/python3.5/dist-packages/zumi/util/camera.py in start_camera(self)
      59 return
      60 print('Starting PiCamera')
      ---> 61 self.camera = PiCamera() # PiCamera gets resolution (height, width)
      62 self.camera.resolution = self.resolution
      63 self.camera.framerate = self.framerate

      /usr/lib/python3/dist-packages/picamera/camera.py in init(self, camera_num, stereo_mode, stereo_decimate, resolution, framerate, sensor_mode, led_pin, clock_mode, framerate_range)
      429 raise PiCameraValueError('Invalid clock mode: %s' % clock_mode)
      430 try:
      --> 431 self._init_camera(camera_num, stereo_mode, stereo_decimate)
      432 self._configure_camera(sensor_mode, framerate, resolution, clock_mode)
      433 self._init_preview()

      /usr/lib/python3/dist-packages/picamera/camera.py in _init_camera(self, num, stereo_mode, stereo_decimate)
      458 if e.status == mmal.MMAL_ENOMEM:
      459 raise PiCameraError(
      --> 460 "Camera is not enabled. Try running 'sudo raspi-config' "
      461 "and ensure that the camera has been enabled.")
      462 else:

      PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

      I already tryed it like 3 times and also checked the camera cables on the board.

      Greetings

      robolink_leila 1 Reply Last reply Reply Quote 0
      • robolink_leila
        robolink_leila @Timmytomate last edited by

        @timmytomate Great! Sometimes you just need to close the camera and reboot Zumi. Let us know if you have any further issues!

        1 Reply Last reply Reply Quote 0
        • T
          Timmytomate last edited by

          thx for the quick response. Somehow it actually worked afterwards. I thought i had checked it before properly.

          robolink_leila 1 Reply Last reply Reply Quote 1
          • robolink_leila
            robolink_leila @Timmytomate last edited by

            @timmytomate ,
            It seems like the camera may be disconnected underneath the shell in the front (the Sunny connector). Please reference this FAQ for an image. Then, restart Zumi and check if the camera is enabled.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post