Raspberry Pi 4

Raspberry Pi 4 vs Raspberry Pi 3+

The Raspberry Pi 4 Model B is finally here! This is a huge leap forward for single-board computing and what better way to explore it than power one up, run some tests and stress it out!

Here are the test results for those people that are interested with some popular benchmarking tools:

Raspberry Pi 4 vs 3

* Note, I didn’t have a fast enough USB 3 External drive to be “sure” of the max-speed. I ran an iperf3 to simulate a full-bandwidth connection to USB3 and achieved 5.1Gbps (which is consistent theoretical “max” USB 3 speeds).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

Connect Bluetooth Headset Or Speaker

In this post, I’ll share with you the final solution that lets you connect your Bluetooth headset or speaker to Raspberry Pi 3.
You’ll be able to use both output speaker and input microphone.

By the way, thanks to the people who kept me updated in the comments, it was a long journey together (:

Firstly, let me sum up the root causes of this long time problem:

  1. Drop-out of ALSA support in Bluez v5 (replaced by PulseAudio).
  2. Unavailability of correct PulseAudio version for Raspbian Jessie.
  3. Incorrect audio rooting SCO-HCI for the Bluetooth chip BCM43438.

I solved the issues 1 and 2, but I couldn’t find a good solution for 3. For issues 1 and 2, I found how to install manually PulseAudio, with code sources, or using Debian backports. For issue 3, I used a BT-USB dongle that bypassed the internal Bluetooth chip and let me use A2DP and HSP profiles.

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!