• Sleep Mode Description

    deepsleep
    7
    0 Votes
    7 Posts
    805 Views
    P
    @jcaron said in Sleep Mode Description: @paul-thornton To be precise, it actually starts from the top of boot.py :-) While you're in the docs, I don't think the read_battery_voltage method for the Pysense/Pytrack/etc. is in the docs, you may want to add that as well. Thanks ill get this added today if its missing.
  • Overwrite boot.py while running?

    ota update
    2
    0 Votes
    2 Posts
    260 Views
    J
    I think (not tested) you can overwrite a file while running (since you are running a compiled version of the file). For hashing, see: https://docs.pycom.io/firmwareapi/micropython/uhashlib.html
  • How do i measure the battery voltage?

    battery monitor
    4
    0 Votes
    4 Posts
    749 Views
    J
    @misterlisty If you are using a Pysense or Pytrack you don't need to use the ADC input or add a voltage divider. That's already done on the board, and you can read it using the read_battery_voltage method of the relevant library. I think it's also more accurate that the ESP32 ADC, though I haven't really compared them.
  • Any more Bluetooth / BLE code examples?

    ble bluetooth
    2
    0 Votes
    2 Posts
    355 Views
    P
    I may be incorrect about this and please someone correct me If I am. But isnt BLE more about reading small packets of info (like an advert or a characteristic) rather than a two way socket?
  • 0 Votes
    2 Posts
    1k Views
    A
    Any luck with new wipy users ?
  • Headers to use for my own custom expansion board?

    connectors
    2
    0 Votes
    2 Posts
    324 Views
    robert-hhR
    @dweedle Just use any high quality female headers. They will most likely be better than the ones Pycom boards have. I made very good experience with a vendor called Fischer, series BL5 14 or MK21 14 (low profile), but also from MPE Garry. Just get those with machine contacts.
  • Format date into other format?

    rtc python
    2
    0 Votes
    2 Posts
    361 Views
    robert-hhR
    @misterlisty Have a look at the Python methods for string formatting, either the % operator for strings or str.format().
  • Download file from webserver or ftp

    ftp webserver file system
    3
    0 Votes
    3 Posts
    433 Views
    M
    @paul-thornton Look like a great tool to use
  • Is my GPY Bricked??

    gpy expansion board firmware
    23
    2
    0 Votes
    23 Posts
    3k Views
    robert-hhR
    @stevo52 Yes, from the distance, it sounds like a hardware problem with the board. Maybe a broken wire or a bad solder point at the P2 pin.
  • Checking if a polytope is a matroid polytope

    power
    2
    0 Votes
    2 Posts
    275 Views
    robert-hhR
    @anhphuong This seems to be the wrong forum for your question. You should go to https://forum.polymake.org/
  • EBYTE radio library

    radio
    3
    0 Votes
    3 Posts
    350 Views
    A
    @paul-thornton Thanks for taking a look. I'll use the UART connection and write my own class to operate the radio. Cheers!
  • Calling functions in uMQTT

    umgtt mqtt micropython adafruit io wipy mqtt
    4
    0 Votes
    4 Posts
    518 Views
    P
    @dezert754 We've all had those moments :P glad its all sorted.
  • Pinout Pysense etc.

    schematics pysense documentation
    2
    2 Votes
    2 Posts
    412 Views
    robert-hhR
    @martinnn Full ACK.
  • 0 Votes
    25 Posts
    4k Views
    S
    @robert-hh OK, I set up some code to try this out, several timers at different periods and several threads including one to start LTE, send an SMS and then deinit. From what I can see, the timers do NOT get interupted by the LTE device. It seems the timer counts are retained and dumped to REPL as soon as possible (buffered apparently). There is some corruption/mixup of REPL lines but all the timer flags are there I will investigate a bit further and see if I can use this to my advantage. One thread/timer I will need will be at 11uS preferably, so as it is too fast to capture by eye, I'll have to write to a file to a file to evaluate any impact by the LTE device. Biggest constraint might be the actual time to write to disk. A FIFO data buffer is probably a good solution - some work to do there. The test code was pretty rough and ready so its needs a lot of refinement to be truly useful as a valid test.
  • Make application location-independent

    import
    5
    0 Votes
    5 Posts
    567 Views
    P
    I've asked internally and It does not seem like we have a good way to get the equivalent of __FILE__ in micropython. Short of adding ALL of your applications ./lib subfolders to sys.path in boot.py prior to running/importing anything else.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • 1 Votes
    8 Posts
    1k Views
    S
    @robert-hh Thanks, I am working on a very small laptop so I didn't see that as it wasn't very obvious :-)
  • 1 Votes
    1 Posts
    335 Views
    No one has replied
  • Set RTC from PC datetime (no network connection)

    rtc
    4
    0 Votes
    4 Posts
    560 Views
    P
    @alexpul Neat work around, Good job!

Pycom on Twitter