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

    Links for code samples about sensors with WiPy2.0

    Scheduled Pinned Locked Moved WiPy 2&3
    3 Posts 3 Posters 1.5k Views 3 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.
    • L Offline
      livius
      last edited by livius

      I need to know if there are some working code for WiPy2.0
      for any "sensors". I know it is starting project but maybe somwhere are.
      I am interested in sensors like:

      • temperature:
        * ds18b20
        * DHT11 and DHT22

      • display:
        LCD 16x2 (HD44780)

      • distance
        HC-SR04

      any other...

      think about people first, then computers

      X 1 Reply Last reply Reply Quote 0
      • R Offline
        Ralph
        last edited by

        We are working on finishing an example project with a PIR sensor, expect this soon on the forum. I hope that will help you to get started implementing your own sensors.

        1 Reply Last reply Reply Quote 0
        • X Offline
          Xykon administrators @livius
          last edited by

          @livius said in Links for code samples about sensors with WiPy2.0:

          LCD 16x2 (HD44780)

          I'm using a PCF8591 I2C extender with a HD44780 compatible display. You can find several code examples and libraries for micropython on github that require minimal changes.

          HC-SR04

          This one requires Timer support to be implemented first (hopefully in tomorrow's firmware release).

          Never used the DHT* sensors so not sure about their communication protocol.

          Christian Ehlers

          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