Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • Gateway SD card logging of Node data

    9
    0 Votes
    9 Posts
    2k Views
    korkenK
    Hi! Did you manage to solve this issue? I have a similar requirement. I have a set of battery powered sensors on a remote cabin with very limited power supply during the winter. I think I can manage to continuously power an Arduino Mega gateway, but not a 4G router to send the sensor data to my database at home. I think the solution is to have the gateway buffering up sensor data, and then send it once a day or something. (After first powering up the 4G router through a relay). I guess I have to hack into the Ethernet gateway code, like you mentioned. But what would be the best place to get to this information. What file/function I should begin digging into? Please advise, if you know the answer!
  • [SOLVED] PCB / Circuit error diagnosis help

    3
    0 Votes
    3 Posts
    734 Views
    mfalkviddM
    Nice work @dsiee, thanks for reporting on the solution.
  • ENC28J60 Gateway - no ping

    7
    0 Votes
    7 Posts
    2k Views
    H
    @daniele-frigo I have tried the stable and development versions of my sensors, the standard UIPEthernet.h and the Mysensors version of UIPEthernet.h, and several versions of Arduino IDE and still cannot replicate your log result of getting only one line of debug data using your program. This should generate five lines of debug code regardless if the ENC module is connected. With the module connected you should be able to ping the arduino on 192.168.1.22 if your computer is on the same subnet. So several questions & things to consider 1 Are you actually testing using the code you posted above and getting only the one line of debug If so, then I think you need to check your software versions, 1a Are you using Arduino IDE or some other environment like PlatformIO what versions? 1b Is the correct UIPEthernet.h being used during compiling? 1c Are there any error messages during compiling, what is the memory usage? 1d what bootloader are you using? the Old nano Bootloader, New nano type or some other? 2 Is the network address suitable for your network and you have no other item using that ip address and no arduino device using the same MAC address for pinging Is your computer on the same subnet ie 192.168.1.xxx 3 My ENC modules are power hungry they take about 150mA with only a nano attached. Is you power supply sufficient and smooth? 4 Are you plugging the board to the nano or using jumpers? If using jumpers try and jumper from the Nano pin 10(CS) to pin 8 on the board it is possible the board has the cs connection on pin 8. 5 You could try loading the UIPEthernet example EchoServer and see if you can then get echo back from your computer if you use telnet on your computer. When doing this use a suitable MAC, IP address and port number on the arduino for your computer network. This example uses the same connections as the gateway so no wiring changes. You should then be able to connect and then get text sent from the computer echoed back from the arduino using telnet. 6 Failed Parts! Original Nano If you were powering the original nano from the USB port then i suspect the input diode has partially failed, so will supply very limited power to the board from the USB connector, If you were powering the nano via the RAW pin then the voltage regulator is suspect. ENC28J60 Board If the Link and Data LEDs are lighting up then the ENC28J60 is working to some extent as these LEDs are controlled by the chip. So I suspect the programing and then power / connections. Of course even if you get this working this chip is second rate compared to the W5100 or W5500 in both memory consumption and speed.
  • Raspberry Pi (zero) as sensor node

    5
    0 Votes
    5 Posts
    2k Views
    alowhumA
    Overpowered smart devices are a security risk. Especially if they communicate via TCP-IP and are connected to your normal home network.
  • Jumpering IC pins

    3
    0 Votes
    3 Posts
    710 Views
    T
    Well the replacement regulator datasheet says that pin 5 its not connected to anything so I'm assuming that it doesn't matter. With regard to the PCB, I don't know the answer to that and didn't really consider that. I don't have the actual schematic but my understanding is that all Arduino Mini Pro's are made from the same schematic so if so, pin 4 per the schematic is "bypass" and is not attached to anything on the PCB.
  • Blink on nodeMCU / RFM69 gateway

    nodemcu gateway mqtt rfm69hw blink
    3
    0 Votes
    3 Posts
    910 Views
    mfalkviddM
    In the default wiring, D1 is the only unused pin that is easy to work with. D2 is used for CE so using it to blink a led as well will not work.
  • Total noob!

    5
    0 Votes
    5 Posts
    1k Views
    S
    @wergeld thanks. While I do have a pi, it's currently managing my fish tank - so I will probably set things up on the laptop and if it works out will transfer things to another pi later on. What brought me to here was a desire to set up two light pulse meter sensors. One on my import meter the other on my solar generating meter. Currently I have a commercial hall effect display - but its pretty basic and it doesn't show direction, meaning if it shows 1Kwh - I have no idea if this is importing or exporting. I figure to show the direction with led initially (if its a net export import will be zero and export will be flashing). Anyway - thats my initial plan. if this works then I can think about pulse rate, Watts and then turning things on when exporting enough power.
  • Arduino 32U4 with built in RFM95 (LORA) on Aliexpress for $18

    2
    0 Votes
    2 Posts
    1k Views
    alowhumA
    Also quite nice: a normal Arduino (not the mega) with Lora, but with a nice battery system built in. https://www.aliexpress.com/item/LoRa-Radio-Node-v1-0-Based-on-Sx1278-LoRa-433Mhz-2-4G-RFM98-for-Arduino-ATmega328P/32855090628.html Now if only they made an RFM69 version of that..
  • Boundary sensing

    sensor
    3
    0 Votes
    3 Posts
    907 Views
    MaruM
    I've thought of that already but @nagelc thanks for the suggestion though!!
  • How to measure freezing on buds

    bug freeze sensor
    21
    0 Votes
    21 Posts
    3k Views
    NeverDieN
    @scalz Maybe this: https://en.wikipedia.org/wiki/Net_radiometer I'm not sure if it's overkill, but it does look like it would do the job. :)
  • rpi 3 ethernet gateway to serial rs485

    2
    0 Votes
    2 Posts
    970 Views
    mfalkviddM
    Welcome to the MySensors forum @trentbliss Could you explain what CMS is in this context? What is a read holding register command?
  • Trouble wiring a Dalla 18B20 to Arduino D1 Mini

    23
    0 Votes
    23 Posts
    4k Views
    H
    @prakhar-birla Please explain how the DS18B20 will not be parasitic mode when it only has GND connected on pins 1 and 3 and data (with pull-up) on pin 2?
  • 2.4Ghz RF Module for new users [2018]

    9
    1 Votes
    9 Posts
    2k Views
    J
    @prakhar-birla I do buy in Aliexpress, you can see some of the links in https://www.mysensors.org/build/connect_radio
  • AC -DC transformer sourcing

    19
    0 Votes
    19 Posts
    3k Views
    T
    @jeremushka Indeed, it is a complex way to switch on a lamp, but if you only want to change the switch, I guess it's what you need to do. It would be much easier to insert something at the light bulb, as your neutral is available there. My French is not that good, but I think you can solve your "va et vient" by changing the NO relay in your reference schematic with a NO/NC relay (SPDT switch).
  • How to add support for SAM D51/Cortex M4?

    3
    0 Votes
    3 Posts
    2k Views
    K
    Hallo Mikael, thank you for your hint. I modified the hwCPUVoltage() part of MyHwSAMD.cpp like this. It works for me. Maybe it is not the best solution, however. Sincerely Karl-Heinz uint16_t hwCPUVoltage() { #ifdef __SAMD51__ return FUNCTION_NOT_SUPPORTED; #else // disable ADC while (ADC->STATUS.bit.SYNCBUSY); ADC->CTRLA.bit.ENABLE = 0x00; // internal 1V reference (default) analogReference(AR_INTERNAL1V0); // 12 bit resolution (default) analogWriteResolution(12); // MUXp 0x1B = SCALEDIOVCC/4 => connected to Vcc ADC->INPUTCTRL.bit.MUXPOS = 0x1B ; // enable ADC while (ADC->STATUS.bit.SYNCBUSY); ADC->CTRLA.bit.ENABLE = 0x01; // start conversion while (ADC->STATUS.bit.SYNCBUSY); ADC->SWTRIG.bit.START = 1; // clear the Data Ready flag ADC->INTFLAG.bit.RESRDY = 1; // start conversion again, since The first conversion after the reference is changed must not be used. while (ADC->STATUS.bit.SYNCBUSY); ADC->SWTRIG.bit.START = 1; // waiting for conversion to complete while (!ADC->INTFLAG.bit.RESRDY); const uint32_t valueRead = ADC->RESULT.reg; // disable ADC while (ADC->STATUS.bit.SYNCBUSY); ADC->CTRLA.bit.ENABLE = 0x00; return valueRead * 4; #endif }
  • The mysterious RFMB12-D 433Mhz tranceiver

    4
    0 Votes
    4 Posts
    1k Views
    alowhumA
    The RFM69 is definitely better. But I haven't found a commercial version of the RFM69 that can fit in the NRF24 socket (and ideally allow for 5v communication). If the Moteino allows for the RFMB12 to be soldered on.. does that mean MySensors could also in theory communicate via an RFMB12? Or would modifications to the code need to be made? // hmm, that page says the RFM12B is not really developed for moteino anymore.
  • Capacitor RTC Real Time Clock?

    3
    0 Votes
    3 Posts
    1k Views
    alowhumA
    @nca78 I did that search on Aliexpress but only found coin-cell operated ones?
  • BME280 How to use it outdoors

    36
    0 Votes
    36 Posts
    30k Views
    Nca78N
    @parachutesj thank you for the link I never noticed those before.
  • get(Calculating) toluene gas with MQ138 Sensor

    1
    0 Votes
    1 Posts
    851 Views
    No one has replied
  • BME280 Battery Powered Sensors

    10
    0 Votes
    10 Posts
    3k Views
    NeverDieN
    @skywatch I was referring to the OP.

24

Online

11.7k

Users

11.2k

Topics

113.1k

Posts