Giter Site home page Giter Site logo

ece-minibot-communication's Introduction

ece-minibot-communication

Code for UART communication between the Pi and Arduino

Use

A few things must first be configured on the Pi.

  1. Clone this repository
  2. Link this repository to directory cs-minibot using command "ln -s ~/ece-minibot-communication ~/cs-minibot"
  3. Enable UART in system options
  4. Remove line "console=serial0,115200" from /boot/cmdline.txt

The Arduino does not require special configuration, simply program it with arduino/main/main.ino

Performance

Performance had been characterized using a Python script which times 10,000 performances of each GPIO command. The results using a baud rate of 1MHz are as follows:

Command Total time (s) Time per command (ms)
digitalWrite 3.528 0.353
analogWrite 3.558 0.356
digitalRead 9.604 0.960
analogRead 9.991 0.999
motorDrive 3.786 0.379

Write commands require an average of ~0.4 ms, while read commands require an average of ~1 ms. The best apparent potential action to improve performance is finding better serial libraries for either of the Pi or Arduino.

ece-minibot-communication's People

Contributors

ahd59 avatar rohanag1 avatar rs872 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.