Connect an ArduCam or other camera
-
Anyone done this? I'd love to stream 2 mpx to capture on a server elsewhere :-) Not sure where to start though as the ArduCam code is in Arduino C. Seems to me like it'd be a matter of writing to I2C and reading SPI -- but I'm not experienced.
-
FYI I wrote to the ArduCam folks and they sent some libraries for the ESP32. I haven't tried them yet, and I really don't know if they would work with Python. But it seems they are working on this.
-
I have it working with LUA-RTOS-ESP32 (look at arducam.c / arducam.h).
It's in pure C, so it shouldn't be hard to adapt it for MicroPython.... -
@betterauto Any idea if this is available yet?
-
@davidintoronto No and I’m still a long ways off from trying it. Your best bet is ArduCam.
-
@betterauto I found this for Arducam
https://github.com/dakoner/arducam_reader/blob/master/arducam_read.py
But it's not really commented and I'm sure about how I'd wire up the Arducam to wipy 2.0 -
Although I've not hooked up any ArduCam yet, try to connect both its I2C and SPI lines to your WiPy. Read the directions for connecting each of those. Start with the I2C. Then when you are satisfied both are working, try the script you linked. Looks like you just import arducam_reader then download test.jpg from the filesystem to your desktop via the FTP server.
-
Oh heads up, the script you linked is for a Raspberry Pi. I noticed that because the device is /dev/ttyACM0. It's probably usable with WiPy with some modification but how to do that goes above my pay grade.
Note that there are instructions from the ArduCam folks for making the ESP32 work with the Arduino libraries. Under the hood, the WiPy is an ESP32. Perhaps start with that then see if you can learn what you need to make it work on MicroPython.
Wish I could be more helpful.
-
Does anyone have success working Arducam with WiPy 2.0?
-
Or other any camera, like as Arducam.
-
Sorry for digging this deep, but have you achieved your goal. Does scripts from ArduCam works?
-
@engeeneratendee Afraid I’ve not tried it. I had to abandon Pycom modules due to another issue. Give it a shot and share your findings! :-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login