GithubHelp home page GithubHelp logo

propellerpi's Introduction

PropellerPi

Description

This project is about facilitating communication between the Propeller microcontroller and the Raspberry Pi. The general idea behind this is to take advantage of the Propeller's parallel processing capabilities to handle the transfer of information from one computer to another.

We approached this project by analyzing the Propeller's architecture and the Propeller C language. We initially wanted to communicate over Serial Peripheral Interface (SPI), but we had trouble because we couldn't assign one device to be the slave.

We did get communication working using I2C. We were able to send values from the propeller to the Pi.

Next Steps

To make communication work, we would have to script a method for the propeller to notify the Pi that's responsible for receiving the computed results. That way, we can have two-way communication between the Propeller and the Pi.

To make SPI feasible, We would have to write some low-level code to make the Propeller take on the slave role.

Instructions

Run this command in the Raspberry Pi terminal:

sudo pigpiod You should also make sure the Raspberry Pi has I2C enabled.

Next: Open the i2c_test.c in the SimpleIDE. Run the program in that IDE. Then run the getsignal_I2C.py program in the Pi terminal:

python getsignal_I2C.py

You should obtain the second input in the i2c_out() method in the i2c_test() function.

Further Notes

Make sure the Propeller and Raspberry Pi are grounded Make sure you use GPIO Pins 18 and 19 in the Raspberry Pi

propellerpi's People

Contributors

kuannie1 avatar nathanieltan avatar

Watchers

 avatar  avatar  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.