Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 2.2 KB

File metadata and controls

37 lines (32 loc) · 2.2 KB

YoLoPy

A LoPy device being polled by a Raspberry Pi, which in turn tweets the Lopy's Uptime every 8 hours

Architecure

  • Running on a noname PowerBank, nominal rating 2200 mAh
  • Connected to home wifi router via changed "boot.py"
  • Runs a simple script in "main.py" that increments a counter every 60 seconds and writes current value to local file "data.txt"

Device: Raspberry Pi

Installation

Device: LoPy

  • Recommended to have serial UART working in case the WLAN connect in "boot.py" fails and leaves you without IP access. (with serial UART shell you can then just Factory reset the filesystem https://docs.pycom.io/lopy/lopy/tutorial/reset.html#factory-reset-the-filesystem - without you will have to fiddle with the firware reset pins)
  • FTP transfer "boot.py" to /flash folder (overwrite) = WLAN connect - I had to use filezilla and force passive/PASV mode
  • ONCE the WLAN to your home router works - FTP transfer "main.py" to /flash folder (overwrite) = loop to write the file every 60 seconds
  • Reboot

Device: Raspberry Pi

Why?

  • First experiment with LoPy
  • See how long it lasts - assumption is that devices will get smaller, so a coin sized assembly in a few years should have uptimes in the same order of magnitude
  • DISCLAIMER: This project completely ignores the LoRa technology, could be done with any other 'duino or similar

References