Make a Raspberry Pi Random Video Player

If you’ve got a bunch of movies, shows or other local video files and can’t decide which one to watch, you can make Raspberry Pi choose for you, at the touch of a button. To be fair, there are easier ways to play a random video, either from local files or on the web, but they aren’t as fun as this project. So grab the popcorn and let’s start building and coding our own Raspberry Pi random video player!

Hardware

Building the circuit for this project is simple. We only require three buttons, connected to the GPIO at pins 2,3,4 and each of these buttons also needs to be connected to GND, for this we can use a single GND pin on the Pi, and a female to male jumper wire. Connected to the – rail of a breadboard means that we have multiple GND connections that can be connected via the two male to male jumper wires. See the diagram in the download for this project for more information.When the hardware is built, attach all of the accessories required for your Pi and boot to the Raspbian desktop.Read More

MPU6050 Interfacing with Raspberry Pi using ‘C’

Introduction:

  • MPU6050 sensor module is an integrated 6-axis Motion tracking device.
  • It has a 3-axis Gyroscope, 3-axis Accelerometer, Digital Motion Processor and a Temperature sensor, all in a single IC.
  • It can accept inputs from other sensors like 3-axis magnetometer or pressure sensor using its Auxiliary I2C bus.
  • If external 3-axis magnetometer is connected, it can provide complete 9-axis Motion Fusion output.
  • A microcontroller can communicate with this module using I2C communication protocol. Various parameters can be found by reading values from addresses of certain registers using I2C communication.
  • Gyroscope and accelerometer reading along X, Y and Z axes are available in 2’s complement form.
  • Gyroscope readings are in degrees per second (dps) unit; Accelerometer readings are in g unit.

For more information about MPU6050 Sensor Module and how to use it, refer the topic MPU6050 Sensor Module in the sensors and modules section.

Read More

Adding USB Attached GPS to your Raspberry Pi Projects

This quick learning guide will show you everything you need to do to add position tracking to your Pi project using the open source GPS daemon ‘gpsd’ and an inexpensive USB to TTL adapter cable or via direct-wiring to the built-in Pi UART pins

Please note this guide installs a system service called gpsd which you can then query for data. You may be better off just using pure python to read data from the GPS, its less complex in many cases

Read More

Build a Stratum 1 NTP (Time) Server

The Raspberry Pi Model B was released in 2012 and, since then, a number of useful applications regarding this device have ensued. However, one particular application that is seldom overlooked when dealing with the Raspberry Pi is its ability to be used as a Stratum 1 NTP server and allow you to synchronize clocks across networks like the Internet. For me, this useful trick has actually made my entire office far more efficient. 

Read More

Do NOT follow this link or you will be banned from the site!