Giter Site home page Giter Site logo

arduino_2_raspi's Introduction

Arduino_2_Raspi

This repository aims to aid those who would like to connect an Arduino uno and a Raspberry pi 3 via serial communication (UART) the harder way ;).

Concept

The purpose of the project is to be able use the GPIO pins of raspi (3.3V tolerant)to perform serial communication with an Arduino uno which runs at a higher voltage (5V). The most widely advised solution is to use a logic level shifter but this is not a cheap way. The method used for the project was to make a Voltage divider circuit with simple and cheap resistors to bring down the votage from the Arduino Tx line.

Serial Comm

A short note on Serial Communication. In this type of comm there exists a total of 3 ports the transimmision (Tx) , the recieving(rx) and ground. Its is important to know the baurate of the serial comm so that it can be monitored in the serial monitor of Arduino. This rate can be set.

Physical circuitry

The solution I had come up with was inspired link from Oscar Liang. This article discusses other techniques too and I strongly recommend reading it.

For a more clear understanding the fritzing diagram form the link mentioned earlier.

Once you run the programs on the arduino and raspi after correctly connecting the ports, one can monitor it via the serial monitpr provided by arduino through another computer, example of how it will look.

Installation and Usage

  • First clone the repo in both your system and Raspberry pi
  • Compile upload the arduino code into the arduino uno.
  • ensure the connections are done properly
  • open the serial monitor.
  • run the python code from the Raspberry Pi

P.S : ensure in Raspi config the serial communication is enabled.

arduino_2_raspi's People

Contributors

akchobby avatar

Stargazers

Mario Gabriel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.