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 - mc-Josh

Pages: 1 [2]
16
mc-Module / Re: ListofShort.Min() Not working
« on: February 01, 2017, 03:55:28 pm »
Nick,

We have confirmed that the .Min() method returns the max value for all data types, not just Short. We will have this problem fixed in the next release. Thank you for pointing this out!

We have also tried to replicate the for loop step problem but it seems to be working fine for us. If I run the following code:

Code: [Select]
Class testCase   
    Shared Event Boot()       
        Dim value As Integer = 0       
        For a As Integer = 0 To 6 Step 2
            value = a
        Next       
    End Event   
End Class

I get the expected results of stepping by 2 per loop iteration. Can you elaborate on what you are seeing?

Josh

17
mc-Demo205 / Re: Casting Integer to Byte
« on: January 13, 2017, 03:55:42 pm »
You have to first create a byte variable and then cast it. The code below will cast the intNum as Byte to byteNum

Code: [Select]
Dim intNum As Integer = 44
Dim byteNum As Byte = 0
       
byteNum = intNum.ToByte()

If this doesn't answer your problem please post your code.

Josh

18
mc-Module / Re: Reed Switch Problems
« on: January 11, 2017, 09:43:13 am »
Try this event for the reed switch:

Code: [Select]
Shared Event ReedSwitchChanged()
        'debounce interrupt
        Thread.Sleep(100000)
        Thread.ClearHardwareEvent()
               
        If ReedSwitch = True Then
            'magnet far from reed switch
            LedRed = False   
        Else
            'magnet close to reed switch
            LedRed = True
        End If

    End Event

19
mc-Demo205 / Re: Sending GNSS data over Sigfox
« on: December 01, 2016, 03:45:03 pm »
@jflores:
Please post the entire mcSript project so we can look into this problem? Also, you are using an mcDemo205, correct?

Thanks,

Josh

20
mc-Module / Re: Module 120 accelerometer communications
« on: October 04, 2016, 03:05:01 pm »
Nick,

Were you able to get the LIS2DH12 up and running?

Thanks,

Josh

21
mc-Module / Re: Module 120 accelerometer communications
« on: October 03, 2016, 10:17:01 am »
Nick,

Just to be sure, are you using the latest versions of the mcMod120 firmware and mcStudio? Also, there is currently a bug on the mcMod120s with using the I2C at 400kHz so the bus can only be used at 250kHz or 100kHz.

Also, I have attached a very preliminary LIS2DH12 driver and test script. Please give it a try and let me know how it goes.

Thanks,

mc-Josh

22
mc-Module / Re: Voltage Dividers (Resistors)
« on: September 21, 2016, 10:26:21 am »
If you take a look at the schematic for the module: http://www.mcthings.com/s/mcMod110-Schematic-1.pdf . It shows what resistor values are connected to the pins.

The SWDCLK and SWDIO pins are required for production programming of the mcModules, they are not used during normal operation and must be left unconnected.

23
mc-Dev Board / Re: GPIO pins
« on: September 21, 2016, 10:20:07 am »
You are correct, the pins directly across from each other are duplicated (pins 1 and 2 are 3V3, pins 3 and 4 are PIN0, pins 5 and 6 are PIN1, and so on). As long as you only connect the pins with the same signal together (pin 3 to pin 4 for PIN0) you will not have any problems.

24
mc-Product General / Re: Considerations on Wireless Range
« on: September 09, 2016, 04:30:32 pm »
Nick, thanks a lot for this detailed post. I just have a few comments to add below.

You are correct, we are using an inverted-F type antenna based on the TI DN0007 design note. The ground plane for the antenna runs the entire area of the mcmodule directly under it.

1) Surroundings: You are correct that the materials in the near field of the antenna have a large impact on the impedance which effects the matching. The antenna on the mcmodule is matched to an open air environment. Different materials have different effects on the antenna matching, plastics and wood have minimal impact whereas metals, liquids, and people (holding the device in your hand) have a huge impact on the matching. Placing the mcmodule on a drywall or wood surface will have minimal impact on the RF performance whereas placing the device on a metal door with have a LARGE impact, try placing the mcmodule as far away as possible from the metal surface for best results.

2) Ground Plane: We have done a quite a bit of RF testing of the mcmodule in an anechoic chamber enviroment. We did testing of the mcmodule both with and without the coin cell with no notable degradation of the RF performance with the coin cell installed.

3) Shielding: Placing the mcmodule in a metal fridge or freezer will have a huge impact on the rf performance. The only way for the RF signal to be received or transmitted would be through the non-metal gaskets of the freezer. Also, unless you are using a battery that is designed to work at lower temperatures the voltage of the battery will be lower with will effect the tranmitted power of the device.

4) Attenuation: Again, different materials attenuate RF signals worse than others. Metals, liquids, and people(mostly liquid) have a much greater effect then wood or plastics.

5) Orientation: Polarization of the antennas also has a large effect on the range. In our testing in an anechoic chamber environment we have seen differences of 9~10 dBm between horizontal and vertical polarization. Simply rotating your mcmodule by 90 degrees (or changing the position of the mcGateway) can have a huge impact on the range.

The 200m range we have tested is line of sight in open air.

The next iteration of the mcgateway will include a PA/LNA which will increase the power output and also the receiver sensitivity of the mcgateway. We also have a horizontally and vertically polarized antenna we can switch between to provide antenna diversity which will also increase the range. In addition to this, the mcMod120 includes a radio with slightly improved power output and receiver sensitivity as well.

If you have any other questions please post them.
 
mc-Josh

25
mc-Innovations / Re: Help with Thermistor Library
« on: July 11, 2016, 04:26:06 pm »
It is very simple to connect a thermistor to an mcModule. You will need to create a voltage divider with the thermistor and another resistor connected to VDD. Then you will simply read the output voltage with the ADC on the mcModule. The output voltage will depend on the characteristics of the thermistor and the value of the other resistor in the divider.

Here is the code if you have connected the output of the voltage divider to PIN0 of the mcModule and pin 6 as the voltage of the resistor divider to not waste power:
Code: [Select]
Define PinMode Pin0 As AnalogInput Alias thermistorVoltage
Define PinMode Pin6 As DigitalOutput Alias enableThermistorVoltage

Class thermistor
   
    Shared Event measureThermistor() RaiseEvent Every 60 seconds
       
        enableThermistorVoltage = True 'turn on voltage divider
        Thread.Sleep(20000) 'sleep 20ms for voltage to stabilize
        Dim voltage As Short = thermistorVoltage 'return thermistor voltage in mv
       
        'convert voltage to temperature based on thermistor voltage divider characteristics
       
        enableThermistorVoltage = False 'turn off voltage divider to save power
    End Event
   
End Class

You can also refer to "Section 3.8.3 Analog Inputs" of the mcmod110 product specification:
http://static1.squarespace.com/static/5644f11fe4b0d6ca7d80d351/t/575b3d4b40261d09e17d0c60/1465597268701/mcMod110+Product+Specification+V0.3.pdf

Hope this helps.

~mc-Josh

26
mc-Module / mcMod110 Product Specification Release
« on: June 10, 2016, 05:23:02 pm »
Hey guys, we have finally made the time to create the mcMod110 product specification. It can be found here:

http://www.mcthings.com/s/mcMod110-Product-Specification-V03-kz9k.pdf

If you have any comments or suggestions feel free to post them to this thread.

mc-Josh

27
mc-Module / Re: Re-Post "TempSensor mcModule"
« on: June 08, 2016, 03:13:56 pm »
@M, the temperature sensor is located as shown in the attached picture.



Pages: 1 [2]