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 - millennial

Pages: 1 [2] 3 4 ... 6
16
mc-Module / Re: Indexers How do they work?
« on: October 23, 2016, 07:12:48 pm »
I don't have an example, but maybe this short explanation will help.

In the example on page 56 and 57 there is a FooList that possibly extends the Base List class. In order to act as a List, FooList must implement the behavior of all of the List's functions/methods/subroutines. Lets rename "Foo" to "Car." The integer indexer is pretty simple for CarList, but the string indexer may be complicated. How do you find (index) a Car? By brand, year, model, or color? Your implementation of the signature below will define that.

Code: [Select]
Public Function Item(index As String) As Car

17
mc-Innovations / Re: mc-Things Video Suggestions??
« on: October 21, 2016, 10:59:14 am »
I turned on "issues" for the mcScript fork. By default, those are not turned on for forks. Thanks for pointing this out.

Perhaps you can pull request my pull request and I can merge your trivial changes?

I haven't done much work with sleep mode either. My question relates to the output data rates (ODR). Will those registers simply be set to the same byte value, which just causes them to be interpreted differently? This may affect interrupt configuration, specifically when the GetMaxTimeAndTimeStep function is used internally. Not sure of the right answer here.

To theorize about your interrupt question, perhaps the application code should put a while loop around GetIntSource until nothing is returned. Maybe the driver library can return data for the IntSource's in some kind of 2D list and we put the while loop in GetIntSource. Another option would be to turn off the ELE latches.

I'll put this content into some GitHub issues and we can continue the work there.

18
What about removing the space and the (1) from the file name?

19
mc-Innovations / Re: mc-Things Video Suggestions??
« on: October 20, 2016, 11:27:14 am »
Thanks, Nick_W. Your affirmation means a lot.

I drew upon the mc-Things alpha/beta and your code to make my mc-Module 110 version. Once I get the time, I'll be refactoring that code in a ST LIS2DH12 folder and publishing again.

Perhaps we can continue to pull from each other's ideas to make driver libraries available and easy to use. I particularly think version folders are important, so drivers can be enhanced without breaking existing application code.

20
mc-Innovations / Re: mc-Things Video Suggestions??
« on: October 19, 2016, 12:52:46 pm »
My mcScript forked repository has an accelerometer library for everyone to use and an example of how to use it at the following link.

Note that this only works for the mc-Module 110.

https://github.com/Stephen-Meyerhofer/mcScript/tree/master/libraries/accelerometer/mma8652/0.1.0

21
mc-Module / Re: Device Battery Voltage
« on: October 08, 2016, 02:11:17 pm »
No soldering or modifications were made to the mc-Module 120.

I'll send a message to you with the code.

22
mc-Module / Device Battery Voltage
« on: October 06, 2016, 08:13:04 pm »
My mc-Module 120 reports 2660 for Device.BatteryVoltage, yet when I use a digital multimeter on VDD and GND pins I read 2.96V. My multimeter seems to read 0.3V higher than the device.

Does anyone experience similar behavior with battery voltage?

Also (done with a different battery), does calling Device.BatteryVoltage substantially drain the battery? I ran a mc-Module 120 for only 12 days before the 3V CR2032 battery died. Granted, the battery may have been used for several firmware updates and is several months old, but it reported 2.865V 6 days ago. This mc-Module 120 reported temperature every 5 minutes and Device.BatteryVoltage every 1 day.

23
mc-Module / Re: Voltage Dividers (Resistors)
« on: September 21, 2016, 03:57:25 pm »
Is it really Kilo Ohms? Most LED tutorials say 330 Ohms is good. Are they leaving out the "Kilo?"

24
mc-Module / Re: Voltage Dividers (Resistors)
« on: September 21, 2016, 12:08:35 pm »
Re: SWD* pins -- Understood.

So it looks like Pins 0-4 have 470K resistors, and SDA + SDL have 10K resistors. Pins 5-8 have none?

25
mc-Dev Board / Re: GPIO pins
« on: September 21, 2016, 12:02:59 pm »
Great, makes sense. Thank you.

26
mc-Module / Voltage Dividers (Resistors)
« on: September 20, 2016, 10:53:24 am »
For people with basic Physics of Electricity and Digital Electronics knowledge, how do we know if it is OK to use a sensor directly with the mc-Module pins? What do we look for in product specifications that let us know if a voltage divider (or maybe a pull-up resistor) is necessary for a sensor?

In moisture sensor video (link below), there was a mention about not necessarily needing resistors because there are some built in to the mc-Module.

I've found sparkfun to be a source of information in this area. https://learn.sparkfun.com/tutorials/pull-up-resistors and https://learn.sparkfun.com/tutorials/voltage-dividers, specifically.

Also, is there ever a case where we would use the SWDCLK and SWDIO pins? SWD stands for serial wire debug, which doesn't sound like something for production purposes. Or is this for UART? SDA and SCL are for I2C, I guess. Any general knowledge about using the pins for additional sensors and expansions would be appreciated.

https://youtu.be/ZIvtMaYGKtw

27
mc-Dev Board / Re: GPIO pins
« on: September 20, 2016, 09:55:23 am »
Two pictures are worth 2000 words. Is this a bad idea?

The pins are in rows i and j, and columns 1-14.

28
mc-Dev Board / GPIO pins
« on: September 20, 2016, 09:33:45 am »
I have (probably) a simple question for Electrical Engineering experts. Why are there two rows of GPIO pins? It seems as though the mc-Module GPIO pins are doubled in count. I am assuming it would be bad to connect each of the 14 columns together by attaching a breadboard to all 28 pins because of possibly short circuiting the board?

Are there two rows so that we can output to two devices based on the state of one pin? I'm looking for 5th grader like knowledge.

29
mc-Dev Board / MQTT on mc-Dev Board
« on: September 19, 2016, 08:39:04 pm »
Is it possible that Lplan.Publish does not work when modules are hooked up to the mc-Dev board?

My guess is that the mc-Dev board might be disabling the mc-Module from communicating with the real mc-Gateway.

30
mc-Studio / Re: How do you create a thread
« on: September 12, 2016, 08:59:20 pm »
They have this documented in mc-Script, but in the release notes only "Sleep" and "Delay" are implemented on the Thread object.

It is not yet implemented functionality. I was looking at using Threads for something else, but settled on the fact that it just isn't possible yet. Hopefully it will come out soon. mc-Things tends to release things just when we need them :)

Pages: 1 [2] 3 4 ... 6