Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • Multi-radio per MCU

    5
    0 Votes
    5 Posts
    841 Views
    electrikE
    Look here: https://forum.mysensors.org/topic/11135/something-s-cooking-in-the-mysensors-labs?_=1665077470840
  • I got a plug-and-play NRF24 shield for the Pi on Aliexpress

    9
    0 Votes
    9 Posts
    3k Views
    puskyerP
    UPDATE: if at one point you need to use GPIO18 for something other then RF24L01 then you have to delete the spi-cs-extend.dtbo file from the /boot/overlays/ and then reboot.
  • JSN-SR04T-3.0 Ultrasonic - Please note

    1
    1 Votes
    1 Posts
    30 Views
    No one has replied
  • 0 Votes
    3 Posts
    49 Views
    M
    @OldSurferDude thank you so much for your reply, I’ll definitely look into this further! Martin
  • Need help for yacht lighting wireless switch

    3
    0 Votes
    3 Posts
    58 Views
    Damien 0D
    Thank you very mcuh for your reply, i'll defintely take a look to the sonoff devices if it can suits my need. In the same time regarding eclettis, i contacted them and their reply is that : *Our commands for home automation systems are simple normally open commands so they can be connected to every system. Just pay attention before connecting the device: ensure that the working voltage is properly configured in order to avoid to damage the device. * So i'm still looking in the same time for battery powered 4 way transmitter and corresponding receiver for DC system, on the top of that everything is dimmable led light...
  • Unknown Sensor

    2
    1
    0 Votes
    2 Posts
    32 Views
    V
    @chabo_mq Could this possibly be an IR light barrier?
  • I want to know what battery you use. How long can it be used?

    5
    0 Votes
    5 Posts
    46 Views
    NeverDieN
    @nagelc Yeah, that was me. I found it makes a difference.
  • Need help finding load cell, order qty would be > 32,000 units

    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • TEMT6000 Breakout board

    6
    1
    0 Votes
    6 Posts
    86 Views
    dbrundD
    So the station is finally working, with the data being sent to googlesheets and integrated into Data Studio. [image: 1658446554681-2022-07-21_20h33_36.png]
  • nrf24+ module with stick antenna

    7
    1
    0 Votes
    7 Posts
    86 Views
    OldSurferDudeO
    @ben999 @NeverDie I had found a similar article about making the antenna a dipole. The interesting thing the article stressed was the lengths of the wires. I'm not an antenna engineer (my brother is) so I made the wires as suggested. I think it made a small improvement. and I still use that radio. My advice on antennas is: don't modify it. If your application needs more range, you're going to need more power. Signal strength drops off with the cube of the distance. So you're going to need a better antenna. For $3 (and a month or two delivery time) you can get a theoretically better module+antenna
  • Relay SSR AQH3223 vs AQH3223

    1
    0 Votes
    1 Posts
    14 Views
    No one has replied
  • How is this receiver able to continuously Rx but consume only 90ua?

    19
    0 Votes
    19 Posts
    753 Views
    NeverDieN
    A different link to the same thesis as previoiusly where he claims a wake-up distance of 20 meters: https://hh.diva-portal.org/smash/get/diva2:1187369/FULLTEXT02.pdf Well, it looks not difficult to construct. The AS3933 chips are available for around $1.30 on aliexpress, so cheaper than nRF5x chips. Perhaps cheapest of all would be be a tightly controlled nRF24L01, but it would surely draw more current listening than an AS3933.
  • MyS blocking i2c PCF8574

    mysensors
    13
    0 Votes
    13 Posts
    162 Views
    J
    final sketch and functional with MyController /* * DESCRIPTION : 4 inputs and 4 outputs on i2C bus with a PCF8574 * * LIBRAIRIES: * - Rob Tillaart pour PCF8574 https://github.com/RobTillaart/Arduino/tree/master/libraries/PCF8574 * - MySensors / Arduino Uno https://github.com/mysensors/MySensors * * ELEMENTS: * - Expander PCF8574 avec module Metasys JC / 4di 4do - 0X03D i2c adress * * MODIFICATION: * -x- RAS : Fonctionnelle * -o- * -o- * * (36%) de l'espace de stockage de programmes */ //----------- 9 Mai 2022 ---------------- PCF8574 -4DI-4DO / MyS RS485 et MyC -----------------// //------------------- MyS --------------------------------- //#define MY_DEBUG /*Enable debug prints to serial monitor*/ //#define MY_DEBUG_OTA_DISABLE_ECHO //testing #define MY_TRANSPORT_WAIT_READY_MS 3000 /*Tempo de mis en Com (millisecondes) à placer avant Mysensors.h*/ #define MY_NODE_ID 40 /*Node en ID static*/ /* ----- Module TTL-RS485 ----*/ #define MY_RS485 /*Apl du transport RS485 (protocol?)*/ #define MY_RS485_DE_PIN 10 /*Cmd DE pin*/ #define MY_RS485_BAUD_RATE 9600 /*Set RS485 baud rate to use*/ #define MY_REPEATER_FEATURE /*Activer fonctionnalité de répéteur du nœud*/ #include <MySensors.h> //---------------- PCF ------------------------------- #include "PCF8574.h" PCF8574 PCF27a (0x3D); // adjust addresses i2c pcf8574 // ------ objet ------ #define CHILD_ID_B0 0 /*Id IN - bp */ #define CHILD_ID_B1 1 #define CHILD_ID_B2 2 #define CHILD_ID_B3 3 #define CHILD_ID_R4 4 /*Id OUT - relay */ #define CHILD_ID_R5 5 #define CHILD_ID_R6 6 #define CHILD_ID_R7 7 #define RELAY_ON 0 // 1 valeur #define RELAY_OFF 1 // 0 invers //---------- MyS ------------- MyMessage msg0(CHILD_ID_B0,V_TRIPPED); /*Boton*/ MyMessage msg1(CHILD_ID_B1,V_TRIPPED); MyMessage msg2(CHILD_ID_B2,V_TRIPPED); MyMessage msg3(CHILD_ID_B3,V_TRIPPED); MyMessage msg4(CHILD_ID_R4,V_STATUS); /*Relay*/ MyMessage msg5(CHILD_ID_R5,V_STATUS); MyMessage msg6(CHILD_ID_R6,V_STATUS); MyMessage msg7(CHILD_ID_R7,V_STATUS); bool info; // pour info GW sur MyC bool state = false; // output // bool state4 = false; bool state5 = false; bool state6 = false; bool state7 = false; int oldValue0=-1; int oldValue1=-1; int oldValue2=-1; int oldValue3=-1; // Input //---------------- SETUP ------------------------- void setup() { // Serial.begin(115200); // debug //--------- testing IsConnected i2c PCfx ------------ Serial.println(__FILE__); Serial.print("PCF8574_LIB_VERSION:\t"); Serial.println(PCF8574_LIB_VERSION); if (!PCF27a.begin()) { Serial.println("could not initialize..."); } if (!PCF27a.isConnected()) { Serial.println("=> not connected"); } else { Serial.println("=> connected!!"); } // ---- info send to gateway ---- send(msg0.set(info)); send(msg1.set(info)); //input wait(200); send(msg2.set(info)); send(msg3.set(info)); //input wait(200); //delays for frames, depending on system load and bus type (wireless or wired) send(msg4.set(info)); send(msg5.set(info)); //output wait(200); send(msg6.set(info)); send(msg7.set(info)); //output } //----------------- MyS ---------------------------- void presentation() { sendSketchInfo("PCF8574 x4in/out - node40", "2.0"); /*info version sketch*/ /*Mysenors Enregistre Child sur la Gw*/ present(CHILD_ID_B0, S_DOOR, "boton0"); /*Boton*/ present(CHILD_ID_B1, S_DOOR, "boton1"); wait(200); present(CHILD_ID_B2, S_DOOR, "boton2"); present(CHILD_ID_B3, S_DOOR, "boton3"); wait(200); //delays for frames, depending on system load and bus type (wireless or wired) present(CHILD_ID_R4, S_BINARY, "relay4"); /*Relay*/ present(CHILD_ID_R5, S_BINARY, "relay5"); wait(200); present(CHILD_ID_R6, S_BINARY, "relay6"); present(CHILD_ID_R7, S_BINARY, "relay7"); wait(200); // metric = getControllerConfig().isMetric; } //----------------- LOOP ---------------------------- void loop() { //----------- MyS input ------------------------------- int value0 = PCF27a.read(0); if (value0 != oldValue0) { send(msg0.set(value0==HIGH ? 1 : 0)); //Send new value oldValue0 = value0; } int value1 = PCF27a.read(1); if (value1 != oldValue1) { send(msg1.set(value1==HIGH ? 1 : 0)); oldValue1 = value1; } int value2 = PCF27a.read(2); if (value2 != oldValue2) { send(msg2.set(value2==HIGH ? 1 : 0)); oldValue2 = value2; } int value3 = PCF27a.read(3); if (value3 != oldValue3) { send(msg3.set(value3==HIGH ? 1 : 0)); oldValue3 = value3; } } //----------- MyS out ------------------------------- void receive(const MyMessage &message) { if (message.getType()==V_STATUS) { switch (message.sensor) { case 4: state= message.getBool(); PCF27a.write(4, state?RELAY_ON:RELAY_OFF); break; case 5: state = message.getBool(); PCF27a.write(5, state?RELAY_ON:RELAY_OFF); break; case 6: state = message.getBool(); PCF27a.write(6, state?RELAY_ON:RELAY_OFF); break; case 7: state = message.getBool(); PCF27a.write(7, state?RELAY_ON:RELAY_OFF); break; } } } //------------------------------ End pgm -------------------------------------
  • Best PCB Assembly / Manufacturing for UK and Europe?

    1
    0 Votes
    1 Posts
    37 Views
    No one has replied
  • Reed Switch normally open or normally closed

    hardware 3d print
    20
    2 Votes
    20 Posts
    8k Views
    E
    i had good experience with it. . .
  • about Arduino + NRF24L01 need help please.

    5
    0 Votes
    5 Posts
    86 Views
    skywatchS
    @llasking Have a look on the arduino forum or github - I still use the older tmrh library for point-to-point on things made before I changed over to mysensors. There is also a nrf24-lite library as well, but I have never used it.
  • Mysensors exemple sketch on SAMD21 with i2c EEPROM

    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • Reading INPUTS from arduino in domoticz

    7
    0 Votes
    7 Posts
    74 Views
    E
    @Mati_Smart, if the messages from the sensor are arriving in domoticz, it must be some configuration in domoticz itself. Can't help you here, I don't know domoticz. Did you search already on the domoticz forum?
  • CO2 Sensor Senseair S8 - big values read

    3
    0 Votes
    3 Posts
    46 Views
    epierreE
    maybe check what they did here: https://github.com/airgradienthq/arduino/blob/master/AirGradient.cpp
  • Sensor reboot with Ebyte NRF

    5
    0 Votes
    5 Posts
    59 Views
    T
    Thanks to all. It's very strange. I try to test NFR with Uno and PCB regulator (3V3 + capacitor) , It's work with old NRF but when I switch old NRF to Ebyte, it's not working... But I test Ebyte antenna to my gateway and it's working, so it's not broken

23

Online

11.7k

Users

11.2k

Topics

113.1k

Posts