Page 1 of 1

SCCB comms via I2C?

Posted: Sun Oct 28, 2018 11:11 am
by kwiley
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?

Re: SCCB comms via I2C?

Posted: Sun Oct 28, 2018 8:07 pm
by OutoftheBOTS_
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

Re: SCCB comms via I2C?

Posted: Sun Oct 28, 2018 8:20 pm
by OutoftheBOTS_
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.

Re: SCCB comms via I2C?

Posted: Mon Oct 29, 2018 3:49 am
by kwiley
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.