JoeJohnson34
Member
Hello, I am working on correctly wiring an OV7670 without FIFO RAM camera sensor to a teensy 4.0. My goal is to stream the images via USB to my computer (similar to this example). I haven't found a wiring diagram specifically for teensy 4.0. Below is how I think it should be done but I would appreciate guidance on this as I don't want to fry any components.
For reference, the labeled pin layout of the sensor is in the following picture with the exception that PWDN is labeled "PWNN" on my sensor:
I will power the sensor by an external power source rather than pulling power from teensy. Below is a table of the sensor pins and which pins I believe they should connect to on teensy 4.0 (OV7670 > T4).
Finally, I believe that I need to add a couple resistors. I was having trouble finding documentation on this and did see a few conflicting resources. However, for the following I used the previously linked to example starting at the 4:42 mark of the video.
SCL - Has a 10k resistor from 3.3V power source to SLC on sensor and then a wire to pin 19 on teensy. (mark 5:33)
SDA - Same as SCL with a 10k resistor from 3.3V power source to SDA on sensor and then a wire to pin 18 on teensy. (mark 5:33)
MCLK - A voltage divider is necessary. There is a wire from common ground to a 1k resistor and a 680 Ohm resistor to pin 23 on Teensy. Between the resistors, I wire to MCLK on the sensor. (mark 4:43)
Please let me know if I have anything wrong with this set up. Thank you for reading my post!
For reference, the labeled pin layout of the sensor is in the following picture with the exception that PWDN is labeled "PWNN" on my sensor:
I will power the sensor by an external power source rather than pulling power from teensy. Below is a table of the sensor pins and which pins I believe they should connect to on teensy 4.0 (OV7670 > T4).
Code:
3.3V > 3.3V power source
GND > Common ground
SCL > 19 (with 3.3V power and 10k resistor)
SDA > 18 (with 3.3V power and 10k resistor)
VS > 17
HS > 16
PCLK > 12
MCLK > 23 (with voltage divider)
D7 > 7
D6 > 6
D5 > 5
D4 > 4
D3 > 3
D2 > 2
D1 > 1
D0 > 0
RST > 3.3V
PWNN > Common ground
Finally, I believe that I need to add a couple resistors. I was having trouble finding documentation on this and did see a few conflicting resources. However, for the following I used the previously linked to example starting at the 4:42 mark of the video.
SCL - Has a 10k resistor from 3.3V power source to SLC on sensor and then a wire to pin 19 on teensy. (mark 5:33)
SDA - Same as SCL with a 10k resistor from 3.3V power source to SDA on sensor and then a wire to pin 18 on teensy. (mark 5:33)
MCLK - A voltage divider is necessary. There is a wire from common ground to a 1k resistor and a 680 Ohm resistor to pin 23 on Teensy. Between the resistors, I wire to MCLK on the sensor. (mark 4:43)
Please let me know if I have anything wrong with this set up. Thank you for reading my post!