Code Monkey home page Code Monkey logo

Comments (37)

sslupsky avatar sslupsky commented on June 19, 2024 2

@facchinm Thank you. I will see if I can get this done today and test it.

When do you expect the v2 board will be available?

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024 1

Hi @facchinm I have a company here that has a laser that can cut an annulus around the via from the bottom of the board. I dropped off two boards and asked them make the modification to both boards. I'll let you know how they turn out when I get them back.

I would like to order 50 pcs of the v2 board. Any idea yet when I could do that?

from mkrwan.

paddygoat avatar paddygoat commented on June 19, 2024 1

Please give us some indication of when rev2 boards are available ..... Please? .... grovel ... grovel ..... Pretty Please? .... more grovelling .....

from mkrwan.

facchinm avatar facchinm commented on June 19, 2024 1

@sierrasprout yup, they are here https://store.arduino.cc/mkr-wan-1310 πŸ˜‰

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024 1

@humbertokramm The murata firmware update process is very different from updating the Arduino IDE. You flash an "update sketch" to the 1300 and then run it. The update sketch then flashes the murata device with an image of the murata firmware binary contained within the sketch. I believe the latest release version of the murata firmware is 1.2. There is another version being tested at the moment but it breaks the protocol between the murata device and the samd mcu. That requires quite a bit of change on my end so I haven't worked with it much yet.

The changes to the 1300 are quite tricky to make. You need to very precisely cut some traces and drill out a via.

It is unfortunate the 1310 power supply was not optimized for improved power consumption. Sleep current of more than 100uA is a major concern for battery powered applications.

from mkrwan.

facchinm avatar facchinm commented on June 19, 2024

Hi @sslupsky,

we've been tracking down the issue and it is an hardware problem indeed.
The issue is related with VDD_TCXO being always on, also when the module goes into deep sleep modes.
With the actual hardware the minimum power consumption is 1.15mA as you correctly found out.
We are going to produce rev2 of the boards with this problem fixed; if the target is not a 10-years battery powered device the current revision is still fine, otherwise we'll provide a replacement board as soon as it's available via the usual support channels.

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@facchinm Thank you for the update, this is helpful to understand the problem. Page 8 of the Murata Specification BP-ABZ-B (Reference circuit) says:

_for VDD_TCXO connection
Option1: Connect VDD_TCXO to VDD
Option2: Connect VDD_TCXO to PA12 to make sure MCU can control TCXO on/off

The board designer selected option 1 but really we need option 2 to achieve low power.

Does the firmware have the ability to control the VDD_TCXO using PA12? If I can arrange to cut the power plane connection (using a laser) slightly to the left of the via above pin 48 and wire pin 48 to pin 1, will that fix the problem? Can you confirm if you have been able to test this in your lab and what power consumption you achieved by turning VDD_TCXO off?

from mkrwan.

facchinm avatar facchinm commented on June 19, 2024

@sslupsky I can confirm that cutting the (tiny) net between the via and the module brings the consumption down to the expected 30uA (this completely breaks the transmission capabilities); I've not been able to solder the right side of the net with PA12 testpoint but the code already controls that pin (see https://github.com/arduino/mkrwan1300-fw/blob/master/Drivers/BSP/MLM32L07X01/mlm32l07x01.c#L138) so, if you were able to do this operation, I expect the board to behave exactly as v2

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

Hi @facchinm, I have made the modification however there is still an issue.

When powered by USB, the board boots, the sketch does its customary wait for serial timeout and then joins the LoRa network using OTAA. After this the sketch sends a LoRa message and then goes to sleep. When you look at the PA12/VDD_TCXO pin on an oscilloscope, I can see it toggle from 0V to 3.3V when the Murata module is accessing the LoRa network. Everything appears to work as expected.

When powered by applying 3.3V to the Vbatt terminal block (or directly to the VCC pin), the sketch does its customary wait for serial timeout and then fails to join the LoRa network. When you look at the PA12/VDD_TCXO pin on an oscilloscope, I can see the pin toggle to about 1.0V when the Murata module is attempting to access the LoRa network. It appears to me there must be some kind of contention between the PA12 pin and something else but I haven't figured it out yet. I have checked and there is no short between the PA12 pin and VDD or GND or either of the two traces (MISO and SCK) that run close by the via. I suspect that what ever is causing the wrong signal levels on PA12 doesn't power up the TCXO and this is why the module will not join the LoRa network. Since there doesn't appear to be any external reason for contention I can only conclude that the contention is coming from inside the module. Is there some other control signal internal to the Murata module connected to VDD_TCXO? Is there some power sequencing issue causing the module to behave differently?

Oddly, if I apply 3.3V to the Vin pin on the module, the sketch does its customary wait for serial timeout and then joins the LoRa network using OTAA. After this the sketch sends a LoRa message and then goes to sleep. When you look at the PA12/VDD_TCXO pin on an oscilloscope, I can see it toggle to 3.3V when the Murata module is accessing the LoRa network. Everything appears to work as expected. The sleep current is about 5.08mA. If I subtract the current used for the power LED of 4.03mA that still leaves about 1.05mA. This is not much different from when the VDD_TCXO was wired to +3.3V and certainly not close to the 30uA you mentioned earlier.

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

Hello @facchinm, There is another problem(s) with the MKRWAN1300 design.

Having investigated the issue regarding the VDD_TCXO, I encountered erratic behaviour when power was applied to the Vbatt or VCC pins on the MKRWAN (see my post above).

Looking at the power supply schematic for the MKRWAN, the VDD_USB pin of the Murata module is connected to the +5V net of the MKRWAN module. When the MKRWAN is connected to a computer USB port, the voltage of than net will be close to 5V. This voltage exceeds the maximum operating voltage of the VDD_USB pin (see Murata datasheet Table 2 - 3.6V) for the Murata module. The voltage also exceeds the Absolute Maximum Ratings for the pin (see Murata datasheet Table 1 - 3.9V). Thus, simply plugging the MKRWAN into a USB port will likely damage the Murata module.

Moreover, note 1 under Table 2 of the Murata datasheet reads, in part, that:

If the USB is not used, VDD_USB must be tied to VDD_MCU to be able to use PA11 and PA12 as standard I/Os.

When power is applied to the MKRWAN Vbatt or VCC, VDD_USB is floating and thus violates condition of note 1. So, PA12 cannot be used to control VDD_TCXO in this condition.

I think this last note explains the erratic behaviour I noted above in my earlier post regarding application of power to the Vbatt or VCC pins.

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@facchinm, Good news. When I corrected the VDD_USB issue by disconnecting it from the +5V net and attaching to the +3.3V net, the board boots, the sketch does its customary wait for serial timeout and then joins the LoRa network using OTAA. After this the sketch sends a LoRa message and then goes to sleep. When you look at the PA12/VDD_TCXO pin on an oscilloscope, I can see it toggle from 0V to 3.3V when the Murata module is accessing the LoRa network. Everything appears to work as expected.

The sleep current is about 8.5uA.

from mkrwan.

facchinm avatar facchinm commented on June 19, 2024

@sslupsky I forgot to tell you about the VDD_USB change, my bad. I wrongly thought it wasn't necessary to achieve low power but only needed to be fixed because we were (are) out of specs. Glad to hear you fixed both the problems.
Even lower power consumption can be achieved by powering the board from Vbatt with less than 3.3V (2V is the minimum to wakeup the samd core, probably the radio needs a bit more anyway).

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@facchinm That's interesting. Do you have any information regarding the output power of the radio at the lower voltages? If I use 20 dB output power, will I still get 20 dB out at 2.7, 2.5, 2.3V? Also, do you know if receive sensitivity affected by the supply voltage? Overall, if the link budget is not affected then I would prefer to use a lower voltage.

from mkrwan.

facchinm avatar facchinm commented on June 19, 2024

Link budget will surely be affected under 2.4 V (from the datasheet)

When module is on +20dBm operation, the supply of the voltage should be set from 2.4V to 3.6V

However I tested the radio functionality (both RX and TX) with an indoor gateway at very low voltages (just over 2.1V) and the communication is not affected.
Of course they are corner cases (it will probably won't work so well in open field)

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

I will reduce my power supply to 2.4V and see report back.

from mkrwan.

 avatar commented on June 19, 2024

@facchinm Martino, is ABX00017-B the version of the board that should allow to reach the low power consumption mentioned above? @sslupsky seems to have a fixed it (my full respect for his work!) however I do not feel comfortable to try what he described in https://forum.arduino.cc/index.php?topic=568151.0

from mkrwan.

mjunior-fitec avatar mjunior-fitec commented on June 19, 2024

Hello @facchinm !
Please give us some reliable information about this issue. It's been more than 2 months you told that Arduino team had a solution for the power problem and we still don't know when a rev2 will be available.

I need to buy some 80 pieces, and it would be very important to know when the corrected board will be ready, 'cause this can influence our buying decision. I have 5 pieces here and will try to correct them, following @sslupsky directions. As soon as I have results I will share with you guys.

Thanks in advance.

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

Hi @facchinm ,

I found one other hardware item that you may be already aware of.

I designed a board to hold the MKR WAN. The board has a battery, low power switching regulator, led, sensors, connectors among other things. One of the techniques I use to switch off the battery involves the +5V net from the MKR WAN header. I have noticed that the voltage on this net was a little over 1V with nothing connected to the USB port or the VIN on the MKR WAN. Moreover, the voltage only appears when the MKR WAN is awake.

I tracked the problem down to the SAMD21 USB port. When the SAMD21 is awake, the USB port pins drive a voltage onto the USB data lines. The MKR WAN has ESD protection device (D1) connected to the data lines and the protection devices are connected to the VUSB net. I have observed that when the USB port is not connected to an external device, the ESD diodes forward bias and put VDD - 0.7 V onto the MKR WAN VUSB net. Moreover, I have observed that the MKR WAN usb power supply switches (Q1a and Q1b) turn on and the VUSB voltage is applied to the +5V net. The undesired turn on of the switches is likely because the voltage divider on the gate of Q4.

The consequence of this are two fold: One, it caused the FET I was using to turn off the battery to turn on which subsequently turned off the battery when I did not want that to happen. I believe I can correct this at my end by using a voltage divider on the gate of the FET. The second consequence is a increase in power consumption when the device is awake. I think (but haven't tried yet) that if you detach the USB port the USB pins are tri-stated and any pull ups are turned off. Is this understanding correct? If this turns out to be the case, then the power consumption issue can be addressed as well.

So, if the board rev is not yet complete, you might consider evaluating the voltage divider on the gate of Q4 and adjusting the values of these resistors to prevent turn on when VUSB is below about 3V.

from mkrwan.

mbeneck avatar mbeneck commented on June 19, 2024

@facchinm I'm also curious about a timeline for V2 rev that addresses this issue. Even if its just a really rough estimate, i.e. weeks/months/a year that would help me to decide how far to pursue reworking existing boards. Thanks!

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

Hi @facchinm . ETA I received from customer support for the next board revision back in September was two months. It is March 2019 now. Can you tell me if the next hardware revision is available? I manually modified 50 boards back in October and it cost me more to mod the boards than it did for the mkrwan's. I would really like to avoid the additional cost this time around :-)

from mkrwan.

cp-boettcher avatar cp-boettcher commented on June 19, 2024

Hello, we want to carry out a citizen science project next year. We would order up to 100 pieces. It would be extremely interesting for us to use v2 because we have to change the batteries far too often at the moment. Will the revised v2 be available soon? Best regards

from mkrwan.

aheit33 avatar aheit33 commented on June 19, 2024

@sslupsky are you interested in selling any of your modified devices?

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@aheit33 The last batch of boards I modified has been all used up. I could make arrangements to modify some additional boards. How many do you need?

I think the new version might be getting close to release. Check with @facchinm and see if there is a time table for release of the new board.

from mkrwan.

facchinm avatar facchinm commented on June 19, 2024

@aheit33 the boards are surely coming by mid october, I'm not able in this moment to give you a precise date but within a month they'll be generally available.

from mkrwan.

sierrasprout avatar sierrasprout commented on June 19, 2024

@facchinm Hello, are the rev2 boards w/low power fix released and available? Many thanks.

from mkrwan.

sierrasprout avatar sierrasprout commented on June 19, 2024

@facchinm Thank you!

from mkrwan.

loppylulu avatar loppylulu commented on June 19, 2024

Hello guys,

Do you have any idea if this is a problem for the NB 1500 as well?

from mkrwan.

humbertokramm avatar humbertokramm commented on June 19, 2024

I'm sorry, I only detected this problem in 2020. As I understand it, I have to change the VBUS power supply for the murata module from 5V to 3V3.
I also need to change the power supply from the VDD_TXC0 from 3V3 to the PA12 of the murata module. But my question is ...
how do i set the PA12 pin to release 3V3 when the module exits sleep mode?

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@humbertokramm Are you using the 1300 or the 1310?

Regarding the 1300, I believe the Murata firmware controls the TXCO using PA12. So, you do not need to change anything else, you just need to make the hardware modification and "it just works".

However, IMO, it would be cheaper to use the MKR WAN 1310, if that is an option, than to make the modifications to the 1300. The caveat is that to achieve the same power consumption level that as the 1300, you need to disable the 1310's power supply (there is a jumper for this) and use a separate 3V supply.

from mkrwan.

humbertokramm avatar humbertokramm commented on June 19, 2024

@sslupsky , I am using 1300 πŸ˜”
last night i went to do some current measurements on it and discovered this problem.

I have two here. And I am developing a prototype. I will have to be very skilled to make this change, as I don't have many options.

These modules had been stored for a long time, and I decided to return to this subject due to the pandemic. I did a firmware update recently, so I think it must be updated with the murata firmware.

from mkrwan.

humbertokramm avatar humbertokramm commented on June 19, 2024

good to know that in time.
I was reluctant to put a lithium battery and a solar panel in my application, but I see that it will have to be a solution.

from mkrwan.

LDBM avatar LDBM commented on June 19, 2024

Hi,
I just posted on the arduino MKR forum this post about power usage in sleep mode . Is it the same issue as what has been described in this thread here? I am stuck at 600uA and would like to get to 100uA or less if possible. Thanks.
L.

from mkrwan.

tipo1000A avatar tipo1000A commented on June 19, 2024

Looking at MKR WAN 1310 schematic Murata PA12 is not connected to anything (except DP flashing pad).
So this issue was not fixed in MKR WAN 1310? Or am I missing something here...?

image

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@tipo1000A The Murata wiring problem was fixed with the 1310. There is an issue with the power supply though so you need to disconnect the onboard power supply by cutting the jumper to achieve the lowest power consumption.

from mkrwan.

tipo1000A avatar tipo1000A commented on June 19, 2024

How Arduino (SAMD21) puts Murata module into "Sleep"?

from mkrwan.

sslupsky avatar sslupsky commented on June 19, 2024

@tipo1000A It doesn't, the module controls sleeping. If there is nothing to do, the module goes to sleep automatically.

from mkrwan.

Dicko87 avatar Dicko87 commented on June 19, 2024

I am also wanting to achieve low power consumption when sleeping using the WAN1310 but I can only get down to 4mA. I have not cut a solder jumper as I am powering from 3.7V LiPo. If I cut the jumper, the battery connector won’t work, so can I then use the 3.7V and apply that to VIn or does Vin have to be 5V? Any help to achieve low power would be great, thanks.

from mkrwan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.