thx for the quick response. Somehow it actually worked afterwards. I thought i had checked it before properly.
Timmytomate
@Timmytomate
Posts made by Timmytomate
-
RE: Zumi Camera not working
-
Zumi Camera not working
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)
185PiCameraMMALError: 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
-
Zumi Update not working
Hello,
me and a fellow student are working on a project with Zumi.
We both have Version 2.02 and are trying to update to version 2.31.
Now when we update via online interface the Zumi-screen-progressbar stops at like 93%
and stays there until Zumi is out of charge.What do we do
-
Zumi goes off after commands
So im working on a study project with my Zumi.
First I need to create a own line Follower.I tried to get used to the IR-Sensors in small steps
but this code doesnt work.from zumi.zumi import Zumi
from zumi.util.screen import Screen
import timezumi = Zumi()
screen = Screen()zumi.reset_drive()
for i in range(0, 100):
zumi.forward_step(20,0)
ir_readings = zumi.get_all_IR_data()
screen.draw_text(str(ir_readings[3]))zumi.stop()
If i run the code zumi is driving for a bit then making quick turns in the same spot left and right and
shuts off comletly. -
Other Coding Options
Hello,
is there any other way to use code on Zumi like in Jupyter.I Would like to classicly programm with visual studio code or something.
Like using modules etc. and having an normal IDE instead of using Jupyter.
Is this possible.Greetings
Timmytomate