SCCB comms via I2C?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
kwiley
Posts: 140
Joined: Wed May 16, 2018 5:53 pm
Contact:

SCCB comms via I2C?

Post by kwiley » Sun Oct 28, 2018 11:11 am

There is some discussion about cameras going on in other threads. I noticed that some of the cameras available use an SCCB bus, which appears to be very similar to I2C. Has anyone actually used an SCCB device with a PyBoard yet?

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: SCCB comms via I2C?

Post by OutoftheBOTS_ » Sun Oct 28, 2018 8:07 pm

I have been using these cameras on a STM32F407VET writing my code in C and to use the SCCB I just used the standard HAL libraries for I2C and they worked fine.

As far as I can tell SCCB is identical to I2C protocol

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: SCCB comms via I2C?

Post by OutoftheBOTS_ » Sun Oct 28, 2018 8:20 pm

The simple way to test if it works is supply a clocking signal to the XCLK input then read the output on the PCLK on a scope and it should be the same as the input signal then use SCCB to change the clock divider and if everything is working fine you will see the effect of the clock divider on the PCLK pin.

kwiley
Posts: 140
Joined: Wed May 16, 2018 5:53 pm
Contact:

Re: SCCB comms via I2C?

Post by kwiley » Mon Oct 29, 2018 3:49 am

Guess I'll have to decide if I want to try it. The cameras cost nothing, so there's no harm in it, other than the risk of wasted time.

Thanks.

Post Reply