• Regarding power consumption expansion cards v3.1 and lopy4.

    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • Serial communication using PySense

    pysense uart rpi help
    7
    0 Votes
    7 Posts
    740 Views
    V
    HI Mellow, I would be very interested to find how you did this.
  • LiPo Battery Recommendations that fit in PyCase with Expansion Board 3.0

    6
    0 Votes
    6 Posts
    71 Views
    rcolisteteR
    @robert-hh said in LiPo Battery Recommendations that fit in PyCase with Expansion Board 3.0: @jcaron said in LiPo Battery Recommendations that fit in PyCase with Expansion Board 3.0: if the Pycom devices have reverse polarity protection on the battery connector Nope, AFAIK No, I confirmed by mistake, resulting a fried Expansion Board v3.1...
  • Infinite Connectiong to COMx after firmware update

    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • Pytrack External IO Pins can be used?

    3
    0 Votes
    3 Posts
    38 Views
    S
    @robert-hh Thanks Robert, sounds like I will need to rethink how I do what I am planning and use I2C like you say. You saved me some time.
  • 0 Votes
    4 Posts
    23 Views
    P
    Hello jcaron Thanks for your speedy answer. indeed, i added an hold(false) before and hold(true) after activating the relay and it works fine. Considering your point on disconnecting power : I'll backup the USB power with and LipoBattery, and add up a regular watchdog reset (in case of) so it never() falls into the "no power case", and forget the "hold". Regards Patrick () or only if the power is down and battery is drained! (very bad luck here). the "script" now looks like. Relay.hold(False) Relay.value(ON) time.sleep(0.5) Relay.value(OFF) Relay.hold(True)
  • Wiring for Solar and Battery

    6
    0 Votes
    6 Posts
    72 Views
    M
    Thanks everyone for the advice. So sounds like I need something like this to drop the voltage from 6V to 5v https://core-electronics.com.au/lm2931-ldo-5v-voltage-regulator.html
  • ImportError: cannot import name LoRa

    pygate wipy3.0 gateway importerror loramac
    4
    0 Votes
    4 Posts
    85 Views
    D
    Finally, my problem is Solved : With pygate, no need to register the device EUI, just create one from scratch ! (and edit config.json accordingly) as the doc says
  • do pytrack-2 and pycoproc 0.0.4 work (wake on accel interrupt)

    5
    0 Votes
    5 Posts
    91 Views
    G
    We hope to publish something soon! In the meantime, I can give you a sneak preview here: https://github.com/pycom/pycom-libraries/issues/132#issuecomment-748895114
  • 0 Votes
    2 Posts
    38 Views
    G
    You would only be able to do this by making changes in the pygate source code and compiling your own firmware. I can imagine this issue is frustrating! I'll point you to some locations that might help you here: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/pygate/lora_pkt_fwd/lora_pkt_fwd.c#L1526 Close to here, you will find the comment 'skip that packet' after a continue; statement. There, you could build your whitelist, based on mote_addr in a similar way. I will leave the final implementation to figure out for you, but I would load the whitelist in the JSON configuration file (some lines above: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/pygate/lora_pkt_fwd/lora_pkt_fwd.c#L635) (Im not sure of the amount of sensors you are using and how often it changes) Let me know if that works for you! Gijs
  • PyGate and Ubidots

    3
    0 Votes
    3 Posts
    61 Views
    A
    @sashok0127 TTN has a direct integration with Ubidots. If i were you i would setup your gateway to forward data to TTN then build your Ubidots reporting using the existing integration. More info here: https://help.ubidots.com/en/articles/2362758-integrate-your-ttn-data-with-ubidots-simple-setup
  • Lipo Monitoring / Fuel Gauge

    5
    0 Votes
    5 Posts
    45 Views
    robert-hhR
    @toffee This is how my first attempt of changing init,. read_word and write_word would look like. Untested of course, since I do not have that device. def __init__(self, i2c, i2c_address=LC709023F_I2CADDR_DEFAULT): self.i2c = i2c self.i2c_address = i2c_address self._buf = bytearray(10) self.power_mode = PowerMode.OPERATE # pylint: disable=no-member self.pack_size = PackSize.MAH500 # pylint: disable=no-member self.battery_profile = 1 self.init_RSOC() def _read_word(self, command): self._buf[0] = self.i2c_address * 2 # write byte self._buf[1] = command # command / register self._buf[2] = self._buf[0] | 0x1 # read byte data = self.i2c.readfrom_mem(self.i2c_address, command) if len(data) != 3: raise RuntimeError("Insufficient data on reading word") self._buf[3:6] = data crc8 = self._generate_crc(self._buf[0:6]) if crc8 != 0: raise RuntimeError("CRC failure on reading word") return (self._buf[4] << 8) | self._buf[3] def _write_word(self, command, data): self._buf[0] = self.i2c_address * 2 # write byte self._buf[1] = command # command / register self._buf[2] = data & 0xFF self._buf[3] = (data >> 8) & 0xFF self._buf[4] = self._generate_crc(self._buf[0:4]) self.i2c.writeto_mem(self.i2c_address, command, buf[2:5])
  • Not find any i2c devices with Fipy Pytrack

    4
    0 Votes
    4 Posts
    45 Views
    robert-hhR
    @Paula-Mancilla That indicates that the signal levels on SDA and SCL are not stable. Please check again the wiring and the pull-up resistors. Appropriate values are 10k - 1k Ohm.
  • Pytrack Lopy4, no fix when using external active GPS-antenna

    2
    0 Votes
    2 Posts
    40 Views
    G
    You mean, you get GPS reception with the onboard antenna, but not with the external antenna? This could be related to the jumper labelled AON (providing additional bias to active antennas), do you have it inserted? The external antenna is an active antenna, requiring additional bias voltage to operate properly Let me know Gijs
  • Pytrack Power selector

    2
    0 Votes
    2 Posts
    45 Views
    G
    Yes, You should be able to use the py.reset_cmd() from the pycoproc.py library (the one you also use for the sensors) to hard-reset the module power This method of turning off the power is also used in the py.go_to_sleep() deepsleep option Gijs
  • Pyscan - nfc badge reader

    3
    0 Votes
    3 Posts
    32 Views
    C
    @jcaron thank you for you long reply! this device will be used as a time tracker (worker bage in upon arrival, worker badge out when leaving to home) We went for lora, for its wide area of action with only one gateway. thank you for your experience, i will suggest to bring 2 wires for supply purpose
  • Pytrack gps None,None

    6
    0 Votes
    6 Posts
    167 Views
    G
    As mentioned before, GPS reception inside is generally very poor, so the result is as expected when using it inside. Next, if you are using the external antenna on the pytrack2, make sure the jumper labelled AON is also present. Let me know Gijs
  • Atom without expansion board

    4
    0 Votes
    4 Posts
    45 Views
    K
    Well it's taken all day, talking to myself here. For the benefit of any poor souls trying https://docs.pycom.io/gettingstarted/programming/usbserial/ the story is as follows. Windows invariably makes a new com for your usb-to serial device. You can see it with Windows Device manager. You need to copy the usb-to-serial device manufacturer name into the 'Autoconnect comport manufacturers' list in Atom's Global settings. Otherwise Atom will not only refuse to autoconnect it won't even show the new com as existing/available. Many usb-to-serial devices are wrongly labelled and you need to connect their Tx to the pycom device Tx instead of the Rx.
  • Vin and USB power input

    2
    0 Votes
    2 Posts
    41 Views
    G
    Vin is equal to the USB power, after passing through a protection diode. So it should be possible. Of course, do not supply with more than 5.5V
  • No GPS fix with Pytrack 2.0X and Lopy4

    4
    0 Votes
    4 Posts
    98 Views
    G
    I can imagine you are confused and I'll update the docs. The antenna is switched using the SMA connector. There is an internal switch in the connector that detects whether an external antenna is connected and switches the signal from the internal antenna to the external one. Next to that, there is a jumper that supplies powers for active antennas.

Pycom on Twitter