Preview

Analysis Of Rasberry Pi

Better Essays
Open Document
Open Document
1563 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Analysis Of Rasberry Pi
Sensor Interface for Rasberry Pi using Arduino and Nanpy By: Santhosh Jayarajan
1. Introduction
The Rasberry Pi which is a $ 25 credit Card Sized Computer has a good amount of computing power but lacks the ability to connect to field devices. This is due to the fact that the Rasberry Pi is a 3.3 V device and has no Analog channels. The Arduino on the other hand is a 5 V device that can interface many sensors and has many Analog, PWM and Digital I/O Channels. This article attempts to bring out the best in both worlds and explains a method to use the Arduino as a slave to gather field data and have the Rasberry Pi to use its computing power to achieve almost anything.
The Rasberry Pi is then programmed with Python and Tkinter to build
…show more content…
Fig 1: The Rasberry Pi and Arduino as Slave

The article is divided into 3 parts:
Installation of Nanpy on the Rasberry Pi.
Installation of the Arduino program.
Writing a GUI(Graphical User Interface)Python program on the Rasberry Pi with Tkinter to control the Arduino.

2. Block Diagram of the system

Fig: 2 Block Diagram of the system

3. Part 1: Installation of Nanpy on the Rasberry Pi.

(Please ensure that the Rasberry Pi ic connected to the internet for all the following steps.)

1. Step-1:
Start-up the Rasberry Pi and when the opening screen appears go to Accessories and select LXT terminal to evoke the Linux text interface.
The prompt will be: pi@rasberrypi - $ Enter the command: sudo apt-get install update This will install all updates on the Rasberry Pi and have all packages up to date.

2.
…show more content…
This will install the nanpy files for Pyton 3 on the Rasberry Pi.
If Python 2 is installed on the Rasberry Pi the command to be used is: sudo python setup.py install.
(sudo is a super user Do option).

5. Part 3: Programming in Python and Tkinter to Control an Arduino output.
In this final section a Python application will be developed which will use Tkinter(GUI Add-In for Pyhton).In the Rasberry Pi distro Python -3 and Tkinter are already preinstalled. When using Python 3 Tkinter is already installed. As an example we will write python code to achieve the following:
Establish connection between Rasberry Pi and Arduino.
With the Arduino as a slave manipulate the various pin modes.
Using two buttons in Tkinter turn ON and OFF the On –Board LED on Pin 13.
This program is a very basic program but provides the basic steps needed to provide the interface between the Rasberry Pi and Arduino.
Using this basic idea the Arduino can be controlled from the Rasberry Pi and can also be used as a sensor interface to read data and output data.
The Python Program is as

You May Also Find These Documents Helpful

  • Satisfactory Essays

    To run Mininet must be to open terminal from Ubuntu and then write some codes:…

    • 282 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    a. Should “problem” = program assignment of some sort, than the first step would be to design the basis of the program in pseudocode to gain a clear picture of what kind of commands will work where, then move into flowcharting to start putting together the logic.…

    • 848 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    This document provide a sample of what is possible, and could lead to a project worth the maximum grade of 100% Something to think about!!! Do not think this is what you have to do to get the maximum number of points. It is just a sample! You are only bound by your programming ability. Please do not try and do more than you are capable of. Think, plan, design and code YOUR final project. This is your opportunity to show off your skills!…

    • 675 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    • It helps in Keeping track of student’s performance throughout his stay in the institute. • It maintains the data of every student in the institute in terms of his attendance, Exam results, extracurricular activities like cultural events & sports. • This software helps the parents to know about each & every activity of there child. • The parents will get to know about there Childs absence to the class within 12 hours. • The exam results, Special events like sports & cultural functions will be known to the parents with in 12 hours from the time of announcement. How it works…

    • 2005 Words
    • 58 Pages
    Powerful Essays
  • Satisfactory Essays

    Dive Into Python ...............................................................................................................................................................1 Chapter 1. Installing Python...........................................................................................................................................2 1.1. Which Python is right for you?......................................................................................................................2 1.2. Python on Windows.......................................................................................................................................2 1.3. Python on Mac OS X.....................................................................................................................................3 1.4. Python on Mac OS 9......................................................................................................................................5 1.5. Python on RedHat Linux...............................................................................................................................5 1.6. Python on Debian GNU/Linux......................................................................................................................6 1.7. Python Installation from Source....................................................................................................................6 1.8. The Interactive Shell......................................................................................................................................7 1.9. Summary........................................................................................................................................................8 Chapter 2. Your First Python Program.........................................................................................................................9 2.1. Diving…

    • 123118 Words
    • 493 Pages
    Satisfactory Essays
  • Good Essays

    Our design consists of a microcontroller and several sensors mounted on field to gather information about the field environment and broadcast the information through a transmitter. The information gathered is then encoded using a microcontroller and send through a transmitter. At the receiver, we use another microcontroller to decode the received data packets and display the parameters on a monitor.…

    • 509 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    You are not required to have knowledge of hard core programming to install and use this software for designing your T-shirt. The usage is simple and anyone having basic knowledge of operating personal computer can commence creating outlandish design for themselves. With endless options in designing one can create his/her customized apparel with personal and social messages.…

    • 364 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Arduino

    • 611 Words
    • 3 Pages

    The Arduino IDE is a cross-platform application written in Java, and is derived from the IDE for the Processing programming language and the Wiring project. It is designed to introduce programming to artists and other newcomers unfamiliar with software development. It includes a code editor with features such as syntax highlighting, brace matching, and automatic indentation, and is also capable of compiling and uploading programs to the board with a single click. There is typically no need…

    • 611 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    This project is an electronic learning application or interactive quiz game that will enhance a student’s knowledge about I.T, programming languages, latest trend on technology, networking and more topics that are related to the course.…

    • 452 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    89s52 C Program

    • 1000 Words
    • 4 Pages

    Here is a very simple but complete example program to blink a LED. Actually it is the source code of the example project that we are going to construct in the next part of the tutorial, but for now it is important to concentrate on the programming to summarize the notions discussed above.…

    • 1000 Words
    • 4 Pages
    Good Essays
  • Good Essays

    RFID is Radio Frequency Identification consisting of a tiny silicon computer chip and an antenna, which the remote reader can scan and send to a database. It can be consider as a backbone of “internet of things”.…

    • 665 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Atmel Language

    • 1839 Words
    • 8 Pages

    This tutorial provides information on the tools and the basic steps that are involved in using the C programming language for the Atmel AVR microcontrollers. It is aimed at people who are new to this family of microcontrollers. The Atmel STK500 development board and the ATMEGA16 chip are used in this tutorial; however, it is easy to adopt the information given here for other AVR chips. This tutorial requires the following: • the AVR Studio produced by Atmel, • the WinAVR package by Sourgeforge WinAVR project, and • an STK500 development board produced by Atmel.…

    • 1839 Words
    • 8 Pages
    Powerful Essays
  • Better Essays

    solo

    • 58716 Words
    • 235 Pages

    in not starting from scratch, but instead “re-mixing” the book titled Think Python: How to Think…

    • 58716 Words
    • 235 Pages
    Better Essays
  • Satisfactory Essays

    digital literacy by josie

    • 959 Words
    • 4 Pages

    8. Working up from the first programme ‘Scratch’, learners progress through four terms of work until they begin learning programming language, Python – starting out…

    • 959 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    I tried writing many introduction but seeing that this is an interact module I decided to…

    • 1953 Words
    • 8 Pages
    Powerful Essays