[{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003cp\u003eA frame-capture demo with Pi Pico, OV5640 camera, and CircuitPython.\u003c/p\u003e\n\u003cp\u003eThis is a simple camera demo project to capture a 240x240 px grayscale frame every 2 seconds, convert the 8-bit pixel data to 1-bit, then print pixels to the serial console with Unicode Block Element characters.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/000/967/original/hardware.jpg?1720391420","metadata":{"caption":""}},{"element_type":"markdown","content":"\u003ch2\u003eHardware\u003c/h2\u003e\n","metadata":{"markdown":"## Hardware"}},{"element_type":"product","content":"https://www.adafruit.com/product/5905","metadata":{}},{"element_type":"product","content":"https://www.adafruit.com/product/4883","metadata":{}},{"element_type":"product","content":"https://www.adafruit.com/product/5582","metadata":{}},{"element_type":"product","content":"https://www.adafruit.com/product/5945","metadata":{}},{"element_type":"markdown","content":"\u003ch2\u003eGetting Started\u003c/h2\u003e\n\n\u003cp\u003eTo begin,\n\u003ca href=\"https://learn.adafruit.com/how-to-solder-headers?gad_source=1\u0026amp;gclid=EAIaIQobChMIhdCV2_-VhwMVkG1_AB1_4gmMEAAYASAAEgKgQ_D_BwE\"\u003esolder the headers\u003c/a\u003e,\nassemble the stack of boards,\n\u003ca href=\"https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython\"\u003einstall CircuitPython\u003c/a\u003e,\nthen copy the project bundle code to your CIRCUITPY drive (check out the \"Download Project Bundle\" button below). Once\nthat's all done, \u003ccode class=\"inline\"\u003ecode.py\u003c/code\u003e will begin capturing camera frames and printing them\nto the\n\u003ca href=\"https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console\"\u003eserial console\u003c/a\u003e.\nIf you want to keep a frame, press the shutter button to\nstop the camera. To restart the camera, type Ctrl-C then Ctrl-D in your serial\nterminal emulator.\u003c/p\u003e\n\n\u003cp\u003eIt helps to use a serial terminal emulator that can run at a fast baud rate, like 115200. On macOS, I use \u003ccode class=\"inline\"\u003escreen -fn /dev/tty.usbmodem2201 115200\u003c/code\u003e in a Terminal window (\u003ccode class=\"inline\"\u003eCtrl-A\u003c/code\u003e, then \u003ccode class=\"inline\"\u003ek\u003c/code\u003e, then \u003ccode class=\"inline\"\u003ey\u003c/code\u003e to exit when you're done).\u003c/p\u003e\n\n\u003cp\u003eIf you point the camera at a browser window with the\n\u003ca href=\"https://learn.adafruit.com/qr-codes/overview\"\u003eqr-code Learn guide\u003c/a\u003e,\nthe output should look similar to this (if you make your terminal's font size \u003cem\u003ereally\u003c/em\u003e small):\u003c/p\u003e\n","metadata":{"markdown":"## Getting Started\n\nTo begin,\n[solder the headers](https://learn.adafruit.com/how-to-solder-headers?gad_source=1\u0026amp;gclid=EAIaIQobChMIhdCV2_-VhwMVkG1_AB1_4gmMEAAYASAAEgKgQ_D_BwE),\nassemble the stack of boards,\n[install CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython),\nthen copy the project bundle code to your CIRCUITPY drive (check out the \"Download Project Bundle\" button below). Once\nthat's all done, `code.py` will begin capturing camera frames and printing them\nto the\n[serial console](https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console).\nIf you want to keep a frame, press the shutter button to\nstop the camera. To restart the camera, type Ctrl-C then Ctrl-D in your serial\nterminal emulator.\n\nIt helps to use a serial terminal emulator that can run at a fast baud rate, like 115200. On macOS, I use `screen -fn /dev/tty.usbmodem2201 115200` in a Terminal window (`Ctrl-A`, then `k`, then `y` to exit when you're done).\n\nIf you point the camera at a browser window with the\n[qr-code Learn guide](https://learn.adafruit.com/qr-codes/overview),\nthe output should look similar to this (if you make your terminal's font size *really* small):"}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/000/968/original/guide-screenshot.jpg?1720392222","metadata":{"caption":""}},{"element_type":"markdown","content":"\u003ch2\u003eCircuitPython Code\u003c/h2\u003e\n","metadata":{"markdown":"## CircuitPython Code"}},{"element_type":"button","content":"https://github.com/samblenny/camtest/releases/download/v0.1.4/camtest-bd65a2e.zip","metadata":{"class":"btn btn-large btn-block btn-primary","button_type":"primary","target":"_blank","zip_folder":"false"}},{"element_type":"embed","content":"https://github.com/samblenny/camtest/blob/v0.1.4/code.py"}]