TCM8240MD connector and example

I would never use such a cannon for such a simple/cheap solution.

It’s like embedding a pentium to read the data of a temperature sensor…

I for one will stick to trying to figure out theese registers, and if it can’t work with a low mips mcu without a tonn of extra logic, then it isn’t worth it. There are plenty of other sensor chips that are better documented and I’ll rather use one of those.

For my design all I want is a sensor chip, a mcu and a memory device like a mini/microSD. No cannons to shoot this sparrow.

I may use the STM32 kit I have here to help facilitate the analysis and discovery, but that’s way too pricey for the final version.

Well, I’m not quite “there” yet but felt this should be shared…

http://kreature.org/ee/avr/cmos_cam/not … re_yet.png

As you can see, it’s humanoid. Camera is definately not using it’s auto functions or I’d not be purple. (Actually I was green untill I auto-balanced it.)

The image is still not full frame. Somehow it refuses to work with the correct area. It is however a good start in the general direction I want to go. This time I can reproduce it too, so atleast there’s a chance of learning what some more bits are doing.’

After the chineese hollidays I might get an ansver from china too. Hopefully a final version of the datasheet, not the draft… (Yes, I can say that now being finally deemed worthy!)

What would you guys want in the breakoutboard?

I am asking as I might do a few changes and etch a couple to you. Not just from the goodness of my heart. I also think the more ppl picking at the registers in this camera, the more a chance we have at getting some more usefull stuff out of it.

My current board has two regulators on it. A 1.6v for the core, and a 2.8v for the I/O. Both are 150mA regulators so they will handle the cameras requirements barely.

The thing is, many might want to use 3.3v or 5v on their microcontroller and that wouldn’t be too great with this setup. Even though 3.3v would eek by, it wouldn’t deliver much headroom for the 2.8v regulator. Frankly it’s not ideal for the I/O either on a 2.8v platform.

Maby some simple level conversion would be good. The complex stuff would be on the SDA pin as that is the only 2-way pin.

I just want your opinions and ideas. It might be a quick fix to make the breakout board something you would all find usefull.

I think just having all of the pins broken out to fit a standard dip socket would be what I would want. I could handle the voltage regulation and level shifting off board.

If I wanted more, it would only be to have regulation on board, the 1.6V and probably 2.5V as opposed to 2.8V, but that’s just me. With switching regulators, it should be a simple switch of a resistor to get the different voltage (and probably the same with the 2.8V). And depending on what type of regulator, you could probably get a buck/boost so the source voltage could be a fairly wide range.

I’ve been pretty bogged down with school work and work work, so I’ve not had much time to work on a board for this guy, but I do agree the more we can do the cheaper we should be able to get them.

I really wish SFE would let us know if they are already working on one though…

I already have 2 linear regs for the supply. Currently “MIC5205BMS TR” which has low drop and adjustable output with seperate ground reference. Changing output voltage is a simple equation. No ground-current compensation or such.

The cam is quite sensitive to switching noise so I opted to not use swmode regs. It doesn’t draw that much power so it seems fine as-is.

I’ll add 0-Ohms resistors to the signal pinns so one can add series resistors if needed. This might also help when running MCU at 5v or such to limit input-current.

Pullup resistors will be put on SDA and SCL as well as reset to ensure valid signals.

Spacing it out a bit more would also make it easier to solder.

The board will have two 2x5-pin headers carrying 8 signals pluss power and ground. One for data and one for control. I have matched these to STK500 so that the data port can be directly linked. Depending on the way you want to control the cam, the control port could possibly be directly linked too but for interrupt driving or such, a squid-cable could be used depending on MCU.

Just got me a pair of those cameras as well, and it seems someone is doing the PCB job for me - nice indeed! :slight_smile: What about the clock - will there be an onboard oscillator or would I need to feed the clock signal through a pin myself?

Wouldn’t you need at least a 15 pin header?

Power + ground

8 data lines, 1 clock line

V+H blanking

SDA/SCL

?

pellepl Yes, the PCB is almost done :slight_smile:

There won’t be a clock as the mcu you use to talk to it should ideally be synched to it for ease of readout. Essentially, you should thus create the clock. (use HW pwm!)

reklipz There are two 8+2 pin headers. A total of 20 pinns.

First header is for data only + gnd/pwr.

Second has EXTCLK, VBLK, HBLK, DCLK, STROBE, RESET, SDA, SCL + gnd/pwr.

The headers are positioned on opposite side of the pcb so you won’t have any dangly wires on the side with the cam.

Here’s how the pcb looks now:

http://kreature.org/ee/avr/cmos_cam/breakout_1.1.png

“features”:

  • 1-sided pcb

  • Camera/components on copper side

  • connectors on back

  • series resistors available on all signals

  • pulldown available on RESET

  • pullup available on SDA / SCL

Pinout DATA connector:

1 DATA0

2 DATA1

3 DATA2

4 DATA3

5 DATA4

6 DATA5

7 DATA6

8 DATA7

9 GND

10 PWR

Pinout for CTRL connector:

1 SCL

2 RESET

3 EXTCLK

4 SDA

5 HBLK

6 STROBE

7 DCLK

8 VBLK

9 GND

10 PWR

Due to power dissapation I don’t think input voltage should be abowe 5v.

Going to etch a couple bords tomorrow and make sure its all good :slight_smile:

The board looks very good!

Do you know how much you would be selling these for?

I may be interested in more than two.

Let us know how it goes!

-Nate

I am etching a board to test it now.

About cost, I think the cost of the board alone is silly vs the shipping from me. I live in Norway.

Still, I am willing to try as it will help me that more people are involved in the testing/fiddling.

The pcb alone wouldn’t be worth more than a buck or two but I think shipping by regular post is around $5 if I use cheapest worldwide letter.

Sparkfun has a pcb service and I’d be willing to cooperate with them if they wanted to handle this.

Just wish I had solder-masks…

http://kreature.org/ee/avr/cmos_cam/breakout_1.1.jpg

If this board was to be made professionally I’d ofcource do it 2-sided to tidy up the routing. Then I’d add silkscreen to connector-side so one would always have the pinout of the connectors available.

edit:

The large 1206 resistors are for all spots where user might want to change stuff. Only the power-system is set up with tiny stuff as that will be a 1-time affair. (0603 and 0805 for power system.)

Nice work! I for one would be interested of getting one of those (especially as I live in the neighboring country;) )!

A bit off topic perhaps, but when I did a PCB for the TCM8230 (the low-res equivalent cam) I used zener clamps to get 2.8V level on the inputs instead of resistors only. As I’m a software guy by learning, what are the pros and cons? For instance, could there be any problems using zeners with respect to high-frequency stuff like the clock?

It’s a fiddly buisiness no matter how you do it.

Zener clamps is good but you need to combine with series resistors for them to work. It starts becoming a lot of components.

For a 1-sided layout like this I’d have a hard time getting both clamp to ground with zener and series resistors in there. The series resistors help as they can jump traces, but the clamping zeners would do the opposite and need to jump to ground all over.

Also, running avr at 5v might not allow it to detect the 2.5 or 2.8v signal from the cam as high. I was going to use pullup in avr for it to get higher levels from the 2.8 while dimensioning the series resistor to balance the effect. I think I’ll stay at 3.3v to make it easier.

Ah, I’m doing it doublesided so I’ve got it a bit easier of course. I’m also sticking to 3.3v - I haven’t had the time to test my board though so we’ll see if it works when the fab is finished I guess.

Fab? You are having it made professionall`y?

I can’t afford that. Lucky you.

If I could have it fabbed, I’d make it 2-sided for sure.

A little piccy of the card…

http://kreature.org/ee/avr/cmos_cam/breakout_1.1b.jpg

Haven’t added the small resistors that set the voltage yet. Other than that, it’s ready to go. (Not happy with the flux in the solder I am using, think I need to pick up seperate flux…)

It’s a beauty! Can’t wait to hear if it works! Which are those cute little voltage regulators?

MIC5205BM5 TR — MICREL — IC REG LDO, 150MA

http://www.farnell.com/datasheets/112633.pdf

Cheap, and with seperate ground reference. It allows you to much easier set the voltage.

The equations are simply:

V2.8out = 1.242 * (1+R1/R2)

V1.6out = 1.424 * (1+R3/R4)

There is no adjustment needed for regulation-loop current or such things.

Using 1% resistors gives you 1% output accuracy. I have a bunch of theese and could send em with the pcb.

Well. It works as planned.

If only the cam could stop delivering what looks like UV images I’d be happy. There is actuallty a bit for that. I’ll test it when I get home from work :slight_smile: