Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    external sensor program to pycom

    Scheduled Pinned Locked Moved Getting Started
    pycomi2cexternal sensor
    3 Posts 2 Posters 651 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Juan_Peroza
      last edited by

      Greetings

      I am looking to create a program for a sensor without a library; is there a "general" structure to make the program?
      I am trying to communicate between the sensor and the pycom with I2C.

      If someone can point me to a some sort of "skeleton" and fill the gaps and make some tweaks I belive that would help me alot

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @Juan_Peroza
        last edited by

        @juan_peroza It all depends on what exactly you need/want to achieve, including the network you use, polling frequency, whether you have some local logic before sending or you just poll and send, whether you need deep sleep or not, etc.

        Have you checked the many examples in the documentation? Especially https://docs.pycom.io/tutorials/all/i2c since you plan to use an I2C sensor...

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Juan_Peroza @jcaron
          last edited by

          @jcaron as of right now what I want to achieve:
          Using a SCD30 sensor (which gets humidity, temperature and CO2 levels) read the data and save it, for that I intend to create (or modify based on other libraries) the library for the sensor.

          I already have the adress of the sensor and the hexadecimal "commands" and I am trying to use the libraries of the Pysense sensors as a template

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom