7892 views|46 replies

1w

Posts

25

Resources
The OP
 

MicroPython driver for OV2640 camera [Copy link]

 
 

MicroPython ArduCAM OV2640 basic interface for ESP8266 and ESP32.

Pinouts

The method to connect the camera to ESP8266 and ESP32 is as follows

Camera Pinout ESP8266 Pinout ESP32 Pinout
CS GPIO2 GPIO15
MOSI GPIO13 GPIO13
MISO GPIO12 GPIO12
SCK GPIO14 GPIO14
SDA GPIO4 GPIO21
SCL GPIO5 GPIO22

Driver URL:

游客,如果您要查看本帖隐藏内容请回复

Latest reply

ore
learning   Details Published on 2024-9-12 11:28
 
 

1w

Posts

25

Resources
2
 
import ov2640
import gc
import time
import sys

FNAME = 'image2.jpg'

def main():
    try:
        print("initializing camera")
        cam = ov2640.ov2640(resolution=ov2640.OV2640_320x240_JPEG)
        #cam = ov2640.ov2640(resolution=ov2640.OV2640_1024x768_JPEG)
        print(gc.mem_free())
    
        clen = cam.capture_to_file(FNAME, True)
        print("captured image is %d bytes" % clen)
        print("image is saved to %s" % FNAME)
    
        time.sleep(10)
        sys.exit(0)
    
    except KeyboardInterrupt:
        print("exiting...")
        sys.exit(0)


if __name__ == '__main__':
    main()

How to use

 
 
 

1662

Posts

0

Resources
3
 

Where is the driver URL?

 
 
 

9702

Posts

24

Resources
4
 

Can OV2640 read images via SPI?

Comments

It looks like it's possible, but I haven't tried it yet.  Details Published on 2021-5-9 16:35
 
 
 

1w

Posts

25

Resources
5
 
littleshrimp posted on 2021-5-9 07:39 Can OV2640 read images via SPI?

It looks like it's possible, but I haven't tried it yet.

Comments

It seems that it was all transmitted via parallel port.  Details Published on 2021-5-9 18:59
 
 
 

9702

Posts

24

Resources
6
 
dcexpert posted on 2021-5-9 16:35 It seems to be possible in the example, but I haven't tried it yet.

It seems that it was all transmitted via parallel port.

Comments

Serial interfaces are now popular  Details Published on 2021-5-9 21:42
 
 
 

1w

Posts

25

Resources
7
 
littleshrimp posted on 2021-5-9 18:59 It seems that it was all transmitted via parallel port before

Serial interfaces are now popular

Comments

It is probably the OV2640 module plus the conversion chip.  Details Published on 2021-5-9 22:08
 
 
 

9702

Posts

24

Resources
8
 
dcexpert published on 2021-5-9 21:42 Serial interface is popular now

It is probably the OV2640 module plus the conversion chip.

 
 
 

62

Posts

0

Resources
9
 

Learn

 
 
 

1

Posts

0

Resources
10
 
Study
 
 
 

1

Posts

0

Resources
11
 
Study...
 
 
 

17

Posts

0

Resources
12
 
Thanks for sharing
 
 
 

5

Posts

0

Resources
13
 
Thanks for sharing
 
 
 

5

Posts

0

Resources
14
 

Learn from it, thank you!

 
 
 

53

Posts

0

Resources
15
 
This can be
 
 
 

1

Posts

0

Resources
16
 

Study

 
 
 

1

Posts

0

Resources
17
 
thank u!
 
 
 

1

Posts

0

Resources
18
 
study
 
 
 

188

Posts

0

Resources
19
 

Let's learn

 
 
 

1127

Posts

17

Resources
20
 
Take a look . . . . .
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list