Git Product home page Git Product logo

Comments (5)

jdede avatar jdede commented on August 18, 2024

Please add some content: Is the low power working or failing?

from wusn.

Wolfestin123 avatar Wolfestin123 commented on August 18, 2024

The power consumption measurement of MoleNet V6 is attached in the pdf below.
MoleNet - V6_power_consumption.pdf
The code used :
`
from machine import deepsleep
from machine import lightsleep
from time import sleep

print('Im awake. Going to sleep in 10 seconds')
sleep(10)
print('Going to 10 sec light sleep now')
lightsleep(10000)
sleep(10)
print('Going to 10 sec deep sleep now')
deepsleep(10000)

`

from wusn.

jdede avatar jdede commented on August 18, 2024

2 mA with LoRa and SD powered up is too high. Please set the LoRa-module into deep sleep mode and check the current drawn by the pull-up resistors.

from wusn.

Wolfestin123 avatar Wolfestin123 commented on August 18, 2024

I have configured the LoRa module to sleep and measured the current consumption. The results indicate a reduction in current consumption of the LoRa chip (RA-01H) by 2mA during sleep. Please find the attached code and results for reference.
MoleNet - V6_power_consumption_with_LORA_sleep.pdf

`import LoRaSender
import LoRaReceiver

from config import *
from machine import Pin, SPI, SoftSPI
from sx127x import SX127x
from machine import lightsleep
from time import sleep
from machine import deepsleep

device_spi = SoftSPI(
baudrate = 200000,
polarity = 0, phase = 0, bits = 8, firstbit = SPI.MSB,
sck = Pin(device_config['sck'], Pin.OUT, Pin.PULL_DOWN),
mosi = Pin(device_config['mosi'], Pin.OUT, Pin.PULL_UP),
miso = Pin(device_config['miso'], Pin.IN, Pin.PULL_UP))

Pin(device_config['reset'], Pin.OUT, value=1)
lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)

print("going to light sleep")

lightsleep(10000) # 10 seconds light sleep
print("lora on")
sleep(20)

lora.sleep() # Lora is on sleep mode
print("lora off")

lightsleep(10000) # 10 seconds light sleep

deepsleep(20000) # 20 seconds deep sleep

`

from wusn.

jdede avatar jdede commented on August 18, 2024

2mA during sleep for the LoRa transceiver???

from wusn.

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.