├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── esp32cam-mirco_python.bin ├── README.md └── camera.py /1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Himanshu495-rada/esp32-camera-micropython/HEAD/1.png -------------------------------------------------------------------------------- /2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Himanshu495-rada/esp32-camera-micropython/HEAD/2.png -------------------------------------------------------------------------------- /3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Himanshu495-rada/esp32-camera-micropython/HEAD/3.png -------------------------------------------------------------------------------- /4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Himanshu495-rada/esp32-camera-micropython/HEAD/4.png -------------------------------------------------------------------------------- /esp32cam-mirco_python.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Himanshu495-rada/esp32-camera-micropython/HEAD/esp32cam-mirco_python.bin -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # esp32-camera-micropython 2 | Creating Time-lapse video using esp32 camera module with the help of micropython 3 | 4 | sample images ![Image1](https://github.com/Himanshu495-rada/esp32-camera-micropython/blob/main/2.png?raw=true) 5 | 6 | ![Image2](https://github.com/Himanshu495-rada/esp32-camera-micropython/blob/main/3.png?raw=true) 7 | -------------------------------------------------------------------------------- /camera.py: -------------------------------------------------------------------------------- 1 | import machine 2 | from machine import Pin 3 | import camera 4 | import time 5 | 6 | flash = Pin(4, Pin.OUT) 7 | flash.value(1) 8 | time.sleep(1) 9 | flash.value(0) 10 | 11 | uos.mount(machine.SDCard(), "/sd") #mount the SD card 12 | camera.init() 13 | camera.quality(10) 14 | camera.framesize(9) 15 | count = 0 16 | while True: 17 | if count == 2200: 18 | print("Completed") 19 | break 20 | flash.value(1) 21 | pic = camera.capture() 22 | flash.value(0) 23 | file = open("/sd/pics/"+str(count)+".jpg", "wb") 24 | file.write(pic) 25 | file.close() 26 | print(count, " done") 27 | count += 1 28 | time.sleep(1) 29 | 30 | print("done") 31 | --------------------------------------------------------------------------------