• Struggling with message format for Sigfox transmission

    1
    0 Votes
    1 Posts
    163 Views
    No one has replied
  • Pymakr doesn't work anymore

    2
    1
    0 Votes
    2 Posts
    236 Views
    J
    @brossingo I also had this problem with my Mac. I solved it by going back to the previous version of Atom. You can download it here: https://github.com/atom/atom/releases/tag/v1.38.2 Once you install that version make sure you immediately disable automatic updates (About Atom -> Untick the "automatically download updates" box), otherwise it will automatically update to the faulty version again.
  • Data format for Sigfox transmission

    4
    0 Votes
    4 Posts
    366 Views
    robert-hhR
    @jez You can use the ustruct module to get a packed byte string. See https://docs.pycom.io/firmwareapi/micropython/ustruct/. If you prefer readable content, you can use one of the two format methods: % operator or str.format(). The result is a str, which you may have to convert to a bytes object with str.encode(). Both is pretty much standard Python.
  • Replace a line instead of overwriting

    1
    0 Votes
    1 Posts
    204 Views
    No one has replied
  • UV sensor

    5
    0 Votes
    5 Posts
    365 Views
    Q
    @robert-hh thank you it's working
  • This topic is deleted!

    1
    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • Device doesn't run code inside

    ftp filezilla machine
    2
    2
    0 Votes
    2 Posts
    216 Views
    robert-hhR
    @brossingo try listdir("/flash") and run "/flash/game.py" You may as well stick with main.py and simply use: import game
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    34 Views
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • ADC use to measure battery level / Vin level

    sipy adc vin measuring
    15
    0 Votes
    15 Posts
    3k Views
    A
    @andreas said in ADC use to measure battery level / Vin level: We are getting reasonable readings when using the 1 MΩ / 1 MΩ values as resistor values (matching v3.2) @MKO just measured the resistor values and confirmed [1] that it's also 1 MΩ / 1 MΩ for the Pycom Expansion Board v3.1, as supposed. [1] https://community.hiveeyes.org/t/batterieuberwachung-voltage-divider-und-attenuation-fur-microypthon-firmware/2128/42
  • USB supply voltage

    usb serial conn voltage supply
    2
    0 Votes
    2 Posts
    232 Views
    J
    @brossingo It's unclear if you mean voltage supplied BY the device, or voltage supplied TO the device. If you're using USB, the voltage is obviously supplied by an external device (PC, power supply...) TO the device, and the device can't change that. If you want to use a different voltage, your probably want to use the battery connector instead, though it depends a lot on what actual voltage you can feed the device and a lot of other considerations. Could you give more details about what exactly you are trying to achieve?
  • This topic is deleted!

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

    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Measuring battery percentage

    6
    0 Votes
    6 Posts
    1k Views
    J
    @brossingo Well, if you're not too versed into electronics, you should probably read up a bit before connecting things. As @Martinnn pointed out, connecting things without paying to much attention can lead to frying up hardware. Also note that Lithium batteries can be very dangerous. If you handle them incorrectly they can catch fire and/or explode. Even if you didn't fry the ESP32, the voltage of a LiPo battery exceeds the maximum voltage with attenuation, and completely blows out the maximum voltage without, which explains why you would get the max reading all the time. You need to use a voltage divider and correctly set attenuation. Note that there is already a voltage divider on the expansion board, you should probably use that. There's been ample discussion on the topic in the forum.
  • This topic is deleted!

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

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

    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • 0 Votes
    4 Posts
    605 Views
    C
    Try to cross compile the lib folder. It may be a memory fragmentation problem, so you cannot allocate the needed buffer size.
  • ImportError for local code modules

    importerror
    4
    0 Votes
    4 Posts
    388 Views
    P
    @changeddaily Glad to here it's working now :)
  • Display logo on screen

    screen ssd1306 i2c
    4
    0 Votes
    4 Posts
    517 Views
    C
    @brossingo Do you use a pycom board? Then add some wait. You have to wait until the *Py and the board is initialized. Sadly there is no flag or event which tells you that init is ready. So you have to find the right time for your system by your own. It will depend on firmware version and the hardware you added - especially your display. Give 1.20 rc4 a try. This version solved my problems with i2c and pytrack

Pycom on Twitter