My LoRaWAN Signal Mapping MSc summer project. This is a copy of the actual repository with personal information removed.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
4.3 KiB

  1. # Hardware
  2. Constructing the hardware for the LoRaWAN Signal Mapper is a 2-step process:
  3. 1. Construct the circuit
  4. 2. 3d-print the box
  5. ## Prerequisites
  6. You'll need a number of items ready and at hand before you start. A full parts list is given below. In addition, having the following items to hand would probably be helpful:
  7. - A multimeter, to test the parts of the circuit are connected properly and functioning as intended should you run into difficulties
  8. - 4 x AA Batteries, if you've used a battery box
  9. ### Parts list
  10. - [RFM95 w/ breakout](https://onecall.farnell.com/seeed-studio/114990615/868mhz-dragino-lora-shield-for/dp/SC14518) (alternatively [this](https://shop.pimoroni.com/products/adafruit-rfm95w-lora-radio-transceiver-breakout?variant=19595325639))
  11. - [GPS](https://www.hobbytronics.co.uk/ublox-gps-neo6m) (or [this](https://thepihut.com/products/gps-module-with-enclosure?variant=27741075537))
  12. - [microSD breakout](https://www.hobbytronics.co.uk/microsd-card-regulated-v2)
  13. - DC in + USB-a power regulator (or maybe [this](https://www.adafruit.com/product/1833))
  14. - [microSD Card](https://smile.amazon.co.uk/SanDisk-microSDHC-Memory-Adapter-Performance/dp/B073K14CVB/) - any card that's 1GiB+ will do.
  15. - [Arduino Uno](https://smile.amazon.co.uk/Elegoo-Board-ATmega328P-ATMEGA16U2-Arduino/dp/B01EWOE0UU/)
  16. - [Breadboard](https://shop.pimoroni.com/products/solderless-breadboard-400-point)
  17. - Jumper cables (e.g. [a](https://thepihut.com/products/adafruit-premium-female-male-extension-jumper-wires-20-x-3), [b](https://thepihut.com/products/adafruit-premium-male-male-jumper-wires-20-x-6-150mm), and [c](https://thepihut.com/products/adafruit-premium-female-female-jumper-wires-20-x-6-150mm))
  18. - Power supply:
  19. - Either a [Battery](https://smile.amazon.co.uk/Anker-PowerCore-Aluminum-Portable-Lipstick-Sized-Black/dp/B005QI1A8C/) and a [breakout](https://shop.pimoroni.com/products/adafruit-usb-micro-b-breakout-board)
  20. - ....or [a battery holder](https://shop.pimoroni.com/products/4-x-aa-battery-holder-with-on-off-switch) and a [regulator](https://www.aliexpress.com/item/32611355118.html?spm=a2g0o.productlist.0.0.723315eeT9I9b0&algo_pvid=03d2d682-5a95-4f1d-888e-d815944067cf&algo_expid=03d2d682-5a95-4f1d-888e-d815944067cf-1&btsid=3d180c0c-4a99-4d18-8d3d-afcacb991b44&ws_ab_test=searchweb0_0,searchweb201602_8,searchweb201603_53)
  21. - [Project box](https://smile.amazon.co.uk/waterproof-plastic-Enclosure-Power-junction-Grey/dp/B01JHBHNMA/) - if we can't 3D print one
  22. - [TPL-5110](https://www.adafruit.com/product/3435) - also available from Pimoroni
  23. ## Constructing the circuit
  24. Constructing the circuit itself is best done with the aid of a diagram:
  25. ![](images/Circuit-Diagram.png)
  26. The above assumes that you've got a battery box and a regulator. A few things to note:
  27. - We power the whole thing directly on the 5V power rail. This is because of the TPL5110, which turns the device on and off automatically.
  28. - Because of the TPL5110, we have a 'timed power rail' and an 'untimed power rail', along with a shared ground.
  29. - Note that the GPS module is connected to the _untimed_ rail, as we really don't want to lose our GPS fix (as this would significantly delay us every time we take a reading).
  30. When you've constructed the circuit, insert the microSD card into the microSD card breakout board.
  31. Also, make sure to turn the potentiometer on the TPL5110 most of the way to the left, to reduce the time between readings to ~1m30s. It may take a few goes to adjust this to the right value - I recommend doing this after programming and watching the time between the readings coming in.
  32. **Note:** The TPL5110 only reads the potentiometer when it first starts up! When you turn the potentiometer, you _also_ need to remove and re-apply the power in order for it to recognise the change.
  33. ## 3d-printing the box
  34. Once you've got the circuit built and tested, you'll want a box to put it in. Just such a box is available in this repository, as a pair of [OpenSCAD](https://www.openscad.org/) files in `iot/`:
  35. - `Housing.scad`, containing the box itself
  36. - `Lid.scad`, containing the lid
  37. It's supplied in 2 parts, to make 3D printing easier. Yur 3D printer probably takes a .STL file though, so you'll need to [export them](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Export) in the correct format for printing.