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

    Android WiPy2.0 Bluetooth connectivity?

    Scheduled Pinned Locked Moved Discussion
    bleandroidbluetoothconnectionwipy 2.0
    4 Posts 2 Posters 1.6k 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.
    • P Offline
      panos29
      last edited by panos29

      Hi,
      I want to try and create a wearable medical imaging device for a Uni project. I want to gather voltage data from electrodes (process it via 8 channel ADC) and sent it to my smartphone using Bluetooth. Will this be possible using the WiPy 2.0? I have read that it doesnt support pairing, but someone mentioned in another thread that it is still possible to exchange data between the two, even without pairing. If the WiPy 2.0 is unsuitable for this, could you propose any other alternatives?

      WiPy 2.0 is very appealing cause of powerful processor, 8 channel ADC, and DAC.

      PS: Does anyone know the sampling rate of the ADC and DAC maximum freq on the wipy 2.0? I haven't found this on any datasheet.

      Thanks,
      Panos

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @panos29
        last edited by robert-hh

        @panos29 Calling dac.write() to set a value takes about 33 µs, call adc() to get a value takes about 38 µs.
        P.S.: If you require a high quality ADC, do NOT use the internal ones. They are quite noisy show some non-linearity. For you application, the noise may be the bigger problem. And obviously, for medical applications you need an analog input stage for amplification and filtering.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          panos29 @robert-hh
          last edited by

          @robert-hh Thanks for the reply. About the ADCs, will I be able to get decent measurements using the WiPy ADCs? The project isn't really intended for professional use, so as long as I get the measurements and a more or less correct output on my android phone, I'll be happy.
          Because I read that pycom doesn't support pairing, will I be using "GATT" to send data to my phone?

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @panos29
            last edited by

            @panos29 It's more about the ADC range, which is about 0.07 - 1.1V for the reading between 0 and 4096. I assume you would always need some kind of pre-amplifier/buffer, at least to protect the esp32 against damage,, and if you do not need to take values at hight speed, you can always use averaging to reduce the noise.
            The esp32 chip is told to have a built-in preamplifier, but that is not supported by Micropython, and I do not know whether it works.

            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