Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jensileinchen authored Aug 12, 2020
1 parent 855421c commit c083543
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@


# TTN LoRaWAN Gateway upgrade
*suitable for RaspberryPi3b+ with chi2-PCB and IMST-iC880a-SPI Board*

(see https://github.com/ch2i/iC880A-Raspberry-PI for technical documentation and layout of the PCB)

> this is a step by step description how to upgrade your ttn lorawan
> gateway with environmental sensor (Bosch BME280) and digital voltmeter
> for monitoring input voltage supply.
Overview and steps:

- [parts and bom](https://github.com/jensileinchen/gateway-hardware-upgrade#parts-needed-for-upgrading-your-existing-gateway-ch2i-pcb-with-sensor-and-voltmeter)
- [preparation](https://github.com/jensileinchen/gateway-hardware-upgrade#preparation)
- [update hardware](https://github.com/jensileinchen/gateway-hardware-upgrade#gateway-upgrade-hardware)
- [update software](https://github.com/jensileinchen/gateway-hardware-upgrade#gateway-upgrade-software)
- [testing](https://github.com/jensileinchen/gateway-hardware-upgrade#we-can-check-the-new-sensor---working-and-measuring-environmental-data-directly-from-balenacloud-very-easy)

**Note:** This solution is suitable for Lorawan-Gateway based on RaspberryPi3b+ with chi2-PCB and IMST-iC880a-SPI Board, balena.cloud operated with [Draseks](https://github.com/Drasek)´ fork of this [repository](https://github.com/AmedeeBulle/ttn-gateway-containers) to use a multi-container configuration. Also see [repo](https://github.com/ch2i/iC880A-Raspberry-PI) before for technical documentation and layout of the PCB) This is a step by step description how to upgrade your ttn lorawan gateway with environmental sensor (Bosch BME280) and digital voltmeter for monitoring input voltage supply.




Expand All @@ -18,7 +24,7 @@

*(detailed descripton see [bom.txt](https://github.com/jensileinchen/gateway-hardware-upgrade/blob/master/bom.txt) file with linked suppliers / shops)*

## *Preparation*
## Preparation

- Shutdown power-supply from gateway, remove power supply and antenna-connections
- Open your station-box (or the housing from your system)
Expand All @@ -34,12 +40,14 @@

After all preparation were done we can start with the upgrade steps

*VOLTMETER*
***VOLTMETER***
With hot-glue you can mount the voltmeter display on to the upper-left corner of the PCB board, just see my sample picture. The wiring can be placed below the PCB by using on oft he prepared holes

Next step is to solder the voltmeter-cables to the power-supply connectors from the PCB from backside ! Ist located next tot he DC barrel connector, marked with „DC input“ Red cable is soldered to the DC input VIN (voltage in) and Black cable is soldered to the DC input GND. You will be able to measure the input-voltage now

*BME280 Sensor*
> Remark: its also possible to use any other Voltage connector for monitoring power supply - maybe you want to read voltage from the output of the step-down converter soldered on the backside of the ch2i-PCB. Just solder it on place you want to read. the GND is always GND anywhere on the PCB.
***BME280 Sensor***
Within the delivery of the sensor is a 6-male connector - we will only use 4-males of this to solder it from the backside to the sensor. So cut it to four pins . Solder it to 3V3, GND, SCL, SDA connectors from the sensor (CSB, SD0 are not used). Next step is to solder the 4p female connector on the PCB board – use one of the I2C Bus connectors from your choice (keep in mind not to cover some screws when the sensor is installed). I used the first position from the I2C bus on the upper middle part from the board. Now you can easyly plug in the sensor module on the I2C bus (watch for the correct pin orientation of 3V3, GND, SCL, SDA).

> *Remark: it is also possible to use some dupont-cables (jumper cables male/female) to place the sensor somewhere else inside of your station box if needed. Just plug this extensions between board and sensor if you want to.
Expand Down Expand Up @@ -102,4 +110,4 @@ To finish all the works for this upgrade check all wiring inside of your gateway
***
<!--Document Version 1.2 from 06th October 2019-->
<!--edit 12.08.2020 - some code correction and minor additions-->
<!--release 2.0812.2 created on 12th August 2020-->
<!--release 2.0812.3 created on 12th August 2020-->

0 comments on commit c083543

Please sign in to comment.