Skip to main content

Posts

Showing posts from August, 2016

MATLAB

Install the MATLAB Support Package for Raspberry Pi https://www.youtube.com/watch?v=Z9V4Xcxlc9Q&list=PLn8PRpmsu08rl1WhIlK-gj2H-6koUAHoh Programming Raspberry Pi with Simulink https://www.youtube.com/watch?v=J3ZpB0SfbNA&index=4&list=PLn8PRpmsu08rl1WhIlK-gj2H-6koUAHoh Using MATLAB and Raspberry Pi with an Accelerometer https://www.youtube.com/watch?v=gp6tPcPqJZE&index=6&list=PLn8PRpmsu08rl1WhIlK-gj2H-6koUAHoh

motor speed control using Raspberry Pi

Motor speed control using Raspberry P i3 The PI is one of most trusted project development platforms out there now. With higher processor speed and 1 GB RAM, the PI can be used for many high profile projects like Image processing and  Internet of Things . For doing any of high profile projects, one need to understand the basic functions of PI. We will be covering all the  basic functionalities of Raspberry Pi  in these tutorials. In each tutorial we will discuss one of functions of PI. By the end of tutorial series you will be able to do high profile projects by yourself. Check these for  Getting Started with Raspberry Pi  and  Raspberry Pi Configuration . We have discussed  LED Blinky ,  Button Interfacing  and  PWM generation  in previous tutorials. In this tutorial we will  Control the Speed of a DC motor using Raspberry Pi  and PWM technique. PWM (Pulse Width Modulation) is a method used for getting variable voltage out of constant power source. We have discussed abo

Print Data from a Sensor raspberry pi3

Print Data from a Sensor To demonstrate how to print data from a sensor, here’s a program that displays the temperature from a  DS18B20 Digital Temperature Sensor . There is some set up to do before you can get this to work on the Raspberry Pi, so check out our  tutorial on the DS18B20  to see how. In general, you take the input variable from your sensor and convert it to an integer to perform any calculations. Then convert the result to a string, and output the string to the display using  lcd.write_string(sensor_data()) : import os import glob import time from RPLCD import CharLCD lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw():     f = open(device_file, 'r')     lines = f.

LCD Interface Raspberry PI3

LCD with your  Raspberry Pi , there’s a good chance you’ll need to program it in Python at some point. Python is probably the most popular programming language for coding on the Raspberry Pi, and many of the projects and examples you’ll find are written in Python. In this article, I’ll show you how to program your LCD in Python, using the RPLCD library. I’ll start with showing you how to connect it in 8 bit mode and 4 bit mode. Then I’ll explain how to install the library, and provide example programs for printing and positioning text, clearing the screen, and controlling the cursor. I’ll also give you examples for scrolling text, creating custom characters, printing data from a sensor, and displaying the date, time, and IP address of your Pi. Connecting the LCD There are two ways to connect the LCD – 4 bit mode and 8 bit mode. 4 bit mode uses 6 GPIO pins, while 8 bit mode uses 10. Since it uses up less pins, 4 bit mode is the most common method, but I’ll explain how to set up

RASPBERRY PI ROBOTS

IF you are a beginner to Raspberry Pi and were looking for a simple hardware project, then look no further. This tutorial will show you to develop a python based robot which avoids obstacles and navigates freely. Obstacle avoiding robots are fairly common and easy to make. Here, you can use this project to add object avoidance functionality to your robot. Or simply use it to start messing around with python and the hardware peripherals on raspberry pi. This system uses IR modules to detect objects, but we will get to the technical side later. So, if you have a raspberry pi and want to build something based on hardware using it, just scroll down and have fun :). Check out the video at the bottom to see how the raspberry pi robot works. And if you are a true beginner, you can always use our free  eBook  on Raspberry Pi and Arduino to get started from step 0. Raspberry Pi robot components What are the stuff required to do this? Raspberry Pi B/B+ or 2 and basic peripherals: SD c