composants:rpi_card

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
composants:rpi_card [2020/11/06 16:51] – [Camera] mhcomposants: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 ''raspi-config'' before proceeding to any more tuning.
  
-==== Activating SSH ====+====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 ''ssh'' 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 ''ssh''
  
-==== Camera ====+===== Camera =====
  
-=== Activating the camera ===+[[https://wiki.mchobby.be/index.php?title=Pi-HQ-CAM-LENS|External wiki information on different cameras]] 
 + 
 +==== Activating the camera ====
  
 <code bash> <code bash>
Line 28: Line 30:
 Go to ''Interface Options'' then ''Camera'' and activate it. Raspi-config will propose a reboot which should be accepted. Go to ''Interface Options'' then ''Camera'' and activate it. Raspi-config will propose a reboot which should be accepted.
  
----- 
  
-=== 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 63: Line 64:
 You can view the picture by either copying it to another machine with ''scp'' or by using a screen and mouse/keyboard on the pi itself. You can view the picture by either copying it to another machine with ''scp'' or by using a screen and mouse/keyboard on the pi itself.
  
----- +==== Creating a Timelapse with Camera ====
- +
-=== Creating a Timelapse with Camera ===+
  
 You can use the built-in ''raspistill'' tool or make up your own in your choice of code language. You can use the built-in ''raspistill'' tool or make up your own in your choice of code language.
Line 78: Line 77:
  
 If no ''-w'' and ''-h'' options are provided, the Raspberry Pi will default to taking full sized pictures : 4056 x 3040 which will weigh approx. ~6 MB each. Also note that a Pi 4 will not be able to take these effeciently at an interval ~< 2s. If no ''-w'' and ''-h'' options are provided, the Raspberry Pi will default to taking full sized pictures : 4056 x 3040 which will weigh approx. ~6 MB each. Also note that a Pi 4 will not be able to take these effeciently at an interval ~< 2s.
-==== Running scripts at startup ====+ 
 +''raspistill'' has a lot of options and effects that can be activated/parametered, have a look at ''raspistill --help'' or ''man raspistill'' 
 + 
 +[[https://www.raspberrypi.org/documentation/usage/camera/raspicam/timelapse.md|Official Documentation]] 
 +===== Scripts @ startup =====
  
 Modify the /etc/rc.local file (requires sudo) Modify the /etc/rc.local file (requires sudo)
Line 93: Line 96:
  
  
-==== Temperature checks ====+===== Temperature checks =====
  
-=== CPU temp ===+==== CPU temp ====
  
 <code bash> <code bash>
Line 102: 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 109: Line 112:
 $ /opt/vc/bin/vcgencmd measure_temp (Full Path) $ /opt/vc/bin/vcgencmd measure_temp (Full Path)
 </code> </code>
-----+
  
 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
  • composants/rpi_card.1604677904.txt.gz
  • Last modified: 2020/11/06 16:51
  • by mh