Subcategories

  • General discussion for getting started and support

    723 Topics
    3k Posts
    robert-hhR
    @theshade Pycom INC is closed. And whoever purchased the assets did not buy the debts or responsibilities. Personally I'm upset that not even the technical documentation of their boards was published as a small feedback for the community.
  • For all topics related to the WiPy

    566 Topics
    3k Posts
    S
    @robert-hh okay, makes sense regarding the documentation. thanks for the information
  • For all topics related to the LoPy

    2k Topics
    9k Posts
    S
    I am facing a challenge when attempting to decompress data compressed using the miniz library on the ESP32 platform. My objective is to compress data using miniz library in flasher_stub compoment of esp-idf and then decompress the data on the cloud side using some python script that can be compatible with miniz decompression style like zlib. As per the documentation and information available, the miniz library is described as a "lossless, high-performance data compression library" that implements the zlib (RFC 1950) and Deflate (RFC 1951) compressed data format specification standards. However, I am encountering difficulties when attempting to decompress the compressed data using Python. Specifically, when using the Python zlib module, which should be compatible with the zlib and Deflate formats, I am receiving an "unknown compression method" error. I have verified that the file and data are correct, and they were compressed using the miniz library on the ESP32. Despite this, I am unable to successfully decompress the data. I would greatly appreciate any help or any insights that you can provide regarding how to properly decompress data that has been compressed with the miniz library using Python.
  • For all topics related to the SiPy

    163 Topics
    783 Posts
    M
    @matt3526 DID anyone figure this out?
  • For all topics related to the GPy

    411 Topics
    2k Posts
    D
    Hi, Just for reference, our GPy replacement Walter is going live on Crowd Supply very soon. We already tested with some beta testers and you can read the review in this topic: https://forum.pycom.io/topic/7748/the-future-of-pycom/32 For everybody interested, this is the Crowd Supply link: https://www.crowdsupply.com/dptechnics/walter
  • For all topics related to the FiPy

    531 Topics
    3k Posts
    robert-hhR
    @Julia-Steiwer As you should have noticed, Pycom Inc ceased it's operation, and there is no service any more for Pycom products, be it hardware or software like Pymakr. The latter should still work with the older VSCode versions. So if you want to use PyMakr, you have to stick with an working combo of an older VSCode version and PyMakr.
  • For all topics related to the Pymakr

    129 Topics
    599 Posts
    robert-hhR
    @Kalle-Misto Pymakr is not supported any more. It might help to fall back to a previous version of Vscode and keep it.
  • For all topics related to the Pymate

    10 Topics
    50 Posts
    T
    Hi, I think I'm doing everything correctly and following Roberto's tutorial to a T. I am getting errors when I try both reading and writing virtual pins. I am using a wipy 2.0 running firmware 1.18.2.r4 Here Is my process: set up pymate safe boot device, download files. edit pymate_basic.py in lib with code under "# Initialize Virtual Pins and Terminal Pins Here" restart, add widgets to app, and it always returns errors. Here are two examples of errors: a) When I try Roberto's first example of writing, I add the following code under "# Initialize Virtual Pins and Terminal Pins Here" to pymate_basic.py: # Initialize Virtual Pins and Terminal Pins Here import pycom def set_led_color(params): val = int(params[0]) if (val < 256): val = val & 0xFF elif (val > 255 and val < 512): val = (val << 8) & 0xFF00 elif (val > 511): val = (val << 16) & 0xFF0000 pycom.rgbled(val) pymate_library.add_virtual_pin(1,None, set_led_color) After uploading, and setting up a widget type slider with pin V1, and range 0-750, I slide the slider and get one of the following errors: "Error calling provided virtual method" 2)"Traceback (most recent call last): File "boot.py", line 39, in <module> File "/flash/lib/pymate_basic.py", line 25, in <module> File "/flash/lib/pymate_library.py", line 414, in run File "/flash/lib/simple.py", line 202, in wait_msg File "/flash/lib/pymate_library.py", line 352, in _recv_msg_callback File "/flash/lib/pymate_library.py", line 278, in _handle_hardware_msg KeyError: 32" 3)Warning: Virtual write to unregistered pin 1 b) When I try Roberto's second example of reading, I add the following code under "# Initialize Virtual Pins and Terminal Pins Here" from uos import urandom def read_random(): val = int(urandom(1)[0]) return val pymate_library.add_virtual_pin(1,read_random, None) After setting up the widget type to Display, pin V1, pin Mode INPUT, refresh Rate 500ms, I hit play, and I get the following error: Traceback (most recent call last): File "boot.py", line 39, in <module> File "/flash/lib/pymate_basic.py", line 19, in <module> File "/flash/lib/pymate_library.py", line 414, in run File "/flash/lib/simple.py", line 202, in wait_msg File "/flash/lib/pymate_library.py", line 352, in _recv_msg_callback File "/flash/lib/pymate_library.py", line 278, in _handle_hardware_msg KeyError: 32 Please help. There is very little documentation to go off of, and I can't find anything wrong with what I'm doing. Thanks
  • For all topics related to the Expansion Board

    298 Topics
    1k Posts
    D
    @Mr-Admin said in syntax question: mqtt_publish(client, "home-assistant/altitude", str(alt.altitude).encode('utf-8')) thank you, this looks like what I need
  • For all topics related to MicroPython

    417 Topics
    2k Posts
    K
    @robert-hh maybe wrong forum. I couldn't figure out the Github system and found this forum instead. Thanks for the tip on the USB cable. Hope it's that simple. .
  • Connect an ArduCam or other camera

    camera
    12
    1 Votes
    12 Posts
    4k Views
    B
    @engeeneratendee Afraid I’ve not tried it. I had to abandon Pycom modules due to another issue. Give it a shot and share your findings! :-)
  • PyMesh - LoRa mesh Gateway/Border Router

    pymesh border router gateway lora
    3
    1 Votes
    3 Posts
    672 Views
    R
    Okay this has answered my question! Looking forward to test the border router functionality.
  • Emnify using NB-IOT in UK

    1
    0 Votes
    1 Posts
    222 Views
    No one has replied
  • boot.py versus main.py

    boot.py main.py reset deep sleep
    11
    0 Votes
    11 Posts
    4k Views
    M
    @reidfo I use the boot.py to mount the SD card just once. When I mounted the SD card in the main.py I encountered OSError when re-running my code in the REPL (OSError: the requested operation is not possible) due to the fact that I cannot check the status of the SD card.
  • Nano-gateway not receiving LoRaWAN packets

    lorawan nano gw lopy lopy4 ttn
    3
    0 Votes
    3 Posts
    872 Views
    J
    @paul-thornton Thanks, this worked! I figured out that the same addition 'region=LoRa.EU868' is needed at 4 locations in nanogateway.py: around line 169, 263, 355, and 378. I still have a problem with the downlink not getting to the node (without giving any error message). This may be a timing problem: Only in one instance, the TTN website indicated that the node confirmed receipt of the downlink. In all other cases, no such confirmation was received. Let me investigate that further first.
  • Pysense Specsheet bug

    pysense bug documentation
    1
    3 Votes
    1 Posts
    287 Views
    No one has replied
  • 0 Votes
    4 Posts
    631 Views
    M
    @paul-thornton The timing is rather critical. Couldn't you extend the time window for updating to let's say 30s?
  • Conversion/use of CircuitPython in MicroPython

    circuitpython
    2
    0 Votes
    2 Posts
    422 Views
    E
    Hi, i have a quick look at the library and it seem not a big deal to adapt it to micropython (with a litlle exeception). IMHO you have only to change i2c read and write function call (from adafruit_bus_device.i2c_device) to pycom i2c library . If you have a litlle knowledge about i2c bus it will be very easy for you. BUT you have to do some change for function used with time as micropython do no provide time.monotonic, its about calibration timeout of sensor and i think you have to read documentation and change time function with some function like utime.ticks_ms() to compute timeout conditions.
  • Difficulty in running the basic drivers from PyCom...

    wipy3.0 pysense
    3
    2
    0 Votes
    3 Posts
    470 Views
    S
    @paul-thornton Just did. :)
  • 0 Votes
    4 Posts
    545 Views
    bmarkusB
    @qwab said in Would you consider using MicroPython to create small, standalone executables for desktop platforms?: I have been considering making some contributions to MicroPython to enable the generation of small, standalone executables for desktop platforms. It seems MicroPython executables could be as little as 500KB in size, compared to around 5MB for CPython (with PyInstaller). What do you mean 'desktop platforms'? How do you create a MicroPython 'standalone desktop executables'? Which PyCom hardware are you intending to use to create such applications and how?
  • Pysense Deepsleep

    pysense deepsle
    10
    0 Votes
    10 Posts
    1k Views
    John BairdJ
    @jcaron Thanks. I'm (literally) waiting for the glue to dry and then I'll be trying to wake from deepsleep on a GPy in a PySense. I'll let you know how it goes - but thanks for the information.
  • Does the SPI interface work for anyone?

    spi
    7
    0 Votes
    7 Posts
    1k Views
    P
    Re: @paulm Just to note for others. a fix for the SPI issue has finally been snuck in, should be out in the next RC build
  • Advice on type of developer needed

    ios app developer title
    3
    0 Votes
    3 Posts
    449 Views
    P
    As previous comments have mentioned usually something like "Embedded software engineer" would be more than suitable. Just make sure to include in the job description its working with Micropython using Pycom's dev boards as it is a little higher level than most embedded roles. Any suitable candidate should be able to decide if that's something there qualified/capable of.
  • Bluetooth LE security

    bluetooth security pycom ble
    2
    0 Votes
    2 Posts
    656 Views
    P
    If your going to have a physical button to enable it to be reconfigured you dont have many options. An idea may be to write something to flash storage after the first time its been configured and not allow additional setup attempts unless that file is removed but if someone has physical access to the device there's nothing stopping them connecting over uart and removing it via repl. Alternatively. A physical preventative might be more suitable (lock it in a box)
  • PyTrack not working with Processing

    pymakr pytrack error
    3
    1
    0 Votes
    3 Posts
    462 Views
    W
    @paul-thornton Ok thanks for the reply!
  • Post mortem analysis ?

    lopy4 watchdog exception log reboot log
    1
    0 Votes
    1 Posts
    414 Views
    No one has replied
  • OS Error: I2C bus error on wipy 3.0 with BME 680

    i2c bus error i2c wipy3.0 bme680
    6
    0 Votes
    6 Posts
    987 Views
    M
    @robert-hh Thanks, I'll try that.
  • pytrack sample code

    pytrack
    32
    0 Votes
    32 Posts
    5k Views
    danD
    @abhishek2101 they're linked below in @jcaron's post: ... You should probably try to dump more information from the GPS chip so see what's going on. Also note that the L76GNSS.py module is pretty basic (for instance it only parses GPS data, while the chip is capable of using other GNSS). You should explore alternatives, such as: micropyGPS this alternative L76GNSS module
  • Run Fipy USB Powerbank

    fipy
    2
    0 Votes
    2 Posts
    528 Views
    robert-hhR
    @tfgm Not directly with the FiPy. You can use a chip like INA219 to monitor the current & voltage at the wire getting in to the device, and then you can determine the mAh that have been consumed, and in combinations with the voltage also the energy. The timing resolution is not very good, mostly limited by the time you allow your code to measure. So you will miss small spikes & drops. For convenience, there are modules with that chip available. There are Python drivers from Adafruit and one here, tested on ESP32 and ESP8266: https://github.com/chrisb2/pyb_ina219 Both should be close to Pycom's python. The gap, if at all, should be in the I2C section.
  • external sensor program to pycom

    pycom i2c external sensor
    3
    0 Votes
    3 Posts
    704 Views
    J
    @jcaron as of right now what I want to achieve: Using a SCD30 sensor (which gets humidity, temperature and CO2 levels) read the data and save it, for that I intend to create (or modify based on other libraries) the library for the sensor. I already have the adress of the sensor and the hexadecimal "commands" and I am trying to use the libraries of the Pysense sensors as a template

Pycom on Twitter