Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • rfm69 frequency question

    6
    0 Votes
    6 Posts
    4k Views
    alexsh1A
    I wish I knew about it before as I ordered several Moteinos without radios, which are very cheap in the US, and then ordering 868Mhz radios separately. Well, well - every day I learn something new
  • Adafruit Feather M0 RFM69 Packet Radio (433 or 900 MHz)

    11
    0 Votes
    11 Posts
    5k Views
    scalzS
    @Fotofieber I was more talking about Atmel M0 mcu which are well integrated into Arduino. So your boards are ST mcu. They seems to be nice (but a bit memory limited), and cheap. I have a nucleo board from ST which is also very nice because they are cheap (10$) and they have the programmer&debugger embedded and you can detach it. But even if this ST mcu is M0, Arduino boards core files can differ. That said, there is STM32duino for arduino, but I've never used it with Mysensors. And I'm not playing actually with ST. It could work out of the box depending of mysensors features used (compiling) but not really sure, I don't know the state of integration for these module in Arduino. You would need to use at least the spi port referenced by your board and the STM32duino. SPi port is spi port. For other pins like interrupt, CS etc.., that would need to check how pin are defined in STM32duino. I'm not sure if that will work easily out of the box...(https://www.hackster.io/rayburne/4-dollar-90-mips-32-bit-72-mhz-arm-arduino-f6e5c9) I know there are few other people working on ATSAM boards for mysensors ;) On my side, few months ago I have designed a lipo charger board for ATSAM. sort of featherM0 that i have improved for using with mysensors (spi flash for ota, eeprom for mysensors config, etc..)..I will release it if it can help ;) My project was looking to this https://forum.mysensors.org/topic/3551/my-32bits-atsam-node-project Since, i have made other atsam boards for fun :) and I can't wait my esp32 module order which could change the game and my opinion... I could try a bit later (actually busy), with my nucleo board...but i can't tell when for the moment..
  • MG812(Co2) Sensor ppm calculation

    6
    0 Votes
    6 Posts
    5k Views
    Mahendra SondagarM
    @Yveaux Have you read datasheet here... At the o\p side they mention unity gain amplifier with OpAmp [image: 1473310568327-opamp.jpg] but the thing is that unity gain amplifier always produced same output volts!
  • Wemos D1 mini gateway

    4
    4 Votes
    4 Posts
    5k Views
    phil77560P
    Coming late but, could I have schematic please ? ... what about the sketch ?
  • Distance for sensor and board

    6
    0 Votes
    6 Posts
    1k Views
    Patrik SöderströmP
    @sundberg84 Yesterday I found you forum post at bygghus.se I was stuck at the phone for a long time reading it all! :) I´m very impressed and I will for sure order some of your board for the aurdino. @stevebus Great! :) I´m trying to find a Arduino Uno board, looks like the one in the mysensors hardware is out of stock. I searched on ebay and found this one, is it legit and the real thing? http://www.ebay.com/itm/Arduino-Genuino-UNO-R3-Compatible-ATmega328P-ATmeg-a16U2-with-USB-cable-/252365926607?hash=item3ac22e70cf:g:DR8AAOSw1DtXHD1s
  • Why You Should Encase Your Nodes

    weatherstation nrf24l01+
    5
    2 Votes
    5 Posts
    2k Views
    W
    @TheoL No damage. Water went up about 7 feet on our lake but had another 11 feet to go to threaten our property. Biggest flooding was to the south of us. We did have a fun time hiding out in our laundry room during tornado flying up to the east of us. Also, I do not think the radio is dead - hooked it by accident to my Uno testing board and it was transmitting just fine. Love these things - very tough.
  • How to use HLK-PM01 (basic AC power questions)

    5
    0 Votes
    5 Posts
    4k Views
    JonnyDev13J
    @sundberg84, thank you for the input. I will make sure to get the additional parts so that I don't risk any problems happening because of an unprotected converter.
  • Rechargeable Lithium Ion Sensor Custom PCB

    71
    6 Votes
    71 Posts
    29k Views
    HenryWhiteH
    @toufou said: You use a motion sensor as i want. You make a reference to a hack to use it with 3.3V instead of 5V. Have you a link to see that? Yes, here's a picture (the only thing you have to do is solder vcc to the HIGH-pad of your motion sensor): [image: 1473068490039-123.png]
  • Problem building MQTT Gateway ver 2.0

    8
    0 Votes
    8 Posts
    3k Views
    Q
    @siod said: Contact FensterKzR "Fenster Rechts" (FF_Kz) {mqtt="<[mysensors-1:mygateway1-out/3/2/V_TRIPPED:state:OPEN:1],<[mysensors-1:mygateway1-out/3/2/V_TRIPPED:state:CLOSED:0]"} Can't tell if you fixed this yet but your Contact Item is incorrect. You've stated the topic in the MQTT part as "mygateway1-out/3/2/V_TRIPPED" when it should actually be "mygateway1-out/3/2/1/0/16"
  • Using the 3.3V pin to power NRF24L01+

    5
    0 Votes
    5 Posts
    2k Views
    mfalkviddM
    @172pilot calling sleep will power down the radio. The nrf should consume 900nA in power down mode. Which mcu are you using? If you're using Pro Mini, have you removed the led and regulator? More information on battery powering: https://www.mysensors.org/build/battery
  • Power meter

    2
    1 Votes
    2 Posts
    1k Views
    F
    That display will measure the load that you connect to it but maybe you can hack it and send information to the display instead?
  • 110v-230v AC to Mysensors PCB board

    269
    8 Votes
    269 Posts
    271k Views
    ranginkamanR
    @bruno tanke you, very good. I share it in facebook.
  • [WIP] Best practices to power your nodes

    3
    1 Votes
    3 Posts
    2k Views
    bjacobseB
    I think you mean a smoothing cap instead of bypass cap ;-) http://www.learningaboutelectronics.com/Articles/What-is-a-smoothing-capacitor The smoothing cap for NRF24L01+ VCC/GND is not an exact science, it depends of the quality your power source can supply. If you have a battery operated device, you might not need it at all. battery is a large cap. and if using in battery operation your MCU/NRF is sleeping most of the time, and only transmitting shortly, and then sleep again to save battery lifetime. When using a AC230V -> 5 or 3,3V most converter are DC/DC and the DC signal is not smooth like a battery, to help and get this voltage signal better you need cap. The closer to NRF24L01+ VCC/GND the better. I don't believe that cheap power supplies from ebay/China are providing quality voltage... The cap size is most likely depending on how you again are using your NRF24L01+, is it continuous receiving and transmitting - like a repeater node, I recommend a large cap, if it's only transmitting occasionally and not a repeater node, you can use a smaller cap. The final cap size is usually what you have in your drawer + that can fit into your plastic housing :-)
  • What hardware to choose for this scenarios

    5
    0 Votes
    5 Posts
    2k Views
    Patrik SöderströmP
    Again, thanks for quick reply. I´m starting to get a better understanding now of how its meant to be used :+1: I have ordered some hardware now and will start to test. Thanks once again.
  • rfm69 network issue

    30
    0 Votes
    30 Posts
    10k Views
    chrilleC
    @frencho said: @chrille working, the antenna was the problem. I ordered some small antenna on ebay, and it s fine now ^^ Glad to hear it's working now. After creating a "real" PCB for my RFM69 gateway the issue went away - and it works reliable both with an external antenna and a small rubber antenna.
  • TI CC2541 no GATT communication

    4
    0 Votes
    4 Posts
    1k Views
    mfalkviddM
    @victus I haven't seen anyone using CC2561 - almost everyone is using AtMega328 or ESP8266. MySensors does not utilize ble. Therefore this might not be the best forum to ask for advice, unfortunately. But there are a lot of hardware nerds around so you might get lucky.
  • 0 Votes
    7 Posts
    3k Views
    tbowmoT
    Probably a lower baudrate would fix things. You need to build a new bootloader with correct baudrate though. I can't remember which crystal I designed to be used on the sensebender. It was with 32khz oscillator in mind though, as there is no external load capacitors (you need to add them if you want to use 8mhz crystal)
  • Ethernet Gateway with W5100: radio error [solved]

    3
    0 Votes
    3 Posts
    2k Views
    bisschopsrB
    @mfalkvidd Thx: sometimes life is so simple. I totally did not notice that this slipped in... Problem solved! And to answer my other question myself: I don't need to enable softspi in the MyConfig.h I guess. Works without it apperently.
  • Dallas OneWire questions

    6
    0 Votes
    6 Posts
    3k Views
    F
    This is how I solved it with identification(DeviceAddress) https://forum.mysensors.org/topic/4143/about-ds18b20-onewire
  • Arduino UNO and RFM69 - level converter

    11
    0 Votes
    11 Posts
    4k Views
    X
    @Yveaux said: @xefil does this Ethernet shield also have an SD card slot? If so, it shares the spi bus with the rfm. You should make sure the SD card chip-select line is high, before the mysensors library is initialized (implement the pin initialization in the before()-method). Otherwise the SD card communication will interfere with the rfm communication. Yes, it has a SD card module as well. How to disable it? I've tried it so: void before() { // disable SD card pinMode(4, OUTPUT); digitalWrite(4, HIGH); } Actually I get simply this: 0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:RADIO:FAIL 0;255;3;0;9;!TSM:FAILURE 0;255;3;0;9;TSM:PDT And what is that for? Does it help? // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) //#define MY_W5100_SPI_EN 4 Thanks! Simon This is the whole code again I'm using now: #include <SPI.h> // Enable debug prints to serial monitor #define MY_DEBUG // Enables and select radio type (if attached) //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 #define MY_GATEWAY_MQTT_CLIENT // Set this nodes subscripe and publish topic prefix #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway2-out" #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway2-in" // Set MQTT client id #define MY_MQTT_CLIENT_ID "mysensors-2" // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal) //#define MY_W5100_SPI_EN 4 // Enable Soft SPI for NRF radio (note different radio wiring is required) // The W5100 ethernet module seems to have a hard time co-operate with // radio on the same spi bus. #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD) #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 #endif // When W5100 is connected we have to move CE/CSN pins for NRF radio #define MY_RF24_CE_PIN 5 #define MY_RF24_CS_PIN 6 // Enable these if your MQTT broker requires usenrame/password //#define MY_MQTT_USER "username" //#define MY_MQTT_PASSWORD "password" // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) #define MY_IP_ADDRESS 192,168,1,52 // If using static ip you need to define Gateway and Subnet address as well #define MY_IP_GATEWAY_ADDRESS 192,168,1,1 #define MY_IP_SUBNET_ADDRESS 255,255,255,0 // MQTT broker ip address. #define MY_CONTROLLER_IP_ADDRESS 192,168,1,50 // The MQTT broker port to to open #define MY_PORT 1883 /* // Flash leds on rx/tx/err #define MY_LEDS_BLINKING_FEATURE // Set blinking period #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Enable inclusion mode #define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway #define MY_INCLUSION_BUTTON_FEATURE // 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 // Uncomment to override default HW configurations //#define MY_DEFAULT_ERR_LED_PIN 16 // Error led pin //#define MY_DEFAULT_RX_LED_PIN 16 // Receive led pin //#define MY_DEFAULT_TX_LED_PIN 16 // the PCB, on board LED */ #include <Ethernet.h> #include <MySensors.h> void before() { // disable SD card pinMode(4, OUTPUT); digitalWrite(4, HIGH); } void setup() { } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attech sensors data here }

24

Online

11.7k

Users

11.2k

Topics

113.1k

Posts