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

    Pairing two WiPy 3.0 with BLE.

    Scheduled Pinned Locked Moved WiPy 2&3
    1 Posts 1 Posters 206 Views 1 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.
    • V Offline
      victor.dlcn
      last edited by

      Hello guys !

      I’m currently working on a project with two WiPy 3.0. The goal of this project is to send a voltage from the first WiPy 3.0 to the second WiPy 3.0 with Bluetooth and more particularly with BLE. Here a schematic of my project for a better understanding :

      Capture.PNG

      I currently know how to read the voltage, I’ve no problem with this. Here the code that I use :

      adc = machine.ADC() 
      
      apin1 = adc.channel(pin='P13', attn = machine.ADC.ATTN_6DB) 
      
      val1 = apin1()
      

      But, I have a problem with the BLE. First I don’t know how to match the two WiPy 3.0. So here are my question :

      1 - How to match the two WiPy 3.0 ? I know that there are some examples in the documentation but it didn’t work for me.
      2 - Why the connection is refused when I used the fonction “bluetooth.connect(mac_addr)” ? Don’t worry I know how to get the MAC adress of the WiPy 3.0
      3 - Finally, what should I put in the boot.py file ?

      Thank you in advance for your response.

      Victor

      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