https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=15327
https://www.maketecheasier.com/watching-videos-on-raspberry-pi/
http://stevenhickson.blogspot.co.uk/2012/12/running-omxplayer-from-command-line.html
Aug 21 2016
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=15327
https://www.maketecheasier.com/watching-videos-on-raspberry-pi/
http://stevenhickson.blogspot.co.uk/2012/12/running-omxplayer-from-command-line.html
Comments Off on omxplayer – Watch Videos from Command Line
Aug 21 2016
I2C Expansion:
Java version -> http://pi4j.com/
Part 1: https://www.youtube.com/watch?v=swW9KJRyLeA
Part 2: https://www.youtube.com/watch?v=D-cTUEKbJJA
Part 3: https://www.youtube.com/watch?v=uLD6dRim67A
Part 4: https://www.youtube.com/watch?v=swW9KJRyLeA
Part 5:
Python
Part 1: https://www.youtube.com/watch?v=ZNNpoLFbL9E
Part 2: https://www.youtube.com/watch?v=9uot9uIC5CA
https://www.youtube.com/watch?v=grItDpy3TRM
https://www.youtube.com/watch?v=J6KsTz6hjfU
https://learn.sparkfun.com/tutorials/raspberry-gpio/c-wiringpi-example
https://www.element14.com/community/servlet/JiveServlet/previewBody/73950-102-10-339300/pi3_gpio.png
Comments Off on WiringPI – GPIO
Aug 21 2016
Raspberry PI 3 Rasbain-Jessie is a Debian distribution we will need. Three options exist:
NOOBS the preferred version during build because it will ask at every boot if you wish to overwrite (quick rebuild process).
Rasbain-Jessie is preferred over the NOOBS version for production (end-state) because it will NOT ask at every boot if you wish to overwrite.
I created a backup of the NOOBS disk using Win32 Disk Imager to READ and can now restore it with a WRITE using Win32 Disk Imager. Here is my backup: pi3_backup.img.rar (1.01GB).
Windows may not always work per the Installing Operating System Images guild, I’ve also use pwfree91.exe and SDFormatter.
Comments Off on Rasbain
Aug 21 2016
http://plugable.com/2014/11/06/how-to-switch-to-usb-audio-on-raspberry-pi/
http://www.instructables.com/id/Use-USB-Sound-Card-in-Raspberry-Pi/?ALLSTEPS
In the Debian “Squeeze” image the ALSA sound drivers are considered experimental and have been disabled by default. To enable sound you need to type the commands below into the command line :
sudo apt-get install alsa-utils
That will install the required sound driver files and tools. Type “Y” when prompted. The following command will load the sound driver :
sudo modprobe snd_bcm2835
By default the output is set to automatically select the interface (HDMI if available otherwise analog). You can force it to use a specific interface using :
sudo amixer cset numid=3 <n>
Where <n> is the required interface : 0=auto, 1=analog, 2=hdmi. To force the Raspberry Pi to use the analog output :
sudo amixer cset numid=3 1
You will need to run the modprobe command again when your Pi is rebooted/restarted.
Playing A WAV File
In order to play a WAV file we need a file to play. Type the following command to download a test WAV file :
sudo wget http://www.freespecialeffects.co.uk/soundfx/sirens/police_s.wav
sudo wget http://www.freespecialeffects.co.uk/soundfx/sirens/police_s.wav
sudo wget http://www.freespecialeffects.co.uk/soundfx/computers/bleep_01.wav
Now we can play it :
sudo aplay police_s.wav
If you are lucky the sound will play through your speakers or headphones.
I tried a number of WAV files but only some of them played. Hopefully this will be resolved in future releases of the sound drivers.
Playing an MP3 Using MPG321
There are numerous ways to play MP3s from the command line but I tend to use MPG321. This can be installed using :
sudo apt-get -y install mpg321
Once installed we can grab an MP3 to experiment with :
wget http://www.freespecialeffects.co.uk/soundfx/household/bubbling_water_1.mp3
The MP3 file can be played using :
mpg321 bubbling_water_1.mp3
The volume can be adjusted using the ‘g’ command line option. In the example below I set the volume to 50% :
mpg321 -g 50 bubbling_water_1.mp3
USB Sound: https://www.pubnub.com/blog/2015-10-14-text-to-speech-audio-broadcast-with-raspberry-pi/
Comments Off on Sound Driver
Aug 21 2016
Raspberry Pi 3 applications for CarPC (software in ordered by complexity).
Equipment needed:
What we are trying to do:
http://engineering-diy.blogspot.ro/2015/01/raspberrypi-carpc-tutorial.html
If you care to understand the scripts, read this.
sudo su
cd /root/
download Pi3CarAudio_2016_09_06-19_05.rar (35.01 mb) to /root/
wget -O /root/Pi3CarAudio.rar https://electronics.qbytesworld.com/wp-content/uploads/media//raspberrypi/scripts/Pi3CarAudio_2016_09_06-19_05.rar
unzip to /root/Pi3CarAudio/
chmod u+x Pi3CarAudioInstall.sh
./Pi3CarAudioInstall.sh
carpc20150329.zip (308.13 mb) may be based on old wheezey-raspbain image: http://downloads.raspberrypi.org/raspbian/images/
https://downloads.raspberrypi.org/raspbian/images/raspbian-2015-05-07/
export PATH=$PATH:/path/to/dir
Comments Off on CarPC – CarPI
Aug 21 2016
KODI replaces XBMC. –> HERE.
http://kodi.wiki/view/HOW-TO:Install_Kodi_on_Raspberry_Pi
http://openelec.tv/forum/126-3rd-party/75537-fm-radio-receiver-for-kodi-for-the-raspberry-pi-1
Things to review…XBMC
Create KODI Plugins -> https://www.youtube.com/results?search_query=create+kodi+plugin
https://www.youtube.com/watch?v=6aQ6T7RljkM
https://www.youtube.com/watch?v=_ZQQgonRiHk
See FM-Radio for possible plug-ins.
Create KODI Skin -> http://kodi.wiki/view/Skin_development
skin.CarPC-touch_carbon-master
–> http://arendwierks.blogspot.com/p/touchscreen-fix-raspberry-pi-xbmc-kodi.html
openCarPC
CarPC -> http://kodi.wiki/view/raspberry_Pi
Comments Off on KODI
Aug 21 2016
$ sudo apt-get install mpg123 $ cd /tmp $ wget http://www.richardfarrar.com/audio/right.mp3 $ wget http://www.richardfarrar.com/audio/left.mp3 $ mpg123 right.mp3 $ mpg123 left.mp3
Comments Off on Playing Music – mpg123
Aug 21 2016
Espeak is a more modern speech synthesis package than Festival. It sounds clearer but does wail a little. If you are making an alien or a RPi witch then it’s the one for you! Seriously it is a good allrounder with great customisation options.
Install Espeak with:
sudo apt-get install espeak
Test Espeak with: English female voice, emphasis on capitals (-k), speaking slowly (-s) using direct text:-
espeak -ven+f3 -k5 -s150 "I've just picked up a fault in the AE35 unit"
http://elinux.org/RPi_Text_to_Speech_(Speech_Synthesis)
http://stackoverflow.com/questions/31603555/unknown-pcm-cards-pcm-rear-pyaudio
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Need to comment them out in:
pi@raspberrypi:/usr/share/alsa $ sudo nano alsa.conf
http://blog.scphillips.com/posts/2013/01/sound-configuration-on-raspberry-pi-with-alsa/
Comments Off on Espeak Text to Speech
Aug 21 2016
wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add - echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list sudo apt-get update sudo apt-get install chromium-browser rpi-youtube -y
https://www.raspberrypi.org/forums/viewtopic.php?t=121195
Comments Off on RaspberryPI Chromium
Aug 21 2016
https://www.raspberrypi.org/forums/viewtopic.php?t=63950&p=472984
Enter the following command to edit the resolv.conf file.
sudo nano /etc/resolv.conf
Enter the follow Google public dns server IP address.
nameserver 8.8.8.8
name server 8.8.4.4
Press CTRL-X to exit but remember to save the file by accepting the changes.
Comments Off on Changing DNS servers to google