Install the Raspberry Pi camera and take a picture using Node-Red
- Pi Camera
- Pi Camera Ribbon Cable
Power off your Raspberry Pi and the follow the instructions on this page to install the camera.
Setting up Node-Red
Start Node-Red and navigate to 127.0.0.1:1880. Into the flow area drag an “inject” node and a “camerapi takephoto” node.
Link them together.
Deploy the flow, then point the camera at something and press the inject button. The camera will take a picture and then store it in /home/pi/Pictures by default. Open the file explorer.
Click on the Pictures folder.
There your photo is!
- Try and trigger the camera node with a Raspberry Pi input node connected to a button or PIR sensor.