Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.4k Posts
  • Power Measurements

    7
    0 Votes
    7 Posts
    4k Views
    skatunS
    i came across this one: https://github.com/FriedCircuits/ADE7753/tree/master/ADE7753_Breakout_v.2 I want it in this form [image: files?p_Doc_Oid=3421440332&p_File_Ext=.PNG&p_File_Type=rendition_200_png] http://download.schneider-electric.com/files?p_Reference=CA9SS048E&p_EnDocType=Application solutions&p_File_Id=5047423337&p_File_Name=CA9SS048E (web).pdf or something like this https://www.aliexpress.com/item/Free-shipping-DDS6866-5-30-A-230V-50HZ-Single-phase-Din-rail-KWH-Watt-hour-din/32324079915.html?spm=2114.01010208.3.54.D7Ft8i&ws_ab_test=searchweb0_0,searchweb201602_1_116_10065_117_10068_114_115_113_10000009_10084_10083_10080_10082_10081_10060_10061_10062_10056_10055_10054_10059_10099_10078_10079_427_10103_10073_10102_10096_10052_10050_10051-10102,searchweb201603_9,afswitch_3&btsid=81065051-9d8f-4742-afff-05bace226fa6 or this one, but it seems to output serial data, how many software serial can you have on one arduino? https://www.aliexpress.com/item/Mini-Multifuncion-power-energy-amp-voltage-monitor-meter-communication-module-with-CT-coil-AC-80-260V/32512169668.html?spm=2114.01010208.3.156.Hh7LxY&ws_ab_test=searchweb0_0,searchweb201602_1_116_10065_117_10068_114_115_113_10000009_10084_10083_10080_10082_10081_10060_10061_10062_10056_10055_10054_10059_10099_10078_10079_427_10103_10073_10102_10096_10052_10050_10051-10050_114,searchweb201603_9,afswitch_3&btsid=810667df-39e8-4801-a123-f3cd7ca3456a
  • IR Blaster (progress)

    99
    8 Votes
    99 Posts
    76k Views
    Simon T.S
    For info, Luminara works with USB-UIRT with windows (Eventghost) Code IR ON: 0000 006F 0000 000A 01DD 0054 00F1 0053 002C 007B 002D 007B 002C 007B 007C 002B 002D 007C 002C 007B 007B 002C 007B 0FF1 Code IR OFF: 0000 006F 0000 000A 01DD 0054 00F2 0053 002D 007B 002D 007B 002C 007B 007C 002C 002C 007B 002D 007B 007B 002C 002D 09F6 With Eventghost you can create request HTTP to Trigger IR signal I learned code IR with LM Remote KeyMap beacause EventGhost don't learn signal
  • Distance measurement

    2
    0 Votes
    2 Posts
    683 Views
    mfalkviddM
    Welcome to the MySensors community @Prithiv-Raj ! Have you looked at the distance sensor example?
  • MySensors 2.0 on Adafruit Feather 32U4 RFM69HCW

    1
    2 Votes
    1 Posts
    2k Views
    No one has replied
  • Board + Layout for 2xTemp/Humidity Sensor

    1
    1 Votes
    1 Posts
    686 Views
    No one has replied
  • 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
    61k 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
    650 Views
    No one has replied
  • AM2320 will this work as a replacement for AM2302 / DHT22

    4
    0 Votes
    4 Posts
    12k 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
    792 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
    820 Views
    No one has replied
  • ATtiny supported?

    42
    1 Votes
    42 Posts
    30k Views
    CrankyCoderC
    Does anyone have a working mysensors attiny node?

18

Online

11.7k

Users

11.2k

Topics

113.2k

Posts