Avatar for Gustav

Gustav

Member since Nov 2017 • Last active May 2020
  • 14 conversations
  • 48 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Gustav

    Alright, then i misunderstood. Ah yeah that's great, thanks Gordon.

    • 5 comments
    • 223 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for Gustav

    Thanks, that's great ! What do you mean by defining it as a number ? the reason has to not match that specific number right.
    Isn't that constant already defined ?
    define BLE_HCI_REMOTE_USER_TERMINATED_CONNECTIO­N 0x13 /**< Remote User Terminated Connection. */
    Do you mean that i should define it as 0x13 ?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Gustav

    Hey i'm trying to to do different things depending on what reason the ble disconnect says. Hard to view this live and debug.

    Got a MDBT42Q module hooked up the bangle. I wish to differentiate the gatt.device.disconnect() (user terminated disconnection) event and the event when range is reason to disconnect. Is this possible ? and what events might those be ? and how do i check them.

    Currently i do this with no luck, it seems that the same event is fired for both types of disconnection.

      NRF.on('disconnect', function (reason) {
        if (reason !== BLE_HCI_REMOTE_USER_TERMINATED_CONNECTIO­N) {
          standardBuzz();
        }
        connected = false;
      });
    

    Standard buzz never happends.

  • in Bangle.js
    Avatar for Gustav

    @jeffmer Ah.. Thank you !

    • 3 comments
    • 196 views
  • in Bangle.js
    Avatar for Gustav

    Hey i'm writing an application for controlling a MDBT42q module but i'm having issues with the connect disconnect events.

    I want to do a Bangle.buzz on connect/disconnect but they never fire.

    This should fire once i disconnect but no luck.
    NRF.on('disconnect', function() {Bangle.buzz()})

    How could i debug this further ?

    • 2 comments
    • 238 views
  • in Electronics
    Avatar for Gustav

    I am trying to power a low voltage tungsten halogen bulb using an MDBT42Q and an IRF3708 mosfet
    The lamp is a KANDOLite 6v 50w.

    Im trying to replicate the signal coming from another driver that successfully powers the lamp.

    The images with all statistics included is the original working solution.
    There is one image when the lamp is connected and one without the load.

    The image with fewer statistics is the signal from the drain pin in my solution.

    Generating the pwm signal with MDBT42Q feeding it to the mosfet gate and powering the lamp with 6v. But no luck. Is it even possible to do this ?

    • 7 comments
    • 859 views
Actions