Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Aron Sjöberg
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Aron Sjöberg

    @Aron Sjöberg

    1
    Reputation
    20
    Posts
    541
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Aron Sjöberg Follow

    Best posts made by Aron Sjöberg

    • RE: [newbie] Using nRF24L0 (2,4Ghz) or RFM69 (433Mhz)?

      Thanks mfalkvidd!

      RFM69 seems the way to go. I'm living in the countryside so distance is a issue...

      I ordered some $100 worth of components. If nothing else it will be a fun learning experience. I have also ordered a Z-Uno, so it will be fun to compare the two approaches communicating with Vera.

      posted in General Discussion
      Aron Sjöberg
      Aron Sjöberg

    Latest posts made by Aron Sjöberg

    • RE: 💬 RFID Lock Sensor

      @Michel---It said in 💬 RFID Lock Sensor:

      Hi, I have a MFRC522 module, and I would like to implement it with 2.0 library. could I use this code?

      I would also really like to know how to use a RFID-RC522 module instead of the PN532 NFC RFID Reader/Writer Module used in the example! The RC522 is included in a lot of different beginner kits.

      posted in Announcements
      Aron Sjöberg
      Aron Sjöberg
    • RE: RFID and NRF24L01 Wireless Network Coding Issues

      Help!

      I have a RFID RC522 module I'm trying to use instead of the PN532 NFC RFID Reader/Writer Module used in the RFID Lock Sensor example (https://www.mysensors.org/build/rfid).

      I thought I could use the sketch above posted by @martins but I get the following error message. I'm a newbie so I don't really know what I'm doing wrong?

      Arduino: 1.8.1 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
      
      Build options changed, rebuilding all
      C:\Users\arons\Documents\Arduino\Vera_RFID-RC522\Vera_RFID-RC522.ino: In function 'int getID()':
      
      Vera_RFID-RC522:259: error: return-statement with no value, in function returning 'int' [-fpermissive]
      
           return;
      
           ^
      
      exit status 1
      return-statement with no value, in function returning 'int' [-fpermissive]
      
      posted in Troubleshooting
      Aron Sjöberg
      Aron Sjöberg
    • Help building battery powered switch for scene control!

      Hi!

      I'm just getting started with MySensors and have managed, after some difficulties, to get a ethernet gateway up and running together with my Vera.

      However, the distance sensor for my wood pellet storage I built didn't work. I assume the range was to far for the NRF24L01+ I use and I can't get NRF24L01+PA+LNA to work.

      I was then thinking about building devices that are not easily available. Sure, I could build some temperature and humidity sensors but because I'm also using a RFXtrx433E with my Vera I could just buy a cheap 433MHz sensor from the local store.

      One thing my wife have talked about is a button by the bed that could trigger different scenes. I've bought and tried several commercial Z-Wave scene controllers but they are slow and unresponsive.

      Preferably I would like to use the same kind of light switch we use for our ordinary electrical wiring, but make it battery powered for easy installation.

      The switch we use around the house is called Schneider Renova and is available for surface mounted installation. I think it would be possible to cram a Arduino and battery pack in...

      0_1489403323507_upload-2167b1c3-2d16-4de5-805d-f5b8eff5b243 0_1489403343628_upload-5a480014-3f13-4aa6-9f6c-3c8a39d12a49 0_1489403403817_upload-42e052a0-ec6c-4642-a2ff-fed76e74172f

      However, because I'm a beginner I don't really know what sketch I should use!

      The scene controller seems overly complicated (https://www.mysensors.org/build/scene_controller) because I won't be using a touchscreen and the binary sketch (https://www.mysensors.org/build/binary) doesn't seem to work with momentary buttons. I'm assuming momentary buttons would be best for this?

      Could someone please point me in the right direction? It would be good for my self esteem to be able to build something working and useful now that I have ordered lots and lots of components... 😉

      posted in Hardware
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      Thanks @Magnus!

      I'll order the one you linked to and see if that works better. I assume I can always use my current ones as base for sensors instead of a gateway. I'll order a ethernet shield as well, so I can try and build a ethernet gateway if my Vera Edge still doesn't recognize the new Nano.

      However, your sketch is not the same as the one in the getting started guide? The sketch I've used is this, from https://www.mysensors.org/build/serial_gateway :

      /**
      * 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
      * The ArduinoGateway prints data received from sensors on the serial link.
      * The gateway accepts input on seral which will be sent out on radio network.
      *
      * The GW code is designed for Arduino Nano 328p / 16MHz
      *
      * Wire connections (OPTIONAL):
      * - Inclusion button should be connected between digital pin 3 and GND
      * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series
      *
      * LEDs (OPTIONAL):
      * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs
      * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
      * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
      * - ERR (red) - fast blink on error during transmission error or recieve crc error
      *
      */
      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      // Set LOW transmit power level as default, if you have an amplified NRF-module and
      // power your radio separately with a good regulator you can turn up PA level.
      #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      // Enable serial gateway
      #define MY_GATEWAY_SERIAL
      
      // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
      #if F_CPU == 8000000L
      #define MY_BAUD_RATE 38400
      #endif
      
      // Enable inclusion mode
      #define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      //#define MY_INCLUSION_BUTTON_FEATURE
      
      // Inverses behavior of inclusion button (if using external pullup)
      //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
      
      // Set inclusion mode duration (in seconds)
      #define MY_INCLUSION_MODE_DURATION 60
      // Digital pin used for inclusion mode button
      //#define MY_INCLUSION_MODE_BUTTON_PIN  3
      
      // Set blinking period
      #define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      // Inverses the behavior of leds
      //#define MY_WITH_LEDS_BLINKING_INVERSE
      
      // Flash leds on rx/tx/err
      // Uncomment to override default HW configurations
      //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
      //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
      //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
      
      #include <MySensors.h>
      
      void setup()
      {
          // Setup locally attached sensors
      }
      
      void presentation()
      {
          // Present locally attached sensors
      }
      
      void loop()
      {
          // Send locally attached sensor data here
      }
      

      This sketch seems to be the same as the one in the Ardinuo IDE named "GatewaySerial":

      /**
      * 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
      * The ArduinoGateway prints data received from sensors on the serial link.
      * The gateway accepts input on seral which will be sent out on radio network.
      *
      * The GW code is designed for Arduino Nano 328p / 16MHz
      *
      * Wire connections (OPTIONAL):
      * - Inclusion button should be connected between digital pin 3 and GND
      * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series
      *
      * LEDs (OPTIONAL):
      * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs
      * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
      * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
      * - ERR (red) - fast blink on error during transmission error or recieve crc error
      *
      */
      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      // Set LOW transmit power level as default, if you have an amplified NRF-module and
      // power your radio separately with a good regulator you can turn up PA level.
      #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      // Enable serial gateway
      #define MY_GATEWAY_SERIAL
      
      // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
      #if F_CPU == 8000000L
      #define MY_BAUD_RATE 38400
      #endif
      
      // Enable inclusion mode
      #define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      //#define MY_INCLUSION_BUTTON_FEATURE
      
      // Inverses behavior of inclusion button (if using external pullup)
      //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
      
      // Set inclusion mode duration (in seconds)
      #define MY_INCLUSION_MODE_DURATION 60
      // Digital pin used for inclusion mode button
      //#define MY_INCLUSION_MODE_BUTTON_PIN  3
      
      // Set blinking period
      #define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      // Inverses the behavior of leds
      //#define MY_WITH_LEDS_BLINKING_INVERSE
      
      // Flash leds on rx/tx/err
      // Uncomment to override default HW configurations
      //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
      //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
      //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
      
      #include <MySensors.h>
      
      void setup()
      {
      	// Setup locally attached sensors
      }
      
      void presentation()
      {
      	// Present locally attached sensors
      }
      
      void loop()
      {
      	// Send locally attached sensor data here
      }
      
      posted in Vera
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      @korttoma said in "Choose the Serial Port" error with MySensors and RFXtrx433?:

      Arduino nanos

      It's a bit hard to read but the black chips on the back says:

      A106
      

      and

      WCH
      CH340G
      202686635
      

      and

      AMS1117
      5.0 DN628
      

      on the front (where the button is)

      ALMEL
      MEGA328P
      AU 1639
      

      I can't find any mention of "FTDI". Should I assume it is not a genuine Arduino nano?

      I DO have an unused Arduino Uno laying around. Maybe it would be easier to buy a ethernet shield and use a ethernet gateway instead of the serial gateway? Is it a W5100 ethernet shield I would need for the Uno?

      posted in Vera
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      I'm using a Arduino Nano. How do I check if it is a genuine FTDI chip?

      posted in Vera
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      Thank you for your help!

      Unfortunately nothing works. I have even tried to change the radio module from RFM69 to NRF24L01 to make sure it wasn't the connections that was badly soldered.

      @Magnus Could you please post the sketch you use for your gateway? I tried to add #define MY_BAUD_RATE 38400 as @BartE suggested but this doesn't seem to make a difference.

      I'm starting to think there is something wrong on Veras end. I don't get two different devices under the Serial Port configuration like @Magnus. You also have different ports (3482 for the serial gateway and 3481 for the RFXtrx).

      As a last resort I guess I could install Domoticz on a RPi and import the devices to the Vera as virtual devices, but this seems like a hassle if it is possible for the gateway to work directly.

      posted in Vera
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      @Magnus Thank you for your trouble! Did you photoshop your screenshot or can you configure two different serial port devices at the same time? I only have one instance I can change settings for?

      Otherwise my settings seems to be the same as yours.

      0_1487025233505_Untitled.jpg

      posted in Vera
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      @BartE Hmm... I didn't know you could choose the baudrate? I just followed the instructions on the website (https://www.mysensors.org/build/serial_gateway) but when I check the code I can clearly read that there is something in the sketch about the baud rate:

      // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
      #if F_CPU == 8000000L
      #define MY_BAUD_RATE 38400
      #endif
      

      However, I use the recommended Arduino Nano for my Vera Serial Gateway, not Arduino Pro Mini 3.3V or SenseBender.

      How would I change the baud rate for the MySensor gateway if I can't use 38400 because it is used by my RFXtrx433E?

      posted in Vera
      Aron Sjöberg
      Aron Sjöberg
    • RE: "Choose the Serial Port" error with MySensors and RFXtrx433?

      Argh!

      I finally received my new USB-hub and tried a new serial gateway I built.

      I STILL get the same error. I can't seem to have both my RFXtrx433E and the MySensor gateway connected (and working) at the same time.

      @Magnus, could you post a screenshot of your settings in Vera Edge?

      posted in Vera
      Aron Sjöberg
      Aron Sjöberg