Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Termite terminal for RS485

    1
    0 Votes
    1 Posts
    40 Views
    No one has replied
  • 433MHz amplified (>5V)

    22
    0 Votes
    22 Posts
    12k Views
    Yohann StreibelY
    Hi, I create a rflink pcb with this schema [image: 1692351051576-rflink_schema.jpeg]. I have an emission issue, the module RF 433Mhz Out not have 12v in VOUT+. What could I need to do. This is the pcb design, maybe it needs some improvement. [image: 1692351218669-mon_rflink_pcb_design-resized.png] [image: 1692351244899-mon_rflink_pcb.png] Thanks
  • Help me build a 6-light-sensor & 2 ch relay node.

    3
    2
    0 Votes
    3 Posts
    62 Views
    H
    Only if you send a correct message from the controller to the node the receive function is called. I don't see a receive in your log. I think in your case the receive-function is not called (or called with a wrong message type or node id). Put a serial.print("receive() is called with type "); serial.println(message.getType()); on top of the receive function to see if the receive function is called and which type is handed over..
  • Requesting for help building traffic light led module node

    5
    0 Votes
    5 Posts
    74 Views
    A
    I am sharing my sketch. Based on the sketch below, I am using this led light to show air quality status (good for green, normal for yellow and bad for red). This sketch is just a switch so you should make some automation in HA. https://www.amazon.com/Traffic-Display-Module-Arduino-Mini-Traffic/dp/B07SZMRSDN #define MY_DEBUG #define MY_RADIO_RF24 #define MY_NODE_ID 16 #define MY_RF24_PA_LEVEL RF24_PA_LOW #include <MySensors.h> #define CHILD_ID_GREEN 1 #define CHILD_ID_YELLOW 2 #define CHILD_ID_RED 3 #define GREEN_PIN 3 #define YELLOW_PIN 4 #define RED_PIN 5 bool greenState = false; bool yellowState = false; bool redState = false; MyMessage msgGreen(CHILD_ID_GREEN, V_LIGHT); MyMessage msgYellow(CHILD_ID_YELLOW, V_LIGHT); MyMessage msgRed(CHILD_ID_RED, V_LIGHT); void setup() { Serial.begin(115200); pinMode(GREEN_PIN, OUTPUT); pinMode(YELLOW_PIN, OUTPUT); pinMode(RED_PIN, OUTPUT); wait(200); } void presentation() { // Initialize the MySensors communication sendSketchInfo("Traffic Light Node", "1.0"); present(CHILD_ID_GREEN, S_LIGHT); present(CHILD_ID_YELLOW, S_LIGHT); present(CHILD_ID_RED, S_LIGHT); } void loop() { // Send initial values of the LEDs to the controller send(msgGreen.set(greenState ? 1 : 0)); send(msgYellow.set(yellowState ? 1 : 0)); send(msgRed.set(redState ? 1 : 0)); // Other tasks in the loop if needed // ... // Add a delay to control how often the initial values are sent delay(5000); // Send initial values every 5 seconds (adjust as needed) } void receive(const MyMessage &message) { // Check which LED to control based on the message received if (message.sensor == CHILD_ID_GREEN && message.type == V_LIGHT) { greenState = !greenState; // Toggle the state digitalWrite(GREEN_PIN, greenState ? HIGH : LOW); // Set the pin accordingly send(msgGreen.set(greenState ? 1 : 0)); // Report back the new state } else if (message.sensor == CHILD_ID_YELLOW && message.type == V_LIGHT) { yellowState = !yellowState; digitalWrite(YELLOW_PIN, yellowState ? HIGH : LOW); send(msgYellow.set(yellowState ? 1 : 0)); } else if (message.sensor == CHILD_ID_RED && message.type == V_LIGHT) { redState = !redState; digitalWrite(RED_PIN, redState ? HIGH : LOW); send(msgRed.set(redState ? 1 : 0)); } }
  • Consistent NACK + RPI Gateway

    5
    0 Votes
    5 Posts
    83 Views
    OumuamuaO
    Hi all, Should any one need, the fix mentioned in this page actually works. Thanks,
  • Error when restarting Homeassistant (mysensors-error)

    8
    2
    0 Votes
    8 Posts
    110 Views
    B
    thanks again Edi. I will first make a full backup and put it on a new ssd. after that i will test your solutions as far as i can. sorry, i must have overlooked the code snippets function. best regards
  • ATMEGA 328 Timer/Counter2 frequency problem

    2
    0 Votes
    2 Posts
    35 Views
    E
    Hi Monte! May you please post your sketch? Thank you very much, edi
  • Lights on after gateway reboot

    6
    0 Votes
    6 Posts
    68 Views
    electrikE
    If the message is retained, it will show up already when you connect MQTT explorer to the broker, without HA sending a message yet
  • MySensor Network on RS485 - only single node visible

    mysensors
    13
    0 Votes
    13 Posts
    196 Views
    R
    Very useful topic for me, thanks. Even though it's been a long time, the information was useful to me. And especially the information on the link you sent.
  • Unsolved problem with RFM95

    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • RSSI affects Sleep Timer??

    5
    0 Votes
    5 Posts
    71 Views
    J
    thanks for the feedback
  • Error sending switch command, check device/hardware !

    18
    0 Votes
    18 Posts
    6k Views
    G
    Solved by adding a short delay between the RX/TX turnaround when replying with an ACK message. In file MyTransport.cpp at line 706 in the "if (msg.getRequestEcho) block, right after the debug message "TSF:MSG:"ECHO REQ" added a 2ms delay to allow the caller to switch from TX to RX mode. GS
  • NRF24 nodes failing to connect on channels below ~100

    10
    0 Votes
    10 Posts
    76 Views
    E
    @GaryStofer Okay, then sounds like you're doing what I would. Are you able to turn on debug and connect serial to it to troubleshoot that way? Without getting more info on it, I'm out of ideas at the moment.
  • How to change the RFM69 Modem configuration?

    3
    0 Votes
    3 Posts
    38 Views
    G
    Working great! Thanks very much!
  • 0 Votes
    1 Posts
    19 Views
    No one has replied
  • multiple definition of `premain()' - PlatformIO

    2
    0 Votes
    2 Posts
    31 Views
    E
    Well, search seems to be broken again on the site. Hopefully a dev will see this come across their screen and know how to fix it. I searched the site for "multiple definition" and 'premain' but neither one got ANY hits, even this topic itself! So if you tried to search the site to see if anyone else had had this problem before, it wouldn't have much chance of success. Anyway, all that is to say that we've run into this before. I'll link below here the thread where I managed to get around it. I'm not sure if there were other threads, but this one should give you some info on how to fix it for yourself. I could find this by going into the history of posts I had made, since search was failing me.... :) https://forum.mysensors.org/topic/10193/stm32f103c8-problem-at-compilation
  • Battery voltage sensor is no longer recognized by Homeassistant

    10
    0 Votes
    10 Posts
    123 Views
    B
    yes, absolutely. i always order all my components from aliexpress. i don't think it makes any difference which dealer i use there. you can be lucky and sometimes not sometimes you can tell right away, for example an NRF module didn't have an IRQ. sometimes you have to search specifically to get the nrf24l plus model for example, which is different from the normal nrf module. in germany the parts are 3-4 times more expensive. so i put up with it. if you have several components, you can swap them and limit the error. thanks again
  • serial nrf24 gateway is rebooting over and over

    3
    0 Votes
    3 Posts
    25 Views
    bachB
    hi electrick, thank you for the hint, i'm so glad that someone finally talks to me :) Yes i reached the same conclusion about power supply of the nrf24 board. 3.3V pin from nano can only deliver 50mA when e01-ml01sp4 needs 120mA. I redesigned my project including a ams1117 between nano's 5V pin and the radio board https://forum.mysensors.org/topic/12109/nano-e01-ml01sp4-gateway/4?_=1679247873047 next episode when i'll receive the new pcb !
  • 0 Votes
    2 Posts
    32 Views
    T
    OK problem found. Found out that when I selected "Blackpill F411CE" board before code compilation everything were ok. Usually I am choosing generic types so I used "F411CEUx" in case of blackpill 2 and I found out that generic types has different default "Serial" pins in ST core. Now I can confirm that Bluepill , Blackpill and F4VE board are working with MAX485. ST core v 2.4.0. ../.arduino15/packages/STMicroelectronics/hardware/stm32/2.4.0/variants/STM32F4xx/F411C(C-E)(U-Y)/variant_generic.h // UART Definitions #ifndef SERIAL_UART_INSTANCE #define SERIAL_UART_INSTANCE 2 #endif // Default pin used for generic 'Serial' instance // Mandatory for Firmata #ifndef PIN_SERIAL_RX #define PIN_SERIAL_RX PA3 #endif #ifndef PIN_SERIAL_TX #define PIN_SERIAL_TX PA2 #endif ../.arduino15/packages/STMicroelectronics/hardware/stm32/2.4.0/variants/STM32F4xx/F411C(C-E)(U-Y)/variant_BLACKPILL_F411CE.h // UART Definitions #ifndef SERIAL_UART_INSTANCE #define SERIAL_UART_INSTANCE 1 #endif // Default pin used for generic 'Serial' instance // Mandatory for Firmata #ifndef PIN_SERIAL_RX #define PIN_SERIAL_RX PA10 #endif #ifndef PIN_SERIAL_TX #define PIN_SERIAL_TX PA9 #endif So be carefull while using ST core and generic type of STM32.
  • Compiling for STM32F411

    3
    0 Votes
    3 Posts
    47 Views
    nagelcN
    @karlheinz2000 Sorry I missed your original post. I've used the WhiskyDelta code successfully for gateways using the 401 and 411. Glad you found it.

23

Online

11.7k

Users

11.2k

Topics

113.1k

Posts