User avatar
mikronauts
Posts: 2741
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Connecting image sensor to a Raspberry Pi.

Tue Dec 29, 2015 11:29 pm

Not a chance.

That has a 12 bit data + clock output running at a high clock rate, no way to get it in via GPIO or USB.
bertwert wrote:Is there a way to connect an imaging sensor to a Raspberry Pi or other microcontroller?
Has anyone done this before?

I was thinking of using this sensor for price/specs and availability: http://canada.newark.com/aptina-imaging ... dp/80P6532

Put it in a box and with the right registration distance (45.46mm) put a K-mount or M42 mount on the box. or connect it to a telescope/microscope.

Thanks for help!

PS Reasons why I don't want to use the Pi Camera:
1. I want to use a Pi Zero which has no CSI.
2. This sensor has bigger pixels; higher light sensitivity/less noise.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
mikronauts
Posts: 2741
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Connecting image sensor to a Raspberry Pi.

Tue Dec 29, 2015 11:48 pm

A Ti Sitara with a PRU might do it (BBB for example)

If the Raspberry Pi Foundation finally documented/supported the SMI interface on Pi's then it might be possible with a big FIFO between the Pi and the sensor.

Try looking for another SBC with an exposed 12 bit camera interface, that might work.
bertwert wrote::(
Is there any other microcontrollers/boards that could interface with this image sensor then?
It would be nice to have a small/cheap microcontroller.

Or maybe a similar image sensor at similar price?
mikronauts wrote:Not a chance.

That has a 12 bit data + clock output running at a high clock rate, no way to get it in via GPIO or USB.
bertwert wrote:Is there a way to connect an imaging sensor to a Raspberry Pi or other microcontroller?
Has anyone done this before?

I was thinking of using this sensor for price/specs and availability: http://canada.newark.com/aptina-imaging ... dp/80P6532

Put it in a box and with the right registration distance (45.46mm) put a K-mount or M42 mount on the box. or connect it to a telescope/microscope.

Thanks for help!

PS Reasons why I don't want to use the Pi Camera:
1. I want to use a Pi Zero which has no CSI.
2. This sensor has bigger pixels; higher light sensitivity/less noise.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
mikronauts
Posts: 2741
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Connecting image sensor to a Raspberry Pi.

Wed Dec 30, 2015 12:07 am

I love the Zero, and plan to buy 10-20 more when I can get my hands on them at $5... but you can only use them in applications that fit its limits.

Yes, due to the PRU's you might get a BBB to play nice with that sensor, worst case is you would have to add a big FIFO and lot of fancy asm code.

Since you need to make a PCB for that sensor, add an appropriate Sitara with PRU, big FIFO, and write the code - once nice small pcb...

Most SBC's I've seen with a parallel camera interface uses an 8 bit bus, so I don't know any off the top of my head. A Guitar might do it. Sorry, I don't have time to hunt one down.

You might be better off to find a USB camera with that chip, shuck it, and use the mjpeg it spits out (or h.264, which the Pi could decode).
bertwert wrote:BeagleBone Black are you saying?
Hmm five times the cost of a Pi Zero, but then if It doesn't work with a Pi Zero. Hmm...
Any ideas on SBC with 12 bit camera interfaces?

Thank you for your time.
mikronauts wrote:A Ti Sitara with a PRU might do it (BBB for example)

If the Raspberry Pi Foundation finally documented/supported the SMI interface on Pi's then it might be possible with a big FIFO between the Pi and the sensor.

Try looking for another SBC with an exposed 12 bit camera interface, that might work.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
mikronauts
Posts: 2741
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Connecting image sensor to a Raspberry Pi.

Wed Dec 30, 2015 8:01 pm

bertwert,

You basically have three choices:

1) Use a Pi Camera

2) Use a USB camera

3) Spend a LOT of time & money, FAR more than the cost of a Pi camera, to try to do something else

I am talking of hundreds of hours learning the ins&outs of ARM, PRU on BBB, sensor data sheets etc.

Unless you have a huge budget (time + money) go with 1 or 2.
bertwert wrote:
mikronauts wrote:Not a chance.
That has a 12 bit data + clock output running at a high clock rate, no way to get it in via GPIO or USB.
What's the speed the Pi could handle?

Would a more photo specific rather than video sensor work better?
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7906
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Connecting image sensor to a Raspberry Pi.

Mon Apr 04, 2016 9:19 am

mikronauts wrote:If the Raspberry Pi Foundation finally documented/supported the SMI interface on Pi's then it might be possible with a big FIFO between the Pi and the sensor.
Hi mikronauts.

I don't know much about what/how they got used, but had you noticed:
https://github.com/raspberrypi/linux/bl ... 2835_smi.c
https://github.com/raspberrypi/linux/bl ... _smi_dev.c
https://github.com/raspberrypi/linux/bl ... smi_nand.c
and device tree bindings in Documentation/devicetree/bindings/misc/brcm,bcm2835-smi-dev.txt and Documentation/devicetree/bindings/misc/brcm,bcm2835-smi.txt

I recall some details of a conversation I had with Gordon of using an interface for data acquisition - I'd guess it was SMI as that's about the only one that would fit. I think there was some comment on the peripheral being very quirky/not how most people would have designed it. I don't know if they'd consider it production ready, but might be worth a play.
(NB This is not my area of knowledge, so I'm afraid I can't offer much support. I can look at the firmware driver source for SMI if there are specifics that you think that might reveal)
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
mikronauts
Posts: 2741
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Connecting image sensor to a Raspberry Pi.

Mon Apr 11, 2016 5:17 pm

Thank you!

I did not notice your kind reply, will now read those files carefully - it may have enough information for me to start playing with SMI.

I'll take you up on your kind offer to take a look at the SMI firmware if I have any questions after understanding the three C files.

Regards,

Bill
6by9 wrote:
mikronauts wrote:If the Raspberry Pi Foundation finally documented/supported the SMI interface on Pi's then it might be possible with a big FIFO between the Pi and the sensor.
Hi mikronauts.

I don't know much about what/how they got used, but had you noticed:
https://github.com/raspberrypi/linux/bl ... 2835_smi.c
https://github.com/raspberrypi/linux/bl ... _smi_dev.c
https://github.com/raspberrypi/linux/bl ... smi_nand.c
and device tree bindings in Documentation/devicetree/bindings/misc/brcm,bcm2835-smi-dev.txt and Documentation/devicetree/bindings/misc/brcm,bcm2835-smi.txt

I recall some details of a conversation I had with Gordon of using an interface for data acquisition - I'd guess it was SMI as that's about the only one that would fit. I think there was some comment on the peripheral being very quirky/not how most people would have designed it. I don't know if they'd consider it production ready, but might be worth a play.
(NB This is not my area of knowledge, so I'm afraid I can't offer much support. I can look at the firmware driver source for SMI if there are specifics that you think that might reveal)
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7906
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Connecting image sensor to a Raspberry Pi.

Mon Apr 11, 2016 5:42 pm

mikronauts wrote:Thank you!

I did not notice your kind reply, will now read those files carefully - it may have enough information for me to start playing with SMI.

I'll take you up on your kind offer to take a look at the SMI firmware if I have any questions after understanding the three C files.
Have fun :D
Please PM me questions with regard SMI firmware queries - there's unlikely to be confidential stuff in there, and I'm not sure if there's anything actually using the low level driver, but it's potentially stuff that shouldn't be on public forums.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
mikronauts
Posts: 2741
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Connecting image sensor to a Raspberry Pi.

Mon Apr 11, 2016 6:37 pm

Will do - thanks!
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

Return to “Other projects”