• Turn off GPS while pytrack board is on

    pytrack gps vcc
    4
    0 Votes
    4 Posts
    1k Views
    J
    @jarat @jcaron So i tried your second option, and i saw a drop in current consumption to about 70 mA from 77mA. And this option did NOT turn of the LoPy. And i further tried to read from the I2C to get the GPS coordinates while it was off and i got an error. So i might think that the second option worked, but a drop of 7 mA is maybe a bit too little to come from the GPS? The datasheet of the GPS says that the gps should use around 29 ma. So i should have measured a current consumption around 50 mA?
  • 0 Votes
    4 Posts
    2k Views
    L
    @soren simpy use BSS138 to level shifting or bigger model 2N7000
  • Where is ticks_diff()?

    5
    0 Votes
    5 Posts
    1k Views
    bmarkusB
    @herbv said in Where is ticks_diff()?: @sakis What is the status with this. I've come to the same point. with missing "utime.ticks_add" and "utime.ticks_diff" it is quite useless to use ticks for calculating deatlines. Please go ahead, tx, Herbert Well, if you can read ticks itself you can write your own ticks_diff. It takes time, memory, etc. but may work as 'Plan B'.
  • LoPy LoRa runs on PC USB but not USB Powerbank

    lora powerbank
    3
    0 Votes
    3 Posts
    1k Views
    rcolisteteR
    You could connect by telnet, after configuring the WiFi of your WiPy as access point (AP) or station (STA).
  • Pymakr in Atom: "No Project" after adding to github

    pymakr atom no project
    2
    0 Votes
    2 Posts
    1k Views
    sorenS
    @soren OK, So despite the no project, I tried uploading and it behaves really strange. It says "Connected" above the console despite the console saying "Connecting on COM4..." at the same time.. how does that make any sense? Here's a snippet of my log: Uploading project (main folder)... Reading file status Failed to connect (Error: Writing to COM port (GetOverlappedResult): Operation aborted). Click here to try again. Failed to read project status, uploading all files [1/5] Writing file boot.py Connecting on COM4... ** and here it will stay forever, while at the same time displaying "Connected".....
  • CAN SPI Device and I2C Device Co-Operate on one LoPy?

    16
    0 Votes
    16 Posts
    5k Views
    B
    @rdixey If you didn't need the speed of SPI, then you could have used I2C (IIC) for both devices (as long as they different addresses), as IIC supports 127 (from memory) device addresses. "OLED: https://www.adafruit.com/products/938 #Using as SPI by Default but can be configured for I2C.", rdixey
  • Lopy - picking up MAC address from Ibeacon

    bluetooth ble ibeacon mac lopy
    2
    0 Votes
    2 Posts
    1k Views
    J
    The MAC address printed on your beacons is just a nicely formatted version in hexadecimal of the 6 byte address. What you get from Python are the actual 6 bytes themselves (hence the b' at the start) and when you print them they get turned into the correspond ASCII characters for that value (or \xYY if it's not a printable character) You can use the binascii.hexlify function to turn each of those bytes into hexadecimal and make a string which is closer to what you have. For example your b'FS\xbd\x8c\xd2\x11' >>> import binascii >>> binascii.hexlify(b'FS\xbd\x8c\xd2\x11') b'4653bd8cd211' So this address is 46:53:bd:8c:d2:11 Of course you can split into pairs, add the colons and make all letters uppercase too using standard string manipulation.
  • 0 Votes
    3 Posts
    1k Views
    R
    ouch... In Pycom's webpage, the last version of DFU that is writen is pytrack_0.0.4.dfu and I do not download because it's the version that I have now: "The latest firmware is v0.0.4. The DFU file can be downloaded from the links below:" But, if open the link, the version is 0.0.6.... Sorry, it's my fault! Works again!
  • wlan suddenly not connecting

    wifi wlan
    2
    0 Votes
    2 Posts
    853 Views
    robert-hhR
    @soren did you add code that affects the antenna switch? This is on GPIO16
  • Lopy and 5V relays

    lopy relay
    13
    0 Votes
    13 Posts
    3k Views
    robert-hhR
    @kots Even it that is true, it does not sound reasonable. G2 is used for the REPL communication. You might use another GPIO port for switching, but G2 seems to be an odd choice, as well as driving a step-up converter power input with a GPIO port, especially if a single transistor switch or digital gate is sufficient for the purpose.
  • Getting Started

    lopy tutorial
    5
    0 Votes
    5 Posts
    2k Views
    philwilkinsonP
    @snehasg95 I had the same issue with Atom not installing Pymakr plugin however this has been resolved in a new patch. I strongly recommend trying again to install Atom with the Pymakr plugin.
  • Lopy to Lopy communication issue

    lopy lora
    9
    0 Votes
    9 Posts
    3k Views
    IplookyI
    @seb I've tried you're code, it is better but in my opinion it's harder than the first one (I don't really know but the sintax " if rec=='Ping' "didn't work so I've tried yours :"if rec !=b' ' " that's just fine) @jmarcelino at a distance of 15 meters I had accuracy of almost 40% ( from 100 messages sent from LoPyPC only 40 came back from the other LoPy )
  • Send data to Arduino

    arduino
    2
    0 Votes
    2 Posts
    1k Views
    robert-hhR
    @helalbr You can use a serial connection via UART in combination, to be safe, with level shifters, which are widely available, e.g. from adafruit. Since you only need to send from the Lopy to the Arduino, only the connections TX(Lopy) to RX(Arduino) and GND to GND are required.
  • [SOLVED] ImportError: cannot import name RTC - Using PyTrack

    lopy pytrack
    4
    0 Votes
    4 Posts
    2k Views
    P
    Hi, I just updated the firmware on the LoPy and PySense, following this guide: https://docs.pycom.io/chapter/gettingstarted/installation/firmwaretool.html Thanks
  • Loading pyc Files

    lopy memory
    14
    0 Votes
    14 Posts
    4k Views
    S
    @robert-hh That worked great. I'm now able to build the FW with our frozen bytecode. Next step is to figure out the OTA
  • First time using the LoPy

    lopy codeing project
    4
    0 Votes
    4 Posts
    2k Views
    robert-hhR
    @hansjorg2 Ampy is a a python program. You'll find it here: https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • ImportError: cannot import name NanoGateway

    lopy nano gateway
    1
    0 Votes
    1 Posts
    652 Views
    No one has replied
  • Nano gateway connect to my own server

    server lopy nano gateway node
    1
    0 Votes
    1 Posts
    808 Views
    No one has replied
  • NanoGateway: Error 118

    nanogateway lora gateway error
    1
    0 Votes
    1 Posts
    860 Views
    No one has replied

Pycom on Twitter