Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kbrooking

Pages: 1 ... 5 6 [7]
91
mc-Product General / Re: Where I'm keeping my Code
« on: September 20, 2016, 09:16:44 pm »
Thanks Nick,

I also noticed that the link to the data sheet is broken. If you need any help with the library let know what I can do.

92
mc-Product General / Re: Where I'm keeping my Code
« on: September 19, 2016, 03:08:33 pm »
Hello Nick,

I'm using the 120 modules. Could that be the reason?

93
mc-Product General / Re: Where I'm keeping my Code
« on: September 18, 2016, 08:05:14 pm »
Hello Nick,

In the below code snippet from the MMA8652 library, the whoAmI() function call is returning 0x00 and so the Accelerometer is never enabled.
Any suggestions as to why it is not returning 0x4a?

Public Sub New()
        gAccelerometer = I2c.Create(I2C_SPEED, Pin.SCL, Pin.SDA, I2C_ADDR)
        If whoAmI() = 0x4a Then
            online = True
            reset()
            // Set interrupt active low
            write(CTRL_REG3, read(CTRL_REG3) & ~IPOL_MASK) // clear bit 1 (active low)
            // Set interrupt push/pull
            write(CTRL_REG3, read(CTRL_REG3) & ~PP_OD_MASK) // clear bit 0 (push-pull)
        End If
    End Sub

94
mc-Product General / Re: Where I'm keeping my Code
« on: September 18, 2016, 12:16:41 pm »
Thanks Nick. Good information here but, Iím a bit confused.

Are we responsible for instructing mma8652fc which specific events we want to detect (via the CTR_REG4 while in Standby mode) or is the mma8652fc always monitoring these events and triggering the interrupts automatically?

95
mc-Product General / Re: Where I'm keeping my Code
« on: September 17, 2016, 07:00:24 pm »
Hello Nick,

Iím looking over your DoorSensor code and is very interesting. A lot here a newbie could learn from.

I know itís a lot to ask but, would it be possible for you to do an article stepping us through your code?

 I know I, as well as others in the community could really benefit from this. ;D

96
mc-Product General / Eagle CAD library for 310
« on: September 12, 2016, 12:03:50 am »
Does mc Things provide an eagle CAD library for the mc module310?

97
mc-Studio / Problem converting floats to strings
« on: September 10, 2016, 01:25:53 am »
The test code below sets x as a float
                                 assigns the value 1057.01 to x
                                 converts x to a string
                                 adds the converted string (strTempf) to the payload
                                 publishes it via MQTT

The problem is that the payload is empty when it gets to the subscriber. If I change x to an integer it works fine. I see the string "1057.01" at the subscriber.

Is there a problem converting floats to string with the ToString() function?

Class TestFloat2String
    Shared Event GetTemp() RaiseEvent Every 1 Minutes
        Dim x As Float
        x = 1057.01
        strTempf = x.ToString()
        payload.Add(strTempf)
        Lplan.Publish("RoomTemp", payload)
    End Event
End Class

98
mc-Product General / Re: Where I'm keeping my Code
« on: September 09, 2016, 10:49:44 pm »
Hmmm... That's interesting. So you can reuse other folks Aduino code samples on these devices as well, is that correct?

99
mc-Module / Re: Modules drop off network
« on: September 09, 2016, 10:36:03 pm »
Hello Nick,

How are you transmitting the boot messages and capturing in your code?

100
mc-Product General / Re: Where I'm keeping my Code
« on: September 09, 2016, 09:54:23 pm »
Thanks Nick. Much appreciated. Lots of good stuff here to get newbies started.

One question. The "Class to utilize MMA8652 Accelerometer" is this the accelerometer that comes on the Mod120 or is this an external sensor you added?

101
mc-Product General / Re: Considerations on Wireless Range
« on: September 09, 2016, 09:46:06 pm »
Great information. Thanks to both Nick and Josh for providing.

Any idea on how much further the range will be extended with PA/LNA?

102
mc-Studio / Re: mc-Studio crashes on startup
« on: September 07, 2016, 01:56:38 pm »
Yep, working now. Much appreciated.

103
mc-Things General Discussion / Repeater Product
« on: September 06, 2016, 10:56:28 am »
Just a product suggestion...

 LinkLabs, a company working in the LoRa space has a repeater product that can extend the range of their GW. The benefit of a repeater is that it only requires power (i.e. solar). No internet connection needed. Imagine if mc-Things had a repeater product that could be deployed in a neighborhoods, farm fields, small communities...etc extending mc-air as far out as necessary. This would be great in remote areas where no other lpwan exists.

Anyway, just a suggestion.

104
mc-Studio / mc-Studio crashes on startup
« on: September 06, 2016, 10:05:23 am »
I just installed mc-Studio on a Windows 10 machine and get the following error on startup.

"ERROR in mcStudio supporting thread. System.NullReferenceException: Object reference not set to an instance of an object....
see attached for further details of the error.

So far I have only downloaded and installed mc-Studio. I have not yet connected to any devices. Only tried to start mc-Studio and is as far as I've got.

Any suggestions would be greatly appreciated.




[ Guests cannot view attachments ]

Pages: 1 ... 5 6 [7]