Git Product home page Git Product logo

quirky-nimbus-hack's Introduction

quirky-nimbus-hack

Quirky Nimbus Hacking files

Based on the work of Edu Garcia's

and initial mynimbus.py Python script from Matt

Software Setup

SPI on Pi

The SPI peripheral is not turned on by default. To enable it, do the following.

  • Run sudo raspi-config.
  • Use the down arrow to select 5 Interfacing Options
  • Arrow down to P5 I2C.
  • Select yes when it asks you to enable I2C,
  • Use the right arrow to select the button.
  • Select yes when it asks to reboot.

check if I2C is loaded

Check if your I2C bus is loaded

ls /dev/i2c-*

Expected get something like: /dev/i2c-1

Set Baud rate

Important the Raspberry PI I2C baudrate must set to 400KHz to match imp002 baudrate. use :

sudo nano /boot/config.txt

and add

dtparam=i2c_baudrate=400000

if not present and reboot the RPI

Libraries

First update apt package manager

sudo apt-get update
sudo apt-get upgrade

Install command-line utility programs that can help get an I2C interface

sudo apt-get install -y i2c-tools

#Hardware Setup# I directly solder cables on the board imp002 to simplify the connection to the I2C bus of the Raspberry PI.

I2C bus wiring

imp002 I2C PCB pins

  • SDA => 14
  • SCL => 22
  • GND => 1

Raspberry PI I2C pins

  • SDA => 3
  • SCL => 5
  • GND => 1

The electric imp002 and Raspberry PI bas have 3.3Volts level. No level shifter board is required.

Detect the imp002 I2C address

sudo i2cdetect -y 1

You expect get address 0x25, the I2C address of the imp002.

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- 25 -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

quirky-nimbus-hack's People

Contributors

nechry avatar

Watchers

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