element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Intel
  • Products
  • Manufacturers
  • Intel
  • More
  • Cancel
Intel
Forum MRAA and I2C Display
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Intel requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 4 replies
  • Answers 2 answers
  • Subscribers 4 subscribers
  • Views 252 views
  • Users 0 members are here
  • arduino_breakout
  • gpio pinout
  • lcd_screens
  • mraa
  • i2c_conflicts
  • intel edison
Related

MRAA and I2C Display

vandia
vandia over 5 years ago

Pastebin URL: https://pastebin.com/QgCNn7eD

 

Anyhow, I'm using the SSD1306 I2C screen module. I'm programming in Python, and have it working pretty well, for the most part.hat is,

Until I try to use MRAA to read analog inputs. Suddenly, the screen will not turn on.

 

With the commented section commented, the screen turns on. Uncommented, it turns off, even though the code still runs in the terminal.

 

Has anyone else had this problem, is it documented somewhere, or is something else wrong that I'm doing, involving using both?

  • Reply
  • Cancel
  • Cancel

Top Replies

  • Workshopshed
    Workshopshed over 4 years ago +1 suggested

    There are shared pins on the Edison, is that analogue pin used for something else? Have you tried a different pin?

  • Workshopshed
    Workshopshed over 4 years ago in reply to vandia +1 suggested

    Perhaps in the hardware guide for the Edison breakout? There are ways to emulate an analogue pin with two digital pins and a timer if you need or an external A-D chip

  • vandia
    vandia over 4 years ago in reply to Workshopshed +1 verified

    So, according to: http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edison-arduino-hardware-guide.pdf

     

    Don't use Analog 5/6 if you plan to use I2C, they both use the same Arduino pin.…

Parents
  • Workshopshed
    0 Workshopshed over 4 years ago

    There are shared pins on the Edison, is that analogue pin used for something else? Have you tried a different pin?

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • Workshopshed
    0 Workshopshed over 4 years ago

    There are shared pins on the Edison, is that analogue pin used for something else? Have you tried a different pin?

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • vandia
    0 vandia over 4 years ago in reply to Workshopshed

    Thanks for the reply!

     

    I actually just thought of that idea literally less than 5 minutes ago.
    Is there a list of shared pins? I'm not really used to the concept, except for also controlling an LED.

     

    I'm using analog pin 5, for the record.
    My problem with this is, what's the easiest/cheapest way to use multiple analog inputs then, in Python?
    I'd like to reserve 4 for the Compound Eye later, but apparently need 4 analog inputs for that, while there's only 5 on the Edison...


    I'll try to get back to the Edison and this idea tomorrow, in the meantime. ^_^

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • Workshopshed
    0 Workshopshed over 4 years ago in reply to vandia

    Perhaps in the hardware guide for the Edison breakout? There are ways to emulate an analogue pin with two digital pins and a timer if you need or an external A-D chip

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • vandia
    0 vandia over 4 years ago in reply to Workshopshed

    So, according to: http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edison-arduino-hardware-guide.pdf

     

    Don't use Analog 5/6 if you plan to use I2C, they both use the same Arduino pin.
    This seems to be a thing with the Atmega chip, not the Edison itself.I hope this helps someone in the future!

     

    For Future Search Results of others:
    Can't Read Analog while using I2C because shared pin on Arduino Edison
    Above is worded in a way search engines would recognize it, please excuse the grammar, normal folks!

     

    I sincerely thank you for your input, Andy! But since I already thought of that, and had to find the documentation myself, I'm marking this the correct answer for having a direct reference to conflicting pins (and changing tags).

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube