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
Next revision Both sides next revision
raspberry:videolooper [2021/05/31 16:42]
admin [Software]
raspberry:videolooper [2021/06/07 16:35]
admin [SSH over USB]
Line 27: Line 27:
  
 === Autostart === === Autostart ===
 +
 To create the autostart open: To create the autostart open:
   $ sudo nano /etc/rc.local   $ sudo nano /etc/rc.local
Line 43: Line 44:
   # start LEDs blinking   # start LEDs blinking
   printf "start to blink an LED on GPIO 27\n"   printf "start to blink an LED on GPIO 27\n"
-  /home/pi/paper-duino-pi/blink_02.py &+  /home/pi/python/blink_02.py & 
 +e.g.: 
 +   $ wget http://www.dernulleffekt.de/programme/blink_02.py.tar 
 +   $ tar xf blink_02.py.tar 
 +   $ sudo chown root:root blink_02.py 
 +   $ sudo chmod 755 blink_02.py
  
 And to start the omxplayer add that: And to start the omxplayer add that:
Line 50: Line 56:
   omxplayer /home/pi/video/myvideo.mp4 &   omxplayer /home/pi/video/myvideo.mp4 &
  
-The video has to be an mp4 (H264) format\\ 
 To run the omxplayer in the background one has to add the "&" at the end of the line.\\ To run the omxplayer in the background one has to add the "&" at the end of the line.\\
  
 +Copy the video to /home/pi/video. It should be has to be an mp4 (H264) format.\\
 +
 +
 +
 +----
 +==== USB OTG ====
 +
 +To power the Pi and at the same time connect an USB hub to it with just a single USB cable one needs an USB OtG cable. An other way would be to solder a 100k resistor between the sense pin P40 and the ground pin P6 on the Raspberry Pi. That way every USB cable act as an OTG cable.
 +
 +
 +----
 +==== SSH over USB====
 +
 +[[raspberry:zero_over_usb|Connect a Raspberry Pi Zero over USB]]
  
 ---- ----