Use a Raspi camera on P2?
Rayman
Posts: 14,646
in Propeller 2
Somebody asked this at the live forum last Wednesday, and maybe I didn't explain well enough...
The short answer is no. Raspi has a relatively new type of camera interface called MIPI. It's sorta like HDMI or more like LVDS, in a way, at the low level.
I don't think the P2 can decode a MIPI signal in real time, but would love to be proven wrong.
One easy way is to use something like a Raspi Zero to connect to the camera and then use the I/O pins of the Raspi Zero to connect to the P2.
I've demonstrated (in this forum somewhere) some code that lets the P2 give commands to the Raspi Zero.
I did this for graphics, but could also be done for the camera.
So, I think we are stuck with parallel interface cameras. This is fine, for now...
In the years to come the parallel interface may be phased out though...
The short answer is no. Raspi has a relatively new type of camera interface called MIPI. It's sorta like HDMI or more like LVDS, in a way, at the low level.
I don't think the P2 can decode a MIPI signal in real time, but would love to be proven wrong.
One easy way is to use something like a Raspi Zero to connect to the camera and then use the I/O pins of the Raspi Zero to connect to the P2.
I've demonstrated (in this forum somewhere) some code that lets the P2 give commands to the Raspi Zero.
I did this for graphics, but could also be done for the camera.
So, I think we are stuck with parallel interface cameras. This is fine, for now...
In the years to come the parallel interface may be phased out though...
Comments
curious,
Mike
That would be nice...
I wouldn't rule out being able to receive LVDS signals using the A > D comparator mode, with the D threshold set appropriately. Its unclear how fast the path through that comparator would be
Only real downside is relatively low resolution. Still, could be very useful in many applications...
1. Keeping the data rate below ~300mbps. Same problem that we have with not being able to do much more than 480p on HDMI.
2. Sampling the serial signal at the right time. If the camera is the clock master then we will have to sync the P2 to that clock.
3. Not enough memory to store an image bigger than composite video anyway.
P2 can sample composite video. We were even planning that when designing the scope filter. It won't match a dedicated video decoder asic.
I really need to push out some composite video code. Just need to do vertical sync first. But the images I processed on the computer look better than the display from the P2. I test the P2 with a monochrome camera since I don't decode color there anyway. Maybe the chroma carrier acts to dither around the larger steps in the ADC output. Or the computer decoder just has better filters.
No.
The imx219 (Pi camera) datasheet suggests an output PLL frequency range of 432-916MHz. There doesn't seem to be a divider for the MIPI transmitter.