element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Off the Shelf
  • Challenges & Projects
  • Project14
  • Off the Shelf
  • More
  • Cancel
Off the Shelf
Blog Arduino Nano as Raspberry Pi IO I2C expander PART 2 - the I2C bus -  copter rotor control via I2C joystick -
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Off the Shelf to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: robogary
  • Date Created: 20 Sep 2021 2:43 PM Date Created
  • Views 1207 views
  • Likes 5 likes
  • Comments 0 comments
  • offtheshelfch
Related
Recommended

Arduino Nano as Raspberry Pi IO I2C expander PART 2 - the I2C bus -  copter rotor control via I2C joystick -

robogary
robogary
20 Sep 2021

Off the shelf Part 2 -

Please see part 1 for the hardware overview - I'll sketch up a schematic later, its not complicated, mostly IO on I2C and their 3V power supplies.

The DC brushless motor and driver is a touch more involved, but still pretty simple.

 

........the Raspberry Pi and Arduino Nano get powered up.

Checking the I2C map until the wiring is straightened out and see all the I2C addresses that are wired.

The important ones now are x08 (the Arduino Nano) and x40 (the 16 ch servo hat).

YAY ! the Nano is recognized.

The Arduino program controlling the Neopixels has had added the code which seems to be enough to recognize the Nano on I2C:

#include <Wire.h>

and in void Setup()

Wire.begin(8);                // join i2c bus with address #8

 

image

x1e is a compass IC, x53 is a ADXL345 3 axis accelerometer, x77 is a humidity sensor,  not sure what x70 is from.

Created sample programs for the Arduino Nano and Raspberry Pi to have some basic functionality of each feature:

 

The neopixel tail rotor  controlled by an Arduino Nano from analog joystick inputs.

https://youtu.be/QVE3VqoM3l0

 

The main rotor controlled the Raspberry Pi using Python and I2C servo hat.

https://youtu.be/l5YQBAQblRU

 

 

Next is a example the data exchange between the Arduino Nano and the Raspberry Pi -

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube