Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • Nodemcu + nrf24l01+lna+pa serial gateway power

    3
    0 Votes
    3 Posts
    2k Views
    Fat FlyF
    This pa level is in line 437 #define MY_RF24_PA_LEVEL RF24_PA_MAX ? For serial gateway. [image: 1482432435689-img_5983.jpg]
  • Gateway on OSH Park

    8
    0 Votes
    8 Posts
    2k Views
    hekH
    @emc2, unfortunately not possible to merge discussion in the forum.
  • Uno stops sending

    9
    0 Votes
    9 Posts
    2k Views
    A
    well i have the same issues with my network. my last operation was to replace the repeaters with big 9dbi antenna and nano io shield which give the nrf direct power from the 12v socket (through 3.3 reg' of course). and still losing contact from time to time. **next phases ** 1 wrapping the tinfoil shield discussed here 2 adding relay to software reset the arduino (gnd and rst connected to relay - like arduino pressing its own reset button) * 3 replacing nrf with rfm69-433mhz - some say theyre better although require some soldering wires and logic converters (i'm waiting for my order from ebay to arrive.) about this library fail attempts modification - i didnt find something, but maybe MySensor.h has something in it - but i need some proffesional eyes here, BTW my setup is domoticz on Rpi, S-GW, E-GW, most nodes with nano-io-shiedl + nrf-pa-lna, library v1.5
  • ATMega 328P-PU: 8MHz or 1MHz

    6
    0 Votes
    6 Posts
    2k Views
    N
    Great ! I've done a small quick desktop test this morning. I've managed to burn optiboot with 8mhz internal RC, it works ok with just the Atmega328 and no external parts :) But, I've searched for fuses settings for 1mhz. Found none ! I suppose I have to choose "8Mhz int rc" and apply "clock divisor =8 " ? So, the int. RC will run 8mhz, but the cpu will be clocked 8 times slower, so 1mhz ? Am I right ?
  • Arduino Zero supported

    6
    0 Votes
    6 Posts
    2k Views
    J
    Thanks for the info , so the bottom line if I understand correctly, is that the Zero will work as a Serial Gateway and NOT work as an Ethernet Gateway.
  • Iboard - Cheap Single board Ethernet Arduino with Radio

    iboard
    74
    1 Votes
    74 Posts
    59k Views
    Mercury69M
    @TimO Thank you very much for your help, now I succesfully connected my iboard card as LAN Gateway without doing any HW modification and even any software modification to any library, simply using the sketch you sent here. For general information to other people that want to use the iboard card with Domoticz, to avoid any problem like the following: 2016-12-18 12:06:40.840 MySensors: trying to connect to: 192.168.1.133:5603 2016-12-18 12:06:41.841 MySensors: connected to: 192.168.1.133:5603 2016-12-18 12:06:45.841 MySensors: Connection reset! 2016-12-18 12:06:45.842 TCP: Reconnecting in 30 seconds... Consider to use the Arduino IDE 1.6.8 to compile and upload the sketch, otherwise, with newest Arduino IDE you will get the error messages above. Thank you again for you help and a big hello to all the members of the forum. Regards
  • Arduino + RS-485 + Ethernet + Radio

    2
    0 Votes
    2 Posts
    2k Views
    RedguyR
    I have just started using mysensors myself but the shared D10 pin you mention is an issue for sure.. Both the ethernet module and the RFM radio use an SPI connection to communicate. The SPI bus can be shared between multiple devices is you want (MOSI,MISO, SCK), and do so based on a separate signal "Chip Select" Each device sharing the SPI bus need to have their own dedicated CS signal to know if it is their turn to use their shared SPI bus. In you proposal however, software based SPI is used ,so both of your devices have their own data pins.. But they still need their own dedicated CS signal. Which is the signal you intend to share.. that wont work,. Also, I have been asking around if you can create a combined gateway node for both wireless (NRF/RFM based) and wired (RS485 based) communication.. From what I gather, it is not possible to combine these functions. 2 separate gateway nodes are needed.
  • board with relay for hide behind switch.

    1
    0 Votes
    1 Posts
    606 Views
    No one has replied
  • AM2320 will this work as a replacement for AM2302 / DHT22

    4
    0 Votes
    4 Posts
    11k Views
    bgunnarbB
    @Omemanti I think the AM2320 has got an "One-wire mode", at least if you look at the datasheet. I have not tried it though. I also had great difficulties in getting the AM2320 to work with I2C until I realised late last night that I had forgotten to include the pull-up resistors, 4k7 each from SDC and SDA to Vcc. All other I2C sensors I have used have had them included on the breakout board but this sensor does not have them built in the sensor body. Now it works like a charm, one measurement of temp and hum every 2 minutes. There are a few arduino-libraries for AM2320 floating around. I use this: (https://github.com/thakshak/AM2320) Here is my sketch: /** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * DESCRIPTION * * Temperature and humidity measurement using the AM2320 with I2C interface * Battery voltage also monitored using internal reference * */ // Enable debug prints to serial monitor #define MY_DEBUG #define MY_NODE_ID 23 #define BATTERY_SENSE_PIN A0 // Input pin for battery sense #define VMIN 1.0 // (Min input voltage to regulator according to datasheet or guessing. (?) ) #define VMAX 3.22 // (Known or desired voltage of full batteries. If not, set to Vlim.) #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #include <SPI.h> #include <AM2320.h> #include <Wire.h> #include <MySensors.h> #define DEBUG_PRINT 0 // Print temperature and humidity measurements on serial i/f. 1 = Yes 0 = No unsigned long SLEEP_TIME = 120000; // Sleep time between reads (in milliseconds) bool receivedConfig = false; bool metric = true; float temp, hum; // Create an AM2320 instance AM2320 th; // Initialize AM temperature message MyMessage msgt(CHILD_ID_TEMP,V_TEMP); // Initialize AM humidity message MyMessage msgh(CHILD_ID_HUM,V_HUM); void before() { // use the 1.1 V internal reference #if defined(__AVR_ATmega2560__) analogReference(INTERNAL1V1); #else analogReference(INTERNAL); #endif } void setup() { Serial.begin(115200); Wire.begin(); } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Temp. Hum Sensor", "1.4"); // Present temp/humidity sensor to controller present(CHILD_ID_TEMP, S_TEMP); present(CHILD_ID_HUM, S_HUM); } void loop() { //Get temperature and humidity from AM2320 switch(th.Read()) { case 2: Serial.println("CRC failed"); break; case 1: Serial.println("Sensor offline"); break; case 0: temp = th.t; send(msgt.set(temp, 1)); hum = th.h; send(msgh.set(hum, 0)); if (DEBUG_PRINT == 1) { Serial.print("humidity: "); Serial.print(th.h); Serial.print("%, temperature: "); Serial.print(th.t); Serial.println("*C"); } break; } sleep (200); // get the battery voltage int batValue = analogRead(BATTERY_SENSE_PIN); // Battery monitoring reading float Vbat = batValue * 0.003363; int batteryPcnt = static_cast<int>(((Vbat-VMIN)/(VMAX-VMIN))*100.); sendBatteryLevel(batteryPcnt); sleep(SLEEP_TIME); }```
  • ATMEGA48+NRF24L01+ wireless Shield module

    7
    0 Votes
    7 Posts
    6k Views
    Nca78N
    Hello, you should give a try to "EasyPCB" it's very convenient to use and to make first sensors that are clean and without wires everywhere. It keeps things simple but still have a connector for each pin of the pro mini. I found it really great when I started with MySensors and still use sensors made with it now. Cost will be very low: less than 1.5$ for the PCB less than 2$ for the arduino pro mini clone less than 1$ for the NRF24L01+ Less than 5$ including capacitor for the radio, resistors, solder, ... 5$ left for the sensor, that's enough for a lot of options. https://forum.mysensors.org/topic/2740/easy-newbie-pcb-for-mysensors/ https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors
  • Share the neutral

    9
    0 Votes
    9 Posts
    2k Views
    dbemowskD
    How did this go from a relay/power issue to changing RGB color values?
  • C.H.I.P. my controller choise

    1
    2 Votes
    1 Posts
    743 Views
    No one has replied
  • Two motion sensors on one Arduino. How?

    8
    0 Votes
    8 Posts
    3k Views
    edsteveE
    Nobody? :disappointed:
  • RPi as a node

    1
    0 Votes
    1 Posts
    749 Views
    No one has replied
  • ATtiny supported?

    42
    1 Votes
    42 Posts
    29k Views
    CrankyCoderC
    Does anyone have a working mysensors attiny node?
  • Hi, I'm new. Which radio should I use?

    3
    0 Votes
    3 Posts
    1k Views
    chefC
    Thank you for the prompt reply and resources. It is appreciated.
  • Sensebender Micro + BMP085 Module: Power Consumption

    2
    0 Votes
    2 Posts
    915 Views
    tbowmoT
    I would remove the regulator, as it's not needed. I have had a node running for the last 6 months based on a Sensebender Micro and a bmp180 (if I remember correctly). Batteries have been used by the Sensebender alone in the 12 months prior to the addition of the bmp180, and the node still reports about 66% battery left (that's 18 months of service time, where the last 6 is with bmp180)
  • Chinese rubbish.... or is it?

    6
    2 Votes
    6 Posts
    4k Views
    FotoFieberF
    @Yveaux said: @FotoFieber yes, I did get it to work with a 3.3v pro mini. But the module you're referring to is not based on the vs1053 mp3 decoder chip, so it has to be controlled differently... Yes, the driver logic is different. But I would be interested, what message types you used. AFAIK there are no matching types defined by the api... :laughing:
  • USB Gateway NRF24L01 external power supply

    4
    0 Votes
    4 Posts
    1k Views
    F
    I mean that you should try with a new nRF. I thought I fixed my problem when it worked for 2 days but I got error again. I finally changed the nRF and all my problems was gone. I recommend to use nRF PA LNA for a gateway then you have a strong nRF where all data shall arrive.
  • C.H.I.P.

    10
    0 Votes
    10 Posts
    4k Views
    fernando alvarez buyllaF
    @vikasjee glady but I follow some one else steps lol https://bbs.nextthing.co/t/domoticz-small-how-to/2585 But instead of wget http://domoticz.sourceforge.net/beta/domoticz_linux_armv7l.tgz Just use Wget https://releases.domoticz.com/releases/beta/domoticz_linux_armv7l.tgz

26

Online

11.7k

Users

11.2k

Topics

113.1k

Posts