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
Intel
  • Products
  • Manufacturers
  • Intel
  • More
  • Cancel
Intel
Forum ADC For Compound Eye on Edison
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Intel to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 8 subscribers
  • Views 2517 views
  • Users 0 members are here
  • python
  • atmega
  • gpio
  • ir sensor
  • arduino
  • intel edison
Related

ADC For Compound Eye on Edison

vandia
vandia over 8 years ago

Hi, this question is possibly specific to a couple of different requirements, partially because *spoiler* I have no clue what I'm doing! XD

Seriously though, I'm going to want to connect my Compound Eye (IR Sensor) at some point to my Edison on an Arduino Breakout Board.

 

I'm programming in Python, and while I'm familiar with how they work/what they do, I don't really know:
-how to communicate with one via GPIO

-how to connect the compound eye: Can 1 ADC read multiple inputs, and relay it digital to a single GPIO?

-If so, what should I look for when comparing? I'm actually going to need at least 5 extra inputs.
-if so, how would I relay that information in Python?
I only recall experience turning GPIO on/off, reading if it's powered, and with writing I2C.

 

I'm already using 1 I2C device (screen), if that's how they communicate, and am considering using a second. As such, I also know you can't always choose the address of the buses, and may get a conflict.

 

I'm limited to using only 4 Analog Inputs on the Edison, with all 4 already used reserved now, without starting with the Compound Eye yet, before someone asks why I need this.
The Atmega chip conflicts A4/5 with SCL/SDA, so using I2C, I have to find another communication.

 

 

I'm sorry, as I know parts of this may belong somewhere, or has been asked somewhere.... but it would also likely be difficult for me to piece that information together. I know things are largely undocumented still with the Edison, and even though it works similar to the RPi, that it's GPIO handler and the Edison's (MRAA) work a bit differently in coding; I did not want to be confused by this either. Again, please forgive me my ignorance on this. If it's included in the microcontrollers class, I plan to take that, but it would still unlikely answer how to program it in python with MRAA.

 

Thanks for your time!

  • Sign in to reply
  • Cancel

Top Replies

  • rachaelp
    rachaelp over 8 years ago in reply to vandia +3
    vandia wrote: Didn't he reference both, nanoseconds and uS? I thought both were 1/1000th though then? *confused* ms = millisecond = 1/1000th of a second us = microsecond = 1/1000000th of a second ns =…
  • mcb1
    mcb1 over 8 years ago in reply to vandia +2
    Edison and ADC throw some extra issues. It is a multiplexed arrangement, where an extra chip is involved, as opposed to many of the other uP's. This may have the effect of slowing it down. You may have…
  • mcb1
    mcb1 over 8 years ago in reply to vandia +2
    Do you happen to have an estimate on the actual delays between the onboard, GPIO connected, and I2C ADCs? Sorry no I don't. This one suggests a conversion time of 3.2uS but there are some other figures…
Parents
  • shabaz
    shabaz over 8 years ago

    I didn't understand entirely what the intended design is, but if you're using Python, it would be worth checking what speed you can control I/O at. It could be a lot slower in Python than using compiled code in other languages like C. At least, it was almost two orders magnitude slower on the Pi, I have not tried on Edison.

    Also, usually precise time can't be guaranteed from a user application due to the nature of Linux, that may or may not be an issue depending on what you wish to do.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • vandia
    vandia over 8 years ago in reply to shabaz

    Need something to update about a few times a second, to detect objects in front of me. I'm then using I2C to print that to a screen as I get it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • vandia
    vandia over 8 years ago in reply to shabaz

    Need something to update about a few times a second, to detect objects in front of me. I'm then using I2C to print that to a screen as I get it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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