Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
composants:rpi_card [2020/11/06 16:18] – [Activating Camera] mh | composants:rpi_card [2021/05/23 19:48] (current) – [Raspberry Pi] mh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Raspberry Pi ====== | ====== Raspberry Pi ====== | ||
- | |||
=== Default login === | === Default login === | ||
Line 7: | Line 6: | ||
***Pass :** raspberry | ***Pass :** raspberry | ||
+ | At first boot on a fresh flash it is good practice to immediately run updates and configure a few options using '' | ||
- | ==== Activating | + | ===== SSH ===== |
<code bash> | <code bash> | ||
Line 18: | Line 18: | ||
It is good practice to have your router assign a static IP address to a RPi if you want to regularly connect to it via '' | It is good practice to have your router assign a static IP address to a RPi if you want to regularly connect to it via '' | ||
- | ==== Activating | + | ===== Camera |
+ | |||
+ | [[https:// | ||
+ | |||
+ | ==== Activating the camera | ||
<code bash> | <code bash> | ||
Line 26: | Line 30: | ||
Go to '' | Go to '' | ||
- | === Python script to take pictures === | + | |
+ | ==== Python script to take pictures | ||
Navigate to a folder where you want the script to be located. | Navigate to a folder where you want the script to be located. | ||
Line 51: | Line 56: | ||
//Warning, this will save to user pi's desktop, remember to change username if you aren't using user pi// | //Warning, this will save to user pi's desktop, remember to change username if you aren't using user pi// | ||
- | Run the script | + | Run the script |
+ | |||
+ | <code bash> | ||
+ | $ python camera.py | ||
+ | </ | ||
You can view the picture by either copying it to another machine with '' | You can view the picture by either copying it to another machine with '' | ||
- | ==== Running scripts | + | ==== Creating a Timelapse with Camera ==== |
+ | |||
+ | You can use the built-in '' | ||
+ | |||
+ | Example with '' | ||
+ | |||
+ | <code bash> | ||
+ | $ raspistill -w 1920 -h 1080 - t 10000 -tl 1000 -o image%04d.jpg | ||
+ | </ | ||
+ | |||
+ | This will take FullHD shots at 1 second interval for 10 seconds, naming them with 4-digit incremental numbers. | ||
+ | |||
+ | If no '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | [[https:// | ||
+ | ===== Scripts @ startup | ||
Modify the / | Modify the / | ||
Line 70: | Line 96: | ||
- | ==== Temperature checks ==== | + | ===== Temperature checks |
- | === CPU temp === | + | ==== CPU temp ==== |
<code bash> | <code bash> | ||
Line 79: | Line 105: | ||
Divide by 1000 to get °C format | Divide by 1000 to get °C format | ||
- | ---- | + | |
- | === GPU temp === | + | ==== GPU temp ==== |
<code bash> | <code bash> | ||
Line 86: | Line 112: | ||
$ / | $ / | ||
</ | </ | ||
- | ---- | + | |
These measures were done on a Rapsberry Pi 4 running Raspbian with no heavy-duty program running, no screen or USB devices attached and at a room temperature around 20°C | These measures were done on a Rapsberry Pi 4 running Raspbian with no heavy-duty program running, no screen or USB devices attached and at a room temperature around 20°C |