Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. OpenHardware.io
  3. 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel

💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel

Scheduled Pinned Locked Moved OpenHardware.io
117 Posts 18 Posters 23.9k Views 17 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ehomeE Offline
    ehomeE Offline
    ehome
    wrote on last edited by ehome
    #108

    Hi,

    I like to buy this board and your AM612 breakout pcb through hardware.io.

    But first I have few questions unfortunately I couldn't find the answers here in this thread/forum.

    1. I assume this board has to be programmed via the 10pin box header. How can I connect it to my computer? I think there is some adapter or similar required? Any selfmade options available? In this thread I saw that it should be possible to program this device via the Arduino IDE?

    2. Can I mount the following sensors at the same time without space conflicts:

    • Motion PIR (AM612breakout)
    • Temp + Humidity
    • Light
    1. Does this board have some free digital pins for door contact and or relais? (if yes, how many?)

    2. (Optional) I think there are no MISO/MOSI/... pins for connecting a RFM69 module?

    I don't like to use the battery option. I will power the board via power supply. Can I connect a 5V power supply to the battery pins or what is the best option?

    Thanks in advance.

    Nca78N 1 Reply Last reply
    0
    • ehomeE ehome

      Hi,

      I like to buy this board and your AM612 breakout pcb through hardware.io.

      But first I have few questions unfortunately I couldn't find the answers here in this thread/forum.

      1. I assume this board has to be programmed via the 10pin box header. How can I connect it to my computer? I think there is some adapter or similar required? Any selfmade options available? In this thread I saw that it should be possible to program this device via the Arduino IDE?

      2. Can I mount the following sensors at the same time without space conflicts:

      • Motion PIR (AM612breakout)
      • Temp + Humidity
      • Light
      1. Does this board have some free digital pins for door contact and or relais? (if yes, how many?)

      2. (Optional) I think there are no MISO/MOSI/... pins for connecting a RFM69 module?

      I don't like to use the battery option. I will power the board via power supply. Can I connect a 5V power supply to the battery pins or what is the best option?

      Thanks in advance.

      Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by Nca78
      #109

      Hello @ehome

      1. it is based on an arduino pro mini (NModule board, don't forget that this is just a shield for NModule) , so you program the arduino pro-mini, usually using an FTDI adapter. You should find plenty of explanations online.
        For programming bootloader/fuses, you can use and arduino nano with the ArduinoISP sketch: MOSI=>MOSI, MISO=>MISO, SCK=>SCK and SS (pin 10) of nano to reset pin of the pro mini. Here also you will find plenty of examples/videos etc online.
        Start with reading the page about NModule:
        https://www.openhardware.io/view/364/NModule

      2. In theory yes if light sensor is on the AM612 breakout. I will test this configuration next week and confirm to you that it is working before you order the board. If you don't hear any news about that before the end of next week ring me a bell here as it probably means I forgot :)

      3. You will use one of the external interrupt pins (pin 3) for the PIR sensor, so you will have one left (pin 2). If you don't use the leds there are 3 other input pins available on the NModule connector (A1,A2,A3, you can use them as digital inputs too), on battery powered sensors it needs pin change interrupts, but as you are using a power supply it won't be a problem.

      4. No you can't connect a RFM module, NModule is only for SMD NRF24 modules

      5. You should connect power to RAW and GND pins on the NModule connector. The best is to use AMS1117 regulator to get the 3.3V, it's probably overkill for your usage but it's very stable and will filter the noise of your power supply much better than the XC6206 (which more suitable for a li-ion powered node). In addition you will be able to use a power supply up to 12V

      1 Reply Last reply
      0
      • ehomeE Offline
        ehomeE Offline
        ehome
        wrote on last edited by
        #110

        @Nca78 many thanks for your answer. Maybe may question was a little bit too vague. I didn't mean the NMODULE board. I was speaking about the NRF51xxx board from @NeverDie

        Nca78N 1 Reply Last reply
        0
        • ehomeE ehome

          @Nca78 many thanks for your answer. Maybe may question was a little bit too vague. I didn't mean the NMODULE board. I was speaking about the NRF51xxx board from @NeverDie

          Nca78N Offline
          Nca78N Offline
          Nca78
          Hardware Contributor
          wrote on last edited by
          #111

          @ehome said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

          @Nca78 many thanks for your answer. Maybe may question was a little bit too vague. I didn't mean the NMODULE board. I was speaking about the NRF51xxx board from @NeverDie

          These are shield made to work with the NModule. For the same sensors I think @NeverDie has what you need in NRF5 versions, so ask him on the right thread :)

          1 Reply Last reply
          0
          • xliborX Offline
            xliborX Offline
            xlibor
            wrote on last edited by
            #112

            Hi all, i try NRF51822-04 module with this sketch and Si7021 as GY-21 sensor, communication over radio works great, but i still got Humidity 118% and Temperature 128°C

            can anyone help me?

            Si7021 is connected to P0.10 - SCL and P0.4 - SDA

            W 1 Reply Last reply
            0
            • X Offline
              X Offline
              xmonika
              wrote on last edited by
              #113
              1. I've downloaded the source files and tried to compile them.
                I got fatal error: sketch/MyBoardNRF5.h: No such file or directory

              2. Then I renamed MyNRF5Board.h to MyBoardNRF5.h
                I got #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

              3. Then I added #define MY_GATEWAY_SERIAL into the code
                I got many errors i.e. 'PIN_AIN0' was not declared in this scope

              How to compile the downloaded source files?

              1 Reply Last reply
              0
              • R Offline
                R Offline
                reinhold
                Hardware Contributor
                wrote on last edited by
                #114

                Hi,
                What is the power consumption you get with this board and i2c sensors? I built several boards and measured the consumption using a INA219 sensor (lowest resolution is 0.1mA). Without any I2C sensor initialized, it shows a power consumption well below 0.1mA (i.e. it always shows 0.0), but as soon as I use an I2C sensor, the consumption during sleep increases to 0.3mA, which drains the battery faster than desired for a battery node...

                I tried it with several different implementations / sensors, and always got the same result:

                • MyBoardNRF5 with BME280 (Adafruit library), sketch adapted from the one supplied with this board
                • MyBoardNRF5 with BME280 using NodeManger
                • MyBoardNRF5 with VL53L0x using NodeManager
                • Custom board in Arduino IDE derived from Sandeep Mistry's generic 51822 board, with either of the above sketches

                Is there anything special I need to do to get power consumption with i2c sensors down to the desired single-digit-µA-range during sleep?

                O 1 Reply Last reply
                0
                • R reinhold

                  Hi,
                  What is the power consumption you get with this board and i2c sensors? I built several boards and measured the consumption using a INA219 sensor (lowest resolution is 0.1mA). Without any I2C sensor initialized, it shows a power consumption well below 0.1mA (i.e. it always shows 0.0), but as soon as I use an I2C sensor, the consumption during sleep increases to 0.3mA, which drains the battery faster than desired for a battery node...

                  I tried it with several different implementations / sensors, and always got the same result:

                  • MyBoardNRF5 with BME280 (Adafruit library), sketch adapted from the one supplied with this board
                  • MyBoardNRF5 with BME280 using NodeManger
                  • MyBoardNRF5 with VL53L0x using NodeManager
                  • Custom board in Arduino IDE derived from Sandeep Mistry's generic 51822 board, with either of the above sketches

                  Is there anything special I need to do to get power consumption with i2c sensors down to the desired single-digit-µA-range during sleep?

                  O Offline
                  O Offline
                  Omemanti
                  wrote on last edited by
                  #115

                  @reinhold I'm not sure if this helps, but I had 450uA drain when sleeping and shut down I2C everytime I'm done reading:

                  void i2c_off() // Shut i2c down, power consumption rises up to 450uA instead of 11 ua  - https://github.com/sandeepmistry/arduino-nRF5/issues/291#issuecomment-407492282
                  {
                    NRF_TWI1->ENABLE=TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos;
                  *(volatile uint32_t *)0x40004FFC = 0;
                  *(volatile uint32_t *)0x40004FFC;
                  *(volatile uint32_t *)0x40004FFC = 1;
                  
                  }```
                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    reinhold
                    Hardware Contributor
                    wrote on last edited by
                    #116

                    @Omemanti, thanks for the pointer. Unfortunately, this seems to be a hardware problem of the NRF52* boards, not of the NRF51822-04 that is used in NeverDie's board.

                    Is there any way to find out which peripherals are enabled while the nrf51 is sleeping? I tried googling and also looked at the openocd documentation, but couldn't see any reference to reading out the which peripherals are turned off and which are running while the nrf is in deep sleep. (I'm using a cheap Chinese ST-link V2 dongle to program the nrf via SWD).

                    1 Reply Last reply
                    0
                    • xliborX xlibor

                      Hi all, i try NRF51822-04 module with this sketch and Si7021 as GY-21 sensor, communication over radio works great, but i still got Humidity 118% and Temperature 128°C

                      can anyone help me?

                      Si7021 is connected to P0.10 - SCL and P0.4 - SDA

                      W Offline
                      W Offline
                      waspie
                      wrote on last edited by
                      #117
                      This post is deleted!
                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      12

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular