How do you achieve 3 years of runtime? How often do you wakeup the Atmega to measure the values and send them?
Posts made by gloob
-
RE: π¬ Temperature and humidity sensor(ver.ATmega328)+E-Ink display
-
RE: Sensebender Europe resellers ?
But if you want to extend your system, you are more flexible with the MySensors solution in the future.
-
RE: Sensebender Europe resellers ?
If you use arduino nanos you don't need any regulators. they have 3.3V for the NRF24L01+ and 5V for the relay.
You even don't need an ethernet shield if you connect the gateway via USB to your controller (Raspberry pi, ...)This would be my shoping list:
- 2 x https://de.aliexpress.com/item/Freeshipping-Nano-3-0-controller-compatible-for-arduino-nano-CH340-USB-driver-NO-CABLE/32341832857.html
- 2 x https://de.aliexpress.com/item/1pcs-Wireless-Transceiver-For-Arduino-NRF24L01-2-4GHz-Antenna-Module-For-Microcontroll-DropShipping/32599246022.html
- 1 x https://de.aliexpress.com/item/120pcs-40P-10cm-male-to-male-female-to-male-and-female-to-female-dupont-cable-connector/32798042976.html
- 1 x https://de.aliexpress.com/item/1-Channel-Relay-Module-Interface-Board-Shield-For-Arduino-5V-Low-Level-Trigger-One-PIC-AVR/32800597285.html
8$ for a complete test system.
-
RE: Sensebender Europe resellers ?
@anonymouslemming said in Sensebender Europe resellers ?:
@gohan said in Sensebender Europe resellers ?:
For gateway you could use any arduino uno with or without a w5100 network or an esp8266 if you are just doing tests
ah, I wasn't aware of that. Are there any docs that demonstrate how to build a gateway using that ?
That might work out cheaper in the short term to see if this is a viable solution for what I want to do.
-
Buy big amount of Arduino nano with FTDI
Hello,
Does anybody have an idea where I can buy a big amount of Arduino Nanos with FTDI chip?
I need around 100 Nanos or more.I don't need genuine modules. I want them to be as cheap as possible. I can buy them from Aliexpress but the biggest number I could find is 5 items and the price is not really good.
Thanks.
Stefan -
RE: π¬ MySWeMosIRShield - IR blaster shield for WeMos D1
I'm right that there is no resistor between the LEDs and 5V or GND?
Is it not required? -
RE: π¬ MySWeMosIRShield - IR blaster shield for WeMos D1
I like the board and did already order some pcbs for testing.
-
RE: No new node possible
I did not flash all my nodes with a static node ID and now all new nodes can join the network and are visible in FHEM.
#define MY_NODE_ID 10 #define MY_PARENT_NODE_ID 0
I think there is any problem with my WeMos gateway. I will analyze this more in detail, when I have some more time.
-
RE: No new node possible
Thanks for your support. For me it seems that we have some general problems at the moment.
I will try the following things later:
#define MY_NODE_ID 10 #define MY_PARENT_NODE_ID 0 #define MY_PARENT_NODE_IS_STATIC
-
use dev version of 2.1.1
-
downgrade to 2.0.0 or less to check if the hardware is working without any problems
-
use a serial gateway or try to use my WeMos in serial mode
These are the topics with a similar error (just as a summary for myself):
https://forum.mysensors.org/topic/6147/tsm-fpar-no-reply
https://forum.mysensors.org/topic/6118/problem-connecting-to-gateway
https://forum.mysensors.org/topic/6063/solved-mqtt-esp8266-gateway-issue
Edit: does anybody have an idea how to use a ESP as serial gateway?
-
-
RE: No new node possible
So the other thread mentions to go back to 2.0.0
I will try this today and give feedback. -
RE: No new node possible
Yes I also tried to restart the node when inclusing mode is on and I don't use MQTT.
-
RE: No new node possible
But even when I set FHEM to inclusion_mode = 1, I get this error.
I would assume that the node finds the parent without a running controller if the node ID and parent ID are static. -
RE: No new node possible
Inclusion mode is set on the controller. But I think I don't have to activate this in the controller if the node has a static ID.
-
RE: No new node possible
I did this test also. When I flash a node that was working before with a new ID, it will not join the network.
When I flash it back, to use the old static ID, it is working again without any problems.Currently I think it is a problem with the WeMos pro mini. I will try it with an other WeMos when it arrives from china.
-
RE: No new node possible
The gateway has a 47Β΅F cap and the nodes use 10uF.
For the gateway I use a NRF24L01-SMD PA+LNA radio module and the nodes use "normal" NRF24L01 modules without PA+LNA.
-
RE: No new node possible
Hello,
actually I already have a cap next to the radio and the power is supplied by a ams1117 but I will try to change the power supply of the WeMos.
The strange thing is, that all other nodes (6 with temp, hum and battery) are working without any problems. I only get this issue with new nodes.
Will it help to set the node ID manually in the node sketch? -
RE: No new node possible
Existing nodes work without any problem:
0;255;3;0;9;!TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;TSF:MSG:READ,100-100-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=100 0;255;3;0;9;TSF:CKU:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;!TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;TSF:MSG:READ,100-100-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=100 0;255;3;0;9;TSF:CKU:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;!TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;TSF:MSG:READ,100-100-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=100 0;255;3;0;9;TSF:CKU:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;!TSF:MSG:SEND,0-0-100-100,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0 0;255;3;0;9;TSF:MSG:READ,196-196-0,s=1,c=1,t=0,pt=7,l=5,sg=0:22.4 0;255;3;0;9;TSF:MSG:READ,196-196-0,s=2,c=1,t=1,pt=2,l=2,sg=0:45 0;255;3;0;9;TSF:MSG:READ,196-196-0,s=199,c=1,t=38,pt=7,l=5,sg=0:2.922 0;255;3;0;9;TSF:MSG:READ,196-196-0,s=255,c=3,t=0,pt=1,l=1,sg=0:73
Even when I set a fixed None ID in the sketch it will not join the network.
When the node is sending a request, I see an update in the debug log of the gateway. So the message gets send correctly.
-
No new node possible
Hello,
I have a problem with my network. I can not connect any new nodes to the network.
The gateway shows the following error:
0;255;3;0;9;Client 0: 0;0;3;0;5;1 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 0;255;3;0;9;TSF:PNG:SEND,TO=0 0;255;3;0;9;TSF:CKU:OK 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 0;255;3;0;9;TSF:CKU:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 0;255;3;0;9;TSF:CKU:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSF:MSG:BC 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 0;255;3;0;9;TSF:CKU:OK,FCTRL 0;255;3;0;9;TSF:MSG:GWL OK 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
And on the node i see:
0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1 4 TSM:INIT 4 TSF:WUR:MS=0 12 TSM:INIT:TSP OK 14 TSM:FPAR 16 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2025 !TSM:FPAR:NO REPLY 2027 TSM:FPAR 2029 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4038 !TSM:FPAR:NO REPLY 4040 TSM:FPAR 4042 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6051 !TSM:FPAR:NO REPLY 6053 TSM:FPAR 6055 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8065 !TSM:FPAR:FAIL 8067 TSM:FAIL:CNT=1 8069 TSM:FAIL:PDT 18073 TSM:FAIL:RE-INIT 18075 TSM:INIT 18083 TSM:INIT:TSP OK 18085 TSM:FPAR 18087 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 20097 !TSM:FPAR:NO REPLY 20099 TSM:FPAR 20101 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 22110 !TSM:FPAR:NO REPLY 22112 TSM:FPAR 22114 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 24123 !TSM:FPAR:NO REPLY 24125 TSM:FPAR 24127 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 26136 !TSM:FPAR:FAIL 26138 TSM:FAIL:CNT=2 26140 TSM:FAIL:PDT 36143 TSM:FAIL:RE-INIT 36145 TSM:INIT 36153 TSM:INIT:TSP OK 36155 TSM:FPAR 36157 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 37013 TSF:MSG:READ,200-200-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 38166 !TSM:FPAR:NO REPLY 38168 TSM:FPAR 38170 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
Any ideas if this problem is related to the controller (FHEM) or to MySensors?
-
RE: π¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
Currently I don't have a WeMos to test everything. I will come back to thins topic once I receive my WeMos from china. But you solution sounds good to me, as I did test the PCB with some other software and it was working without any problems. So it must be a problem related to the configuration and not to the wiring of the PCB itself.
-
RE: π¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
Could you solve the problem that the gateway is not working with the RFM69? Is it related to the MySensors library and the ESP?
-
RE: new RFM69 Gateway and node
It is called "LaCrosse Gateway"
You can find the source code here: https://svn.fhem.de/trac/export/HEAD/trunk/fhem/contrib/arduino/36_LaCrosseGateway.zipI have included this gateway in FHEM and receive a weather station sensor from "Technoline" which is sending on 868MHz.
-
RE: new RFM69 Gateway and node
I can confirm that the adapter PCB is working without any problems together with a WeMos, because I use them to receive some signals of a weather station.
-
RE: π¬ ESP8266-RFM69HW gateway with dipole antenna
Do you have a working sample sketch for a sensor based on this kind of board? I have a gateway but can't get the sensor working.
-
No RFM69 - No error
Hello,
Currently I'm working on a gateway that uses the RFM69HW module with 868MHz.
When I upload a sketch to my WeMos and no RFM is connected, it seems that there is no error in the init function.0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED
Shouldn't there be any error that no RFM is connected correctly and could not be initialized?
I tried everything with a minimal sketch:
#define MY_DEBUG #define MY_BAUD_RATE 9600 //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "earth" #define MY_ESP8266_PASSWORD "" #define MY_PORT 5003 #include <ESP8266WiFi.h> #include <MySensors.h> void setup() { } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
When I use a NRF24 module in the sketch I get a correct error:
0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=1 0;255;3;0;9;TSM:FAIL:PDT```
-
RE: new RFM69 Gateway and node
@korttoma said:
@gloob reset of ethernet modules is usually a symptom of the problem in the Arduino AVR board definition in version 1.6.12 and newer. Please try version 1.6.11. (don't remember exactly what versions vere affected but 1.6.11 works for me).
Thanks for this hint but is this also neccessary for the WeMos modules (ESP8266)? My gateway with an NRF24L01 chip and the same WeMos is running without any problems.
-
RE: new RFM69 Gateway and node
I now get some kind of communication but it seems that the WeMos pro mini does reset when a controller is connected and a message is received from a node.
I will check this tomorrow.
-
RE: π¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
Thank you for the feedback.
I'm getting closer to a "solution".
I did try an other library for the communication to an RFM69 and I can read the internal temperature and the register values. So the wiring of the chip is correct.Now I have to find out why MySensors has problems.
-
RE: π¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
Did you test this module with a RFM69HW module?
I don't get a connection between two modules.
I did solder all pads of the RFM69 but I don't think this should cause me problem. -
RE: new RFM69 Gateway and node
This is the output from the gateway:
0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 18 cnt connected with HasenpupsExtreme, channel 1 dhcp client start... 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED f r0, scandone ip:192.168.1.35,mask:255.255.255.0,gw:192.168.1.1 .IP: 192.168.1.35 0;255;3;0;9;MCO:BGN:STP -- STA (client) informations -- Hostname: MySensor-Gateway-RFM69 Connected to: HasenpupsExtreme (80:EA:96:F0:49:F2), -73dBm IP address: 192.168.1.35 Gateway address: 192.168.1.1 Subnet mask: 255.255.255.0 MAC STA address: 5C:CF:7F:2C:11:3D -- AP (server) informations -- Soft IP address: 0.0.0.0 MAC AP address: 5E:CF:7F:2C:11:3D ---- 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 pm open,type:2 0 0;255;3;0;9;Client 0 connected 0;255;3;0;9;Client 0: 0;0;3;0;2;
-
RE: new RFM69 Gateway and node
I use the same hardware for the gateway and the node, a Wemos and a RFM69HW module.
The gateway is using the following 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. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Ivo Pullens (ESP8266 support) * * DESCRIPTION * The EthernetGateway sends data received from sensors to the WiFi link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * VERA CONFIGURATION: * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin. * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003 * * LED purposes: * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch, only the LEDs that is defined is used. * - 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 * * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions. * nRF24L01+ ESP8266 * VCC VCC * CE GPIO4 * CSN/CS GPIO15 * SCK GPIO14 * MISO GPIO12 * MOSI GPIO13 * GND GND * * Not all ESP8266 modules have all pins available on their external interface. * This code has been tested on an ESP-12 module. * The ESP8266 requires a certain pin configuration to download code, and another one to run code: * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch') * - Connect GPIO15 via 10K pulldown resistor to GND * - Connect CH_PD via 10K resistor to VCC * - Connect GPIO2 via 10K resistor to VCC * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * * Make sure to fill in your ssid and WiFi password below for ssid & pass. */ // Enable debug prints to serial monitor #define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 // Enables and select radio type (if attached) #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RF69_868MHZ #define MY_IS_RFM69HW #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "xxx" #define MY_ESP8266_PASSWORD "xxx" // Set the hostname for the WiFi Client. This is the hostname // it will pass to the DHCP server if not static. #define MY_ESP8266_HOSTNAME "MySensor-Gateway-RFM69" // The port to keep open on node server mode #define MY_PORT 5003 // How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68 // 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 // Flash leds on rx/tx/err // Led pins used if blinking feature is enabled above #define MY_DEFAULT_ERR_LED_PIN LED_BUILTIN // Error led pin #define MY_DEFAULT_RX_LED_PIN LED_BUILTIN // Receive led pin #define MY_DEFAULT_TX_LED_PIN LED_BUILTIN // the PCB, on board LED #include <ESP8266WiFi.h> #include <MySensors.h> void setup() { #if defined MY_DEBUG if (WiFi.status() != WL_CONNECTED) { Serial.println("Not connected to WiFi"); } else { Serial.println(""); Serial.println("-- STA (client) informations --"); Serial.print("Hostname: "); Serial.println(WiFi.hostname()); Serial.print("Connected to: "); Serial.print(WiFi.SSID()); Serial.print(" ("); Serial.print(WiFi.BSSIDstr()); Serial.print("), "); Serial.print(WiFi.RSSI()); Serial.println("dBm"); Serial.print("IP address: "); Serial.println(WiFi.localIP()); Serial.print("Gateway address: "); Serial.println(WiFi.gatewayIP()); Serial.print("Subnet mask: "); Serial.println(WiFi.subnetMask()); Serial.print("MAC STA address: "); Serial.println(WiFi.macAddress()); Serial.println("-- AP (server) informations --"); Serial.print("Soft IP address: "); Serial.println(WiFi.softAPIP()); Serial.print("MAC AP address: "); Serial.println(WiFi.softAPmacAddress()); Serial.println("----"); Serial.println(""); } #endif } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
and for the node I use this test 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. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * * DESCRIPTION * Example sketch showing how to measue light level using a LM393 photo-resistor * http://www.mysensors.org/build/light */ // Enable debug prints to serial monitor #define MY_DEBUG #define MY_NODE_ID 050 // Enable and select radio type attached //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RF69_868MHZ #define MY_IS_RFM69HW #include <MySensors.h> #define CHILD_ID_LIGHT 0 #define LIGHT_SENSOR_ANALOG_PIN 0 unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL); int lastLightLevel; void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Light Sensor", "1.0"); // Register all sensors to gateway (they will be created as child devices) present(CHILD_ID_LIGHT, S_LIGHT_LEVEL); } void loop() { int16_t lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; Serial.println(lightLevel); if (lightLevel != lastLightLevel) { send(msg.set(lightLevel)); lastLightLevel = lightLevel; } sleep(SLEEP_TIME); }
-
new RFM69 Gateway and node
Hello,
I did now switch from NRF24 to RFM69 for the gateway and one sensor.
I can connect to the gateway from my controller (FHEM) without any problems and dont see any errors in the debug messages of the controller.
The node shows some strange behavior and does not connect to the gateway.
TSM:INIT TSF:WUR:MS=0 TSM:INIT:TSP OK TSM:INIT:STATID=40 TSF:SID:OK,ID=40 TSM:FPAR TSF:MSG:SEND,40-40-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,40-40-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,40-40-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: !TSM:FPAR:NO REPLY TSM:FPAR TSF:MSG:SEND,40-40-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: !TSM:FPAR:FAIL TSM:FAIL:CNT=1 TSM:FAIL:PDT
Is this a problem related to the controller or to my communication between the node and the gateway?
Are there any samples to test the communication between two RFM69 devices to check that the communication is not the problem.
Regards
Stefan -
RE: Gateway all in one
I also have some wireless sensors with NRF24L01 and some with RFM69. Currently I need two gateways attached to my controller.
It would be much nicer to only have one gateway. -
RE: Gateway all in one
And the MySensors lib supports the simultaneous connection of multiple different IO devices?
How does the lib differ which sensor is connected to which physical IO device? -
RE: Gateway all in one
I think the idea is to have only one gateway and cover multiple network technologies at once.
I also have some wireless sensors with NRF24L01 and some with RFM69. Currently I need two gateways attached to my controller.
It would be much nicer to only have one gateway. -
ESP8266 (WeMos) as serial gateway
Hello,
At the moment I use a WeMos as an WiFi Gateway. Is it possible to use this one also as a serial gateway and connect it via USB to a controller?
Do I just need to uncomment the flag:
#define MY_GATEWAY_ESP8266
Regards
Stefan -
RE: NRF24L01+PA+LNA distance problem
@yd-kim said:
@gloob
nRF module should not use over 3.6V and Li-Ion battery is 4.2V when it is full charged.I thought you are also powering the Arduino directly from the battery over the 3.3V pin.
-
RE: NRF24L01+PA+LNA distance problem
Why don't you connect the NRF also directly to the battery?
-
AAA Eneloop vs. "normal" battery
Hello,
I have some battery based sensors and noticed that they last for about half a year on normal not rechargeable battery but only 2-3 months on eneloops.
What are your experiences? What kind of battery do you use for battery based sensors.
Regards
Stefan -
RE: Upgrade to 2.1.0
If you upgrade from version 2.0 to 2.1 you can just compile the sketch without any modification.
-
RE: ESP8266 - new WiFi settings
I found some kind of "solution"
I did now reset the configuration of the ESP8266 with:
ESP.eraseConfig(); ESP.reset();
And now it accepts the new WiFi configuration with each upload of a sketch.
I hope this helps other people that have the same problem.
-
RE: ESP8266 - new WiFi settings
Good morning,
I have now tested everything on an other PC and still have the same problem.
I use the following versions for my test now:
ESP8266: 2.3 MySensors: 2.0 WiFi: 1.2.7 Arduino IDE: 1.6.13
Regards
Stefan -
RE: ESP8266 - new WiFi settings
Okay I have now tried the following sketch:
/* * This sketch sends data via HTTP GET requests to data.sparkfun.com service. * * You need to get streamId and privateKey at data.sparkfun.com and paste them * below. Or just customize this script to talk to other HTTP servers. * */ #include <ESP8266WiFi.h> const char* ssid = "your-ssid"; const char* password = "your-password"; const char* host = "data.sparkfun.com"; const char* streamId = "...................."; const char* privateKey = "...................."; void setup() { Serial.begin(115200); delay(10); // We start by connecting to a WiFi network Serial.println(); Serial.println(); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); Serial.println("IP address: "); Serial.println(WiFi.localIP()); } int value = 0; void loop() { delay(5000); ++value; Serial.print("connecting to "); Serial.println(host); // Use WiFiClient class to create TCP connections WiFiClient client; const int httpPort = 80; if (!client.connect(host, httpPort)) { Serial.println("connection failed"); return; } // We now create a URI for the request String url = "/input/"; url += streamId; url += "?private_key="; url += privateKey; url += "&value="; url += value; Serial.print("Requesting URL: "); Serial.println(url); // This will send the request to the server client.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Connection: close\r\n\r\n"); unsigned long timeout = millis(); while (client.available() == 0) { if (millis() - timeout > 5000) { Serial.println(">>> Client Timeout !"); client.stop(); return; } } // Read all the lines of the reply from server and print them to Serial while(client.available()){ String line = client.readStringUntil('\r'); Serial.print(line); } Serial.println(); Serial.println("closing connection"); }
the output looks like expected:
Connecting to your-ssid
But uploading the following MySensors sample sketch does not update the WiFi settings:
* 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. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Ivo Pullens (ESP8266 support) * * DESCRIPTION * The EthernetGateway sends data received from sensors to the WiFi link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * VERA CONFIGURATION: * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin. * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003 * * LED purposes: * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h * - 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 * * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions. * nRF24L01+ ESP8266 * VCC VCC * CE GPIO4 * CSN/CS GPIO15 * SCK GPIO14 * MISO GPIO12 * MOSI GPIO13 * GND GND * * Not all ESP8266 modules have all pins available on their external interface. * This code has been tested on an ESP-12 module. * The ESP8266 requires a certain pin configuration to download code, and another one to run code: * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch') * - Connect GPIO15 via 10K pulldown resistor to GND * - Connect CH_PD via 10K resistor to VCC * - Connect GPIO2 via 10K resistor to VCC * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * * Make sure to fill in your ssid and WiFi password below for ssid & pass. */ #include <EEPROM.h> #include <SPI.h> // Enable debug prints to serial monitor #define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 // Enables and select radio type (if attached) #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "MySSID" #define MY_ESP8266_PASSWORD "MyVerySecretPassword" // Enable UDP communication //#define MY_USE_UDP // Set the hostname for the WiFi Client. This is the hostname // it will pass to the DHCP server if not static. // #define MY_ESP8266_HOSTNAME "sensor-gateway" // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) //#define MY_IP_ADDRESS 192,168,178,87 // If using static ip you need to define Gateway and Subnet address as well #define MY_IP_GATEWAY_ADDRESS 192,168,178,1 #define MY_IP_SUBNET_ADDRESS 255,255,255,0 // The port to keep open on node server mode #define MY_PORT 5003 // How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68 // 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 // Flash leds on rx/tx/err // #define MY_LEDS_BLINKING_FEATURE // Set blinking period // #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Led pins used if blinking feature is enabled above #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 #if defined(MY_USE_UDP) #include <WiFiUDP.h> #else #include <ESP8266WiFi.h> #endif #include <MySensors.h> void setup() { } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
It is still displaying the WiFi settings from the previous upload:
no your-ssid found, reconnect after 1s
-
RE: ESP8266 - new WiFi settings
This was just an example that an other sketch is able to set WiFi settings correctly. It is also working with other sample sketches.
Only the MySensors Gateway sketch does not set the settings correctly.
For me it sounds that the problem is based on some internal stuff of mysensors -
RE: ESP8266 - new WiFi settings
For the ESP version I'm using 2.3
I wil try it with 2.2
Edit: Version 2.2 will not compile
In file included from /Users/Stefan/Documents/Arduino/libraries/MySensors/MySensors.h:344:0, from /Users/Stefan/Documents/Arduino/WeMos_MySensors_Gateway/WeMos_MySensors_Gateway.ino:119: /Users/Stefan/Documents/Arduino/libraries/MySensors/core/MyMainESP8266.cpp:22:22: fatal error: Schedule.h: No such file or directory #include "Schedule.h" ^ compilation terminated. exit status 1 Fehler beim Kompilieren fΓΌr das Board WeMos D1 R2 & mini.
Edit 2: The problem also exists with MySensors 2.0
Edit 3: If I upload a non MySensors Sketch, the Wifi settings are updated:
/* * This sketch sends a message to a TCP server * */ #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> ESP8266WiFiMulti WiFiMulti; void setup() { Serial.begin(115200); delay(10); // We start by connecting to a WiFi network WiFiMulti.addAP("SSID", "passpasspass"); Serial.println(); Serial.println(); Serial.print("Wait for WiFi... "); while(WiFiMulti.run() != WL_CONNECTED) { Serial.print("."); delay(500); } Serial.println(""); Serial.println("WiFi connected"); Serial.println("IP address: "); Serial.println(WiFi.localIP()); delay(500); } void loop() { const uint16_t port = 80; const char * host = "192.168.1.1"; // ip or dns Serial.print("connecting to "); Serial.println(host); // Use WiFiClient class to create TCP connections WiFiClient client; if (!client.connect(host, port)) { Serial.println("connection failed"); Serial.println("wait 5 sec..."); delay(5000); return; } // This will send the request to the server client.print("Send this data to server"); //read back one line from server String line = client.readStringUntil('\r'); client.println(line); Serial.println("closing connection"); client.stop(); Serial.println("wait 5 sec..."); delay(5000); }
-
RE: ESP8266 - new WiFi settings
Yes I'm using the new 2.1 version.
I have tested it with the sample 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. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik EKblad * Contribution by a-lurker and Anticimex, * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de> * Contribution by Ivo Pullens (ESP8266 support) * * DESCRIPTION * The EthernetGateway sends data received from sensors to the WiFi link. * The gateway also accepts input on ethernet interface, which is then sent out to the radio network. * * VERA CONFIGURATION: * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin. * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003 * * LED purposes: * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch, only the LEDs that is defined is used. * - 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 * * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions. * nRF24L01+ ESP8266 * VCC VCC * CE GPIO4 * CSN/CS GPIO15 * SCK GPIO14 * MISO GPIO12 * MOSI GPIO13 * GND GND * * Not all ESP8266 modules have all pins available on their external interface. * This code has been tested on an ESP-12 module. * The ESP8266 requires a certain pin configuration to download code, and another one to run code: * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch') * - Connect GPIO15 via 10K pulldown resistor to GND * - Connect CH_PD via 10K resistor to VCC * - Connect GPIO2 via 10K resistor to VCC * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch') * * Inclusion mode button: * - Connect GPIO5 via switch to GND ('inclusion switch') * * Hardware SHA204 signing is currently not supported! * * Make sure to fill in your ssid and WiFi password below for ssid & pass. */ // Enable debug prints to serial monitor #define MY_DEBUG // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h #define MY_BAUD_RATE 9600 // Enables and select radio type (if attached) #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #define MY_GATEWAY_ESP8266 #define MY_ESP8266_SSID "MySSID" #define MY_ESP8266_PASSWORD "MyVerySecretPassword" // Enable UDP communication //#define MY_USE_UDP // Set the hostname for the WiFi Client. This is the hostname // it will pass to the DHCP server if not static. // #define MY_ESP8266_HOSTNAME "sensor-gateway" // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP) //#define MY_IP_ADDRESS 192,168,178,87 // If using static ip you need to define Gateway and Subnet address as well #define MY_IP_GATEWAY_ADDRESS 192,168,178,1 #define MY_IP_SUBNET_ADDRESS 255,255,255,0 // The port to keep open on node server mode #define MY_PORT 5003 // How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68 // 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 // Set blinking period // #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Flash leds on rx/tx/err // Led pins used if blinking feature is enabled above #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 #if defined(MY_USE_UDP) #include <WiFiUdp.h> #endif #include <ESP8266WiFi.h> #include <MySensors.h> void setup() { } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
The problem is still the same:
1384, room 16 tail 8 chksum 0x2d csum 0x2d v3de0c112 ~ld scandone no your-ssid found, reconnect after 1s reconnect f 0, scandone no your-ssid found, reconnect after 1s reconnect f -180, scandone no your-ssid found, reconnect after 1s reconnect f r0, scandone no your-ssid found, reconnect after 1s reconnect f 0, 0;255;3;0;9;TSM:FAIL:RE-INIT 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=2 0;255;3;0;9;TSM:FAIL:PDT scandone no your-ssid found, reconnect after 1s reconnect f -180, scandone no your-ssid found, reconnect after 1s reconnect f r0, scandone no your-ssid found, reconnect after 1s reconnect f 0, scandone no your-ssid found, reconnect after 1s reconnect f -180, scandone no your-ssid found, reconnect after 1s reconnect f r0, 0;255;3;0;9;TSM:FAIL:RE-INIT 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=3 0;255;3;0;9;TSM:FAIL:PDT scandone no your-ssid found, reconnect after 1s reconnect f 0, scandone no your-ssid found, reconnect after 1s reconnect f -180, scandone no your-ssid found, reconnect after 1s reconnect f r0, scandone no your-ssid found, reconnect after 1s reconnect f 0, 0;255;3;0;9;TSM:FAIL:RE-INIT 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=4 0;255;3;0;9;TSM:FAIL:PDT scandone no your-ssid found, reconnect after 1s reconnect f -180, scandone no your-ssid found, reconnect after 1s reconnect f r0, scandone no your-ssid found, reconnect after 1s reconnect f 0, scandone no your-ssid found, reconnect after 1s reconnect f -180, scandone no your-ssid found, reconnect after 1s reconnect f r0, 0;255;3;0;9;TSM:FAIL:RE-INIT 0;255;3;0;9;TSM:INIT 0;255;3;0;9;!TSM:INIT:TSP FAIL 0;255;3;0;9;TSM:FAIL:CNT=5 0;255;3;0;9;TSM:FAIL:PDT
-
ESP8266 - new WiFi settings
Hello,
I have a problem with flashing a WeMos as a gateway.
No matter what I insert for the WiFi name, it is always using old values.For example I have the following definition in my sketch:
#define MY_ESP8266_SSID "MySSID" #define MY_ESP8266_PASSWORD "MyVerySecretPassword"
But in the debug output it says:
no your-ssid found, reconnect after 1s
It seems that it is using old values from the flash when I did upload an other testversion.
Is there an option to reset everything in the flash from the ESP8266 so that it is using the new values?Regards
Stefan -
RE: π¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
I did also receive all parts today and did solder an NRF24L01+PA+LNA WiFi Gateway. Everything runs fine from the beginning. Thanks.
-
RE: π¬ MySWeMosGWShield - WeMos Mini MySensors Gateway Shield
Did you check if the WeMos does have enough power on the 3.3V output to power the NRF24L01_PA+LNA module without resetting itself?
-
RE: Presentation of 3rd sensor for a node fails....
Is there a recommendation how long the delay should be?
I tried 50ms and it was working but I think the shorter the time, the better it would be for a batterie based sensor node.
-
RE: Gateway on OSH Park
I have now received the PCBs.
Do you have an image how you mounted the Wemos? I think I will end up with a bigger distance between the PCB and the Wemos, because the voltage regulator is under the ESP.
-
ATMega 328P-PU: 8MHz or 1MHz
Hello,
What are the benefits of running the ATMega with only 1MHz instead of 8MHz when no external crystal is connected?
I have some battery based sensors with a Si7021 connected running on two AAA batteries.
Regards
Stefan -
RE: ESP8266 WiFi gateway port for MySensors
Thanks for the answer. So all incoming or outgoing messages of the gateway will be processed in the background, while the "wait" command is active?
-
RE: ESP8266 WiFi gateway port for MySensors
I have an ESP using as a gateway and want to send some sensor information each 5 minutes to the controller.
Is it possible to use the wait command in the "loop"?
void loop() { wait(unsigned long ms); statusCounter += 1; send(msg.set(statusCounter)); }
-
RE: 4 doors sensors and 4 move sensors on the same node
If the door switches act like normal reed switchen then it is correct that you can put one wire to ground and the other one on an input of the arduino.
Internally you can set the pullup resistor on the pin and check when the signal goes to low, to detect that the door is closed. If the door opens and the reed switch is open, you will get a high signal from the input pin.
But you can also connect one pin of the sensor to 5V and the check if the output pin of the sensor goes to high when the door is closed.For the movement sensors you have to check the signals. There should be at least 3 pins for each sensor, power, ground and the signal itself.
-
RE: 4 doors sensors and 4 move sensors on the same node
What type of sensors are they? Do they act like simple "switches" or what kind of signal do they offer on the output?
An Arduino nano also has enough inputs to connect 8 sensors with on/off signal. -
RE: 1.5.4 and 2.0 on the same computer
It is possible but you have to manually rename the files of one libary (1.5.4 or 2.0) and all dependecies inside the lib.
-
RE: debug battery powered node
Why not just connect the rx and tx pins and ground?
This is how I debug my battery based sensors and run them from the battery. You even dont need the rx pin if you don't want to send commands to the node.
-
RE: Battery based atmega328p sensor (no SMD)
When you read the data sheet correctly you can see, that the distance between the pins is different for a AA and AAA battery holder. That`s why I was asking if somebody can recommend a holder that fits.
-
RE: RFM69 - Which module to use?
Whats is the prefered version: 433MHz or 868MHz?
I know that 433MHz has a longer range but I always had problems with my remote controlled power sockets with 433MHz with range.
-
RE: RFM69 range issues
Do you mix 433MHz and 868MHz modules?
Sensor and gateway need to have the same type of modul. -
RE: Battery based atmega328p sensor (no SMD)
Thanks for your feedback. Do you have a link for a AA battery holder? I could only find AAA holders with pins.
-
RE: Battery based atmega328p sensor (no SMD)
Is there a case/housing available instead of printing an own one?
-
RE: Gateway on OSH Park
To I need to add all components even when I skip the ATSHA chip? Can I skip the 4.7k and 0.1uF SMD parts?
-
RE: Uno stops sending
I remember that there is a parameter for the MySensors library that stops sending after I think 3 false sendings.
I think you can disable this "feature" but currently I have no idea how to do this.
-
RE: Gateway on OSH Park
Thanks for the feedback. Sounds good that the PCB is working. I did order some PCBs some days before and will also test it when they arrive. I will give some feedback here.
For me the PCB looks like an easy solution to build up a gateway with OTA functionality.
-
Gateway on OSH Park
Hello,
Does anybody know the following gateway PCB for a WeMos from OSH Park?
https://oshpark.com/shared_projects/59hasWWz
Are they correct? Can I order some?
Regards
Stefan -
RE: π¬ ESP-LINK ESP8266 WeMos D1 Mini Adapter Board
What is the idea to connect an Arduino to an ESP8266. What are the benefits of an Arduino in comparison to an ESP?
From my understanding, an ESP is more powerful than an Arduino nano. -
RE: RFM69 and nRF24L01+
It is not possible to mix the two type of radios, but you can install a second gateway with a RFM69 module, if the controller supports multiple gateways.
-
RFM69 - Which module to use?
Hello,
I want to switch my NRF24L01+ modules with RFM69 modules.
Which version of the RFM69 should I use? I have seen there are 3 different frequency versions and some versions with H, C and W?
I want to have a better range. I currently use the NRF24L01 modules on battery nodes to transmit humidy and temperature every 5 minutes. So no big data.
Regards
Stefan -
Sample: ESP gateway with sensor
Hello,
Does anybody have a sample of an ESP gateway with a local sensor attached?
Currently I'm not able to find out how this can be done.I just want to send an increasing integer value to the controller (FHEM) each 5 minutes, to check if the connection is okay in the controller.
-
RE: π¬ Battery Powered Sensors
If you are using the first sketch you dont have to use a seperate pin to measure the input voltage. There are also no resistors.
You can run this on a bare ATmega with minimal hardware.
-
RE: [SOLVED] Only TX led is blinking, ERR and RX led are alway on
How are the leds connected to the arduino? Are the LEDs connected to ground or 5V?
-
RE: π¬ Sensebender Gateway
This gateway will only run with ethernet and USB? Is there a plan to integrate an ESP for WLAN connection?
-
RE: Resend if communication fail
I would also be interessed in a solution for a resend if the communication fails.
Currently I use this feature for all my sensors.Is it possible to use the following
if (send(uvMsg.set(uvIndex,2)) == false) { // resend }
-
RE: π¬ MDMSGate
I will add my interest for an assembled device. It looks really good.
-
RE: MySensors 2.0.0 Released
I did now also update my gateway but I see two messages in the debug panel that I don't understand:
pm open,type:2 0 0;255;3;0;9;TSP:SANCHK:OK
Does anybody have an idea what that means?
-
RE: MySensors 2.0.0 Released
Is there an overview about what was changed since the latest 1.x version?
Edit:
Sorry, did not see the link. -
RE: Sensebender Micro
I did update the Arduino IDE and now I don't see the Sensebender Micro in the device list.
I'm using 1.6.5 and did copy the content to the boards.txt.Is there something else I have to do?
# See: http://code.google.com/p/arduino/wiki/Platforms menu.cpu=Processor ############################################################## yun.name=Arduino YΓΊn yun.upload.via_ssh=true yun.vid.0=0x2341 yun.pid.0=0x0041 yun.vid.1=0x2341 yun.pid.1=0x8041 yun.vid.2=0x2A03 yun.pid.2=0x0041 yun.vid.3=0x2A03 yun.pid.3=0x8041 yun.upload.tool=avrdude yun.upload.protocol=avr109 yun.upload.maximum_size=28672 yun.upload.maximum_data_size=2560 yun.upload.speed=57600 yun.upload.disable_flushing=true yun.upload.use_1200bps_touch=true yun.upload.wait_for_upload_port=true yun.bootloader.tool=avrdude yun.bootloader.low_fuses=0xff yun.bootloader.high_fuses=0xd8 yun.bootloader.extended_fuses=0xfb yun.bootloader.file=caterina/Caterina-Yun.hex yun.bootloader.unlock_bits=0x3F yun.bootloader.lock_bits=0x2F yun.build.mcu=atmega32u4 yun.build.f_cpu=16000000L yun.build.vid=0x2341 yun.build.pid=0x8041 yun.build.usb_product="Arduino Yun" yun.build.board=AVR_YUN yun.build.core=arduino yun.build.variant=yun yun.build.extra_flags={build.usb_flags} ############################################################## uno.name=Arduino/Genuino Uno uno.vid.0=0x2341 uno.pid.0=0x0043 uno.vid.1=0x2341 uno.pid.1=0x0001 uno.vid.2=0x2A03 uno.pid.2=0x0043 uno.vid.3=0x2341 uno.pid.3=0x0243 uno.upload.tool=avrdude uno.upload.protocol=arduino uno.upload.maximum_size=32256 uno.upload.maximum_data_size=2048 uno.upload.speed=115200 uno.bootloader.tool=avrdude uno.bootloader.low_fuses=0xFF uno.bootloader.high_fuses=0xDE uno.bootloader.extended_fuses=0x05 uno.bootloader.unlock_bits=0x3F uno.bootloader.lock_bits=0x0F uno.bootloader.file=optiboot/optiboot_atmega328.hex uno.build.mcu=atmega328p uno.build.f_cpu=16000000L uno.build.board=AVR_UNO uno.build.core=arduino uno.build.variant=standard ############################################################## diecimila.name=Arduino Duemilanove or Diecimila diecimila.upload.tool=avrdude diecimila.upload.protocol=arduino diecimila.bootloader.tool=avrdude diecimila.bootloader.low_fuses=0xFF diecimila.bootloader.unlock_bits=0x3F diecimila.bootloader.lock_bits=0x0F diecimila.build.f_cpu=16000000L diecimila.build.board=AVR_DUEMILANOVE diecimila.build.core=arduino diecimila.build.variant=standard ## Arduino Duemilanove or Diecimila w/ ATmega328 ## --------------------------------------------- diecimila.menu.cpu.atmega328=ATmega328 diecimila.menu.cpu.atmega328.upload.maximum_size=30720 diecimila.menu.cpu.atmega328.upload.maximum_data_size=2048 diecimila.menu.cpu.atmega328.upload.speed=57600 diecimila.menu.cpu.atmega328.bootloader.high_fuses=0xDA diecimila.menu.cpu.atmega328.bootloader.extended_fuses=0x05 diecimila.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex diecimila.menu.cpu.atmega328.build.mcu=atmega328p ## Arduino Duemilanove or Diecimila w/ ATmega168 ## --------------------------------------------- diecimila.menu.cpu.atmega168=ATmega168 diecimila.menu.cpu.atmega168.upload.maximum_size=14336 diecimila.menu.cpu.atmega168.upload.maximum_data_size=1024 diecimila.menu.cpu.atmega168.upload.speed=19200 diecimila.menu.cpu.atmega168.bootloader.high_fuses=0xdd diecimila.menu.cpu.atmega168.bootloader.extended_fuses=0x00 diecimila.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex diecimila.menu.cpu.atmega168.build.mcu=atmega168 ############################################################## nano.name=Arduino Nano nano.upload.tool=avrdude nano.upload.protocol=arduino nano.bootloader.tool=avrdude nano.bootloader.unlock_bits=0x3F nano.bootloader.lock_bits=0x0F nano.build.f_cpu=16000000L nano.build.board=AVR_NANO nano.build.core=arduino nano.build.variant=eightanaloginputs ## Arduino Nano w/ ATmega328 ## ------------------------- nano.menu.cpu.atmega328=ATmega328 nano.menu.cpu.atmega328.upload.maximum_size=30720 nano.menu.cpu.atmega328.upload.maximum_data_size=2048 nano.menu.cpu.atmega328.upload.speed=57600 nano.menu.cpu.atmega328.bootloader.low_fuses=0xFF nano.menu.cpu.atmega328.bootloader.high_fuses=0xDA nano.menu.cpu.atmega328.bootloader.extended_fuses=0x05 nano.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex nano.menu.cpu.atmega328.build.mcu=atmega328p ## Arduino Nano w/ ATmega168 ## ------------------------- nano.menu.cpu.atmega168=ATmega168 nano.menu.cpu.atmega168.upload.maximum_size=14336 nano.menu.cpu.atmega168.upload.maximum_data_size=1024 nano.menu.cpu.atmega168.upload.speed=19200 nano.menu.cpu.atmega168.bootloader.low_fuses=0xff nano.menu.cpu.atmega168.bootloader.high_fuses=0xdd nano.menu.cpu.atmega168.bootloader.extended_fuses=0x00 nano.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex nano.menu.cpu.atmega168.build.mcu=atmega168 ############################################################## mega.name=Arduino/Genuino Mega or Mega 2560 mega.vid.0=0x2341 mega.pid.0=0x0010 mega.vid.1=0x2341 mega.pid.1=0x0042 mega.vid.2=0x2A03 mega.pid.2=0x0010 mega.vid.3=0x2A03 mega.pid.3=0x0042 mega.vid.4=0x2341 mega.pid.4=0x0210 mega.vid.5=0x2341 mega.pid.5=0x0242 mega.upload.tool=avrdude mega.upload.maximum_data_size=8192 mega.bootloader.tool=avrdude mega.bootloader.low_fuses=0xFF mega.bootloader.unlock_bits=0x3F mega.bootloader.lock_bits=0x0F mega.build.f_cpu=16000000L mega.build.core=arduino mega.build.variant=mega # default board may be overridden by the cpu menu mega.build.board=AVR_MEGA2560 ## Arduino/Genuino Mega w/ ATmega2560 ## ------------------------- mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560) mega.menu.cpu.atmega2560.upload.protocol=wiring mega.menu.cpu.atmega2560.upload.maximum_size=253952 mega.menu.cpu.atmega2560.upload.speed=115200 mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8 mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD mega.menu.cpu.atmega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex mega.menu.cpu.atmega2560.build.mcu=atmega2560 mega.menu.cpu.atmega2560.build.board=AVR_MEGA2560 ## Arduino Mega w/ ATmega1280 ## ------------------------- mega.menu.cpu.atmega1280=ATmega1280 mega.menu.cpu.atmega1280.upload.protocol=arduino mega.menu.cpu.atmega1280.upload.maximum_size=126976 mega.menu.cpu.atmega1280.upload.speed=57600 mega.menu.cpu.atmega1280.bootloader.high_fuses=0xDA mega.menu.cpu.atmega1280.bootloader.extended_fuses=0xF5 mega.menu.cpu.atmega1280.bootloader.file=atmega/ATmegaBOOT_168_atmega1280.hex mega.menu.cpu.atmega1280.build.mcu=atmega1280 mega.menu.cpu.atmega1280.build.board=AVR_MEGA ############################################################## megaADK.name=Arduino Mega ADK megaADK.vid.0=0x2341 megaADK.pid.0=0x003f megaADK.vid.1=0x2341 megaADK.pid.1=0x0044 megaADK.vid.2=0x2A03 megaADK.pid.2=0x003f megaADK.vid.3=0x2A03 megaADK.pid.3=0x0044 megaADK.upload.tool=avrdude megaADK.upload.protocol=wiring megaADK.upload.maximum_size=253952 megaADK.upload.maximum_data_size=8192 megaADK.upload.speed=115200 megaADK.bootloader.tool=avrdude megaADK.bootloader.low_fuses=0xFF megaADK.bootloader.high_fuses=0xD8 megaADK.bootloader.extended_fuses=0xFD megaADK.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex megaADK.bootloader.unlock_bits=0x3F megaADK.bootloader.lock_bits=0x0F megaADK.build.mcu=atmega2560 megaADK.build.f_cpu=16000000L megaADK.build.board=AVR_ADK megaADK.build.core=arduino megaADK.build.variant=mega ############################################################## leonardo.name=Arduino Leonardo leonardo.vid.0=0x2341 leonardo.pid.0=0x0036 leonardo.vid.1=0x2341 leonardo.pid.1=0x8036 leonardo.vid.2=0x2A03 leonardo.pid.2=0x0036 leonardo.vid.3=0x2A03 leonardo.pid.3=0x8036 leonardo.upload.tool=avrdude leonardo.upload.protocol=avr109 leonardo.upload.maximum_size=28672 leonardo.upload.maximum_data_size=2560 leonardo.upload.speed=57600 leonardo.upload.disable_flushing=true leonardo.upload.use_1200bps_touch=true leonardo.upload.wait_for_upload_port=true leonardo.bootloader.tool=avrdude leonardo.bootloader.low_fuses=0xff leonardo.bootloader.high_fuses=0xd8 leonardo.bootloader.extended_fuses=0xcb leonardo.bootloader.file=caterina/Caterina-Leonardo.hex leonardo.bootloader.unlock_bits=0x3F leonardo.bootloader.lock_bits=0x2F leonardo.build.mcu=atmega32u4 leonardo.build.f_cpu=16000000L leonardo.build.vid=0x2341 leonardo.build.pid=0x8036 leonardo.build.usb_product="Arduino Leonardo" leonardo.build.board=AVR_LEONARDO leonardo.build.core=arduino leonardo.build.variant=leonardo leonardo.build.extra_flags={build.usb_flags} ############################################################## micro.name=Arduino/Genuino Micro micro.vid.0=0x2341 micro.pid.0=0x0037 micro.vid.1=0x2341 micro.pid.1=0x8037 micro.vid.2=0x2A03 micro.pid.2=0x0037 micro.vid.3=0x2A03 micro.pid.3=0x8037 micro.vid.4=0x2341 micro.pid.4=0x0237 # If the board is a 2341:0237 use 2341:8237 for build and set # other parameters as well micro.vid.4.build.vid=0x2341 micro.vid.4.build.pid=0x8237 micro.vid.4.build.usb_product="Genuino Micro" micro.vid.4.bootloader.file=caterina/Caterina-Genuino-Micro.hex micro.vid.5=0x2341 micro.pid.5=0x8237 # If the board is a 2341:8237 use 2341:8237 for build and set # other paramters as well micro.vid.5.build.vid=0x2341 micro.vid.5.build.pid=0x8237 micro.vid.5.build.usb_product="Genuino Micro" micro.vid.5.bootloader.file=caterina/Caterina-Genuino-Micro.hex micro.upload.tool=avrdude micro.upload.protocol=avr109 micro.upload.maximum_size=28672 micro.upload.maximum_data_size=2560 micro.upload.speed=57600 micro.upload.disable_flushing=true micro.upload.use_1200bps_touch=true micro.upload.wait_for_upload_port=true micro.bootloader.tool=avrdude micro.bootloader.low_fuses=0xff micro.bootloader.high_fuses=0xd8 micro.bootloader.extended_fuses=0xcb micro.bootloader.file=caterina/Caterina-Micro.hex micro.bootloader.unlock_bits=0x3F micro.bootloader.lock_bits=0x2F micro.build.mcu=atmega32u4 micro.build.f_cpu=16000000L micro.build.vid=0x2341 micro.build.pid=0x8037 micro.build.usb_product="Arduino Micro" micro.build.board=AVR_MICRO micro.build.core=arduino micro.build.variant=micro micro.build.extra_flags={build.usb_flags} ############################################################## esplora.name=Arduino Esplora esplora.vid.0=0x2341 esplora.pid.0=0x003C esplora.vid.1=0x2341 esplora.pid.1=0x803C esplora.vid.2=0x2A03 esplora.pid.2=0x003C esplora.vid.3=0x2A03 esplora.pid.3=0x803C esplora.upload.tool=avrdude esplora.upload.protocol=avr109 esplora.upload.maximum_size=28672 esplora.upload.maximum_data_size=2560 esplora.upload.speed=57600 esplora.upload.disable_flushing=true esplora.upload.use_1200bps_touch=true esplora.upload.wait_for_upload_port=true esplora.bootloader.tool=avrdude esplora.bootloader.low_fuses=0xff esplora.bootloader.high_fuses=0xd8 esplora.bootloader.extended_fuses=0xcb esplora.bootloader.file=caterina/Caterina-Esplora.hex esplora.bootloader.unlock_bits=0x3F esplora.bootloader.lock_bits=0x2F esplora.build.mcu=atmega32u4 esplora.build.f_cpu=16000000L esplora.build.vid=0x2341 esplora.build.pid=0x803c esplora.build.usb_product="Arduino Esplora" esplora.build.board=AVR_ESPLORA esplora.build.core=arduino esplora.build.variant=leonardo esplora.build.extra_flags={build.usb_flags} ############################################################## mini.name=Arduino Mini mini.upload.tool=avrdude mini.upload.protocol=arduino mini.bootloader.tool=avrdude mini.bootloader.low_fuses=0xff mini.bootloader.unlock_bits=0x3F mini.bootloader.lock_bits=0x0F mini.build.f_cpu=16000000L mini.build.board=AVR_MINI mini.build.core=arduino mini.build.variant=eightanaloginputs ## Arduino Mini w/ ATmega328 ## ------------------------- mini.menu.cpu.atmega328=ATmega328 mini.menu.cpu.atmega328.upload.maximum_size=28672 mini.menu.cpu.atmega328.upload.maximum_data_size=2048 mini.menu.cpu.atmega328.upload.speed=115200 mini.menu.cpu.atmega328.bootloader.high_fuses=0xd8 mini.menu.cpu.atmega328.bootloader.extended_fuses=0x05 mini.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328-Mini.hex mini.menu.cpu.atmega328.build.mcu=atmega328p ## Arduino Mini w/ ATmega168 ## ------------------------- mini.menu.cpu.atmega168=ATmega168 mini.menu.cpu.atmega168.upload.maximum_size=14336 mini.menu.cpu.atmega168.upload.maximum_data_size=1024 mini.menu.cpu.atmega168.upload.speed=19200 mini.menu.cpu.atmega168.bootloader.high_fuses=0xdd mini.menu.cpu.atmega168.bootloader.extended_fuses=0x00 mini.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex mini.menu.cpu.atmega168.build.mcu=atmega168 ############################################################## ethernet.name=Arduino Ethernet ethernet.upload.tool=avrdude ethernet.upload.protocol=arduino ethernet.upload.maximum_size=32256 ethernet.upload.maximum_data_size=2048 ethernet.upload.speed=115200 ethernet.bootloader.tool=avrdude ethernet.bootloader.low_fuses=0xff ethernet.bootloader.high_fuses=0xde ethernet.bootloader.extended_fuses=0x05 ethernet.bootloader.file=optiboot/optiboot_atmega328.hex ethernet.bootloader.unlock_bits=0x3F ethernet.bootloader.lock_bits=0x0F ethernet.build.variant=ethernet ethernet.build.mcu=atmega328p ethernet.build.f_cpu=16000000L ethernet.build.board=AVR_ETHERNET ethernet.build.core=arduino ############################################################## fio.name=Arduino Fio fio.upload.tool=avrdude fio.upload.protocol=arduino fio.upload.maximum_size=30720 fio.upload.maximum_data_size=2048 fio.upload.speed=57600 fio.bootloader.tool=avrdude fio.bootloader.low_fuses=0xFF fio.bootloader.high_fuses=0xDA fio.bootloader.extended_fuses=0x05 fio.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex fio.bootloader.unlock_bits=0x3F fio.bootloader.lock_bits=0x0F fio.build.mcu=atmega328p fio.build.f_cpu=8000000L fio.build.board=AVR_FIO fio.build.core=arduino fio.build.variant=eightanaloginputs ############################################################## bt.name=Arduino BT bt.upload.tool=avrdude bt.upload.protocol=arduino bt.upload.speed=19200 bt.upload.disable_flushing=true bt.bootloader.tool=avrdude bt.bootloader.low_fuses=0xff bt.bootloader.unlock_bits=0x3F bt.bootloader.lock_bits=0x0F bt.build.f_cpu=16000000L bt.build.board=AVR_BT bt.build.core=arduino bt.build.variant=eightanaloginputs ## Arduino BT w/ ATmega328 ## ----------------------- bt.menu.cpu.atmega328=ATmega328 bt.menu.cpu.atmega328.upload.maximum_size=28672 bt.menu.cpu.atmega328.upload.maximum_data_size=2048 bt.menu.cpu.atmega328.bootloader.high_fuses=0xd8 bt.menu.cpu.atmega328.bootloader.extended_fuses=0x05 bt.menu.cpu.atmega328.bootloader.file=bt/ATmegaBOOT_168_atmega328_bt.hex bt.menu.cpu.atmega328.build.mcu=atmega328p ## Arduino BT w/ ATmega168 ## ----------------------- bt.menu.cpu.atmega168=ATmega168 bt.menu.cpu.atmega168.upload.maximum_size=14336 bt.menu.cpu.atmega168.upload.maximum_data_size=1024 bt.menu.cpu.atmega168.bootloader.high_fuses=0xdd bt.menu.cpu.atmega168.bootloader.extended_fuses=0x00 bt.menu.cpu.atmega168.bootloader.file=bt/ATmegaBOOT_168.hex bt.menu.cpu.atmega168.build.mcu=atmega168 ############################################################## LilyPadUSB.name=LilyPad Arduino USB LilyPadUSB.vid.0=0x1B4F LilyPadUSB.pid.0=0x9207 LilyPadUSB.vid.1=0x1B4F LilyPadUSB.pid.1=0x9208 LilyPadUSB.upload.tool=avrdude LilyPadUSB.upload.protocol=avr109 LilyPadUSB.upload.maximum_size=28672 LilyPadUSB.upload.maximum_data_size=2560 LilyPadUSB.upload.speed=57600 LilyPadUSB.upload.disable_flushing=true LilyPadUSB.upload.use_1200bps_touch=true LilyPadUSB.upload.wait_for_upload_port=true LilyPadUSB.bootloader.tool=avrdude LilyPadUSB.bootloader.low_fuses=0xff LilyPadUSB.bootloader.high_fuses=0xd8 LilyPadUSB.bootloader.extended_fuses=0xce LilyPadUSB.bootloader.file=caterina-LilyPadUSB/Caterina-LilyPadUSB.hex LilyPadUSB.bootloader.unlock_bits=0x3F LilyPadUSB.bootloader.lock_bits=0x2F LilyPadUSB.build.mcu=atmega32u4 LilyPadUSB.build.f_cpu=8000000L LilyPadUSB.build.vid=0x1B4F LilyPadUSB.build.pid=0x9208 LilyPadUSB.build.usb_product="LilyPad USB" LilyPadUSB.build.board=AVR_LILYPAD_USB LilyPadUSB.build.core=arduino LilyPadUSB.build.variant=leonardo LilyPadUSB.build.extra_flags={build.usb_flags} ############################################################## lilypad.name=LilyPad Arduino lilypad.upload.tool=avrdude lilypad.upload.protocol=arduino lilypad.bootloader.tool=avrdude lilypad.bootloader.unlock_bits=0x3F lilypad.bootloader.lock_bits=0x0F lilypad.build.f_cpu=8000000L lilypad.build.board=AVR_LILYPAD lilypad.build.core=arduino lilypad.build.variant=standard ## LilyPad Arduino w/ ATmega328 ## ---------------------------- lilypad.menu.cpu.atmega328=ATmega328 lilypad.menu.cpu.atmega328.upload.maximum_size=30720 lilypad.menu.cpu.atmega328.upload.maximum_data_size=2048 lilypad.menu.cpu.atmega328.upload.speed=57600 lilypad.menu.cpu.atmega328.bootloader.low_fuses=0xFF lilypad.menu.cpu.atmega328.bootloader.high_fuses=0xDA lilypad.menu.cpu.atmega328.bootloader.extended_fuses=0x05 lilypad.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex lilypad.menu.cpu.atmega328.build.mcu=atmega328p ## LilyPad Arduino w/ ATmega168 ## ---------------------------- lilypad.menu.cpu.atmega168=ATmega168 lilypad.menu.cpu.atmega168.upload.maximum_size=14336 lilypad.menu.cpu.atmega168.upload.maximum_data_size=1024 lilypad.menu.cpu.atmega168.upload.speed=19200 lilypad.menu.cpu.atmega168.bootloader.low_fuses=0xe2 lilypad.menu.cpu.atmega168.bootloader.high_fuses=0xdd lilypad.menu.cpu.atmega168.bootloader.extended_fuses=0x00 lilypad.menu.cpu.atmega168.bootloader.file=lilypad/LilyPadBOOT_168.hex lilypad.menu.cpu.atmega168.build.mcu=atmega168 ############################################################## pro.name=Arduino Pro or Pro Mini pro.upload.tool=avrdude pro.upload.protocol=arduino pro.bootloader.tool=avrdude pro.bootloader.unlock_bits=0x3F pro.bootloader.lock_bits=0x0F pro.build.board=AVR_PRO pro.build.core=arduino pro.build.variant=eightanaloginputs ## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328 ## ------------------------------------------------- pro.menu.cpu.16MHzatmega328=ATmega328 (5V, 16 MHz) pro.menu.cpu.16MHzatmega328.upload.maximum_size=30720 pro.menu.cpu.16MHzatmega328.upload.maximum_data_size=2048 pro.menu.cpu.16MHzatmega328.upload.speed=57600 pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x05 pro.menu.cpu.16MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex pro.menu.cpu.16MHzatmega328.build.mcu=atmega328p pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L ## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328 ## -------------------------------------------------- pro.menu.cpu.8MHzatmega328=ATmega328 (3.3V, 8 MHz) pro.menu.cpu.8MHzatmega328.upload.maximum_size=30720 pro.menu.cpu.8MHzatmega328.upload.maximum_data_size=2048 pro.menu.cpu.8MHzatmega328.upload.speed=57600 pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xFF pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x05 pro.menu.cpu.8MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex pro.menu.cpu.8MHzatmega328.build.mcu=atmega328p pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L ## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168 ## ------------------------------------------------- pro.menu.cpu.16MHzatmega168=ATmega168 (5V, 16 MHz) pro.menu.cpu.16MHzatmega168.upload.maximum_size=14336 pro.menu.cpu.16MHzatmega168.upload.maximum_data_size=1024 pro.menu.cpu.16MHzatmega168.upload.speed=19200 pro.menu.cpu.16MHzatmega168.bootloader.low_fuses=0xff pro.menu.cpu.16MHzatmega168.bootloader.high_fuses=0xdd pro.menu.cpu.16MHzatmega168.bootloader.extended_fuses=0x00 pro.menu.cpu.16MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex pro.menu.cpu.16MHzatmega168.build.mcu=atmega168 pro.menu.cpu.16MHzatmega168.build.f_cpu=16000000L ## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168 ## -------------------------------------------------- pro.menu.cpu.8MHzatmega168=ATmega168 (3.3V, 8 MHz) pro.menu.cpu.8MHzatmega168.upload.maximum_size=14336 pro.menu.cpu.8MHzatmega168.upload.maximum_data_size=1024 pro.menu.cpu.8MHzatmega168.upload.speed=19200 pro.menu.cpu.8MHzatmega168.bootloader.low_fuses=0xc6 pro.menu.cpu.8MHzatmega168.bootloader.high_fuses=0xdd pro.menu.cpu.8MHzatmega168.bootloader.extended_fuses=0x00 pro.menu.cpu.8MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_pro_8MHz.hex pro.menu.cpu.8MHzatmega168.build.mcu=atmega168 pro.menu.cpu.8MHzatmega168.build.f_cpu=8000000L ############################################################## atmegang.name=Arduino NG or older atmegang.upload.tool=avrdude atmegang.upload.protocol=arduino atmegang.upload.speed=19200 atmegang.bootloader.tool=avrdude atmegang.bootloader.unlock_bits=0x3F atmegang.bootloader.lock_bits=0x0F atmegang.build.mcu=atmegang atmegang.build.f_cpu=16000000L atmegang.build.board=AVR_NG atmegang.build.core=arduino atmegang.build.variant=standard ## Arduino NG or older w/ ATmega168 ## -------------------------------- atmegang.menu.cpu.atmega168=ATmega168 atmegang.menu.cpu.atmega168.upload.maximum_size=14336 atmegang.menu.cpu.atmega168.upload.maximum_data_size=1024 atmegang.menu.cpu.atmega168.bootloader.low_fuses=0xff atmegang.menu.cpu.atmega168.bootloader.high_fuses=0xdd atmegang.menu.cpu.atmega168.bootloader.extended_fuses=0x00 atmegang.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex atmegang.menu.cpu.atmega168.build.mcu=atmega168 ## Arduino NG or older w/ ATmega8 ## ------------------------------ atmegang.menu.cpu.atmega8=ATmega8 atmegang.menu.cpu.atmega8.upload.maximum_size=7168 atmegang.menu.cpu.atmega8.upload.maximum_data_size=1024 atmegang.menu.cpu.atmega8.bootloader.low_fuses=0xdf atmegang.menu.cpu.atmega8.bootloader.high_fuses=0xca atmegang.menu.cpu.atmega8.bootloader.file=atmega8/ATmegaBOOT-prod-firmware-2009-11-07.hex atmegang.menu.cpu.atmega8.build.mcu=atmega8 ############################################################## robotControl.name=Arduino Robot Control robotControl.vid.0=0x2341 robotControl.pid.0=0x0038 robotControl.vid.1=0x2341 robotControl.pid.1=0x8038 robotControl.vid.2=0x2A03 robotControl.pid.2=0x0038 robotControl.vid.3=0x2A03 robotControl.pid.3=0x8038 robotControl.upload.tool=avrdude robotControl.upload.protocol=avr109 robotControl.upload.maximum_size=28672 robotControl.upload.maximum_data_size=2560 robotControl.upload.speed=57600 robotControl.upload.disable_flushing=true robotControl.upload.use_1200bps_touch=true robotControl.upload.wait_for_upload_port=true robotControl.bootloader.tool=avrdude robotControl.bootloader.low_fuses=0xff robotControl.bootloader.high_fuses=0xd8 robotControl.bootloader.extended_fuses=0xcb robotControl.bootloader.file=caterina-Arduino_Robot/Caterina-Robot-Control.hex robotControl.bootloader.unlock_bits=0x3F robotControl.bootloader.lock_bits=0x2F robotControl.build.mcu=atmega32u4 robotControl.build.f_cpu=16000000L robotControl.build.vid=0x2341 robotControl.build.pid=0x8038 robotControl.build.usb_product="Robot Control" robotControl.build.board=AVR_ROBOT_CONTROL robotControl.build.core=arduino robotControl.build.variant=robot_control robotControl.build.extra_flags={build.usb_flags} ############################################################## robotMotor.name=Arduino Robot Motor robotMotor.vid.0=0x2341 robotMotor.pid.0=0x0039 robotMotor.vid.1=0x2341 robotMotor.pid.1=0x8039 robotMotor.vid.2=0x2A03 robotMotor.pid.2=0x0039 robotMotor.vid.3=0x2A03 robotMotor.pid.3=0x8039 robotMotor.upload.tool=avrdude robotMotor.upload.protocol=avr109 robotMotor.upload.maximum_size=28672 robotMotor.upload.maximum_data_size=2560 robotMotor.upload.speed=57600 robotMotor.upload.disable_flushing=true robotMotor.upload.use_1200bps_touch=true robotMotor.upload.wait_for_upload_port=true robotMotor.bootloader.tool=avrdude robotMotor.bootloader.low_fuses=0xff robotMotor.bootloader.high_fuses=0xd8 robotMotor.bootloader.extended_fuses=0xcb robotMotor.bootloader.file=caterina-Arduino_Robot/Caterina-Robot-Motor.hex robotMotor.bootloader.unlock_bits=0x3F robotMotor.bootloader.lock_bits=0x2F robotMotor.build.mcu=atmega32u4 robotMotor.build.f_cpu=16000000L robotMotor.build.vid=0x2341 robotMotor.build.pid=0x8039 robotMotor.build.usb_product="Robot Motor" robotMotor.build.board=AVR_ROBOT_MOTOR robotMotor.build.core=arduino robotMotor.build.variant=robot_motor robotMotor.build.extra_flags={build.usb_flags} ############################################################## gemma.vid.0=0x2341 gemma.pid.0=0x0c9f gemma.name=Arduino Gemma gemma.bootloader.low_fuses=0xF1 gemma.bootloader.high_fuses=0xD5 gemma.bootloader.extended_fuses=0xFE gemma.bootloader.tool=avrdude gemma.bootloader.lock_bits= gemma.bootloader.unlock_bits= gemma.bootloader.file=gemma/gemma_v1.hex gemma.build.mcu=attiny85 gemma.build.f_cpu=8000000L gemma.build.core=arduino gemma.build.variant=gemma gemma.build.board=AVR_GEMMA gemma.upload.tool=avrdude gemma.upload.maximum_size=5310 menu.cpu=Processor ###################################### ## Sensebender Micro MysensorsMicro.name=Sensebender Micro MysensorsMicro.upload.tool=arduino:avrdude MysensorsMicro.upload.protocol=arduino MysensorsMicro.upload.maximum_size=30720 MysensorsMicro.upload.maximum_data_size=2048 MysensorsMicro.upload.speed=57600 MysensorsMicro.bootloader.tool=arduino:avrdude MysensorsMicro.bootloader.unlock_bits=0x3F MysensorsMicro.bootloader.lock_bits=0x0F MysensorsMicro.bootloader.low_fuses=0xE2 MysensorsMicro.bootloader.high_fuses=0xD2 MysensorsMicro.bootloader.extended_fuses=0x06 MysensorsMicro.bootloader.file=DualOptiboot/optiboot_atmega328_pro_8MHz.hex MysensorsMicro.build.board=AVR_MICRO8 MysensorsMicro.build.core=arduino:arduino MysensorsMicro.build.variant=micro MysensorsMicro.build.mcu=atmega328p #MysensorsMicro.build.f_cpu=8000000L MysensorsMicro.menu.cpu.8Mhz=Atmega328 8Mhz MysensorsMicro.menu.cpu.8Mhz.build.f_cpu=8000000L MysensorsMicro.menu.cpu.1Mhz=Atmega328 1Mhz MysensorsMicro.menu.cpu.1Mhz.build.f_cpu=1000000L
I'm using a Mac if it is important.
-
RE: Physically small Gateway (to fit inside Raspberry Pi case)
This sounds really good. I will now also try to reuse my sensebender as a Gateway on the raspberry with a lower baudrate.
I'm using FHEM and it is possible to set the baudrate in the configuration.
The strange thing is, that the receiving Messages from nodes and sending the Content to the Controller was working. Only sending values from the Controller to the nodes was not working.
I think the raspberry is more tolerate in receiving Messages with a Little bit different Baudrate, than the ATmega. -
RE: My own board (50mm x 30mm)
Are these identical sensors?
I have 10 sensebender micros with a SI7021 sensor and they show completely the same values.
-
RE: Sensebender Micro as gateway on raspberry pi
Did nobody use the internal serial connection of the raspberry pi?
-
Sensebender Micro as gateway on raspberry pi
Hello,
I want to use the sensebender micro as a Gateway on the raspberry pi.
I have connected the rx and tx line directly to the I/Os of the raspberry and also the 3.3V for the power.In the controller I can connect to the gateway and receive data, but when I trie to send a value, nothing is send out.
Also assigning an ID to a new sensor fails.It seems that the transmission from the raspberry to the sensebender is not working.
Does anybody have an idea how to solve this?
-
RE: Message.GetString() Error
I did now include a
hexstring.substring(0,6)
To only get the first 6 characters.
-
RE: Message.GetString() Error
Currently I am using the latest stable version from the website:
Should be version 1.5
Do I need to do any changes in the controller, when I'm using the 2.0 version?
Do I need to update the gateway as well?I'm right that the development tree is the version 2.0 you are talking about?
-
Message.GetString() Error
Hello,
I have a problem with the Message.GetString() function.
I send a RGB value in HEX format to the node and when reading out the message content I get a strange behavior.The serial console tells me the following
read: 0-0-16 s=0,c=1,t=40,pt=0,l=6,sg=0:FF9A00
But when I try to read the message value I get:
HEX: FF9A00de
In the code I do the following:
String hexstring = message.getString(); //here goes the hex color code coming from through MySensors (like FF9A00) Serial.print("HEX: "); Serial.println(hexstring);
I don't think that this is an issue of the controller or the Arduino sketch.
does somebody have an idea how to solve this?
Thanks.
Stefan -
RE: Battery based atmega328p sensor (no SMD)
It seems that the BOM is empty.
-
RE: How about nRF24LU1+
I love the size of this device. Do you know i it works with the MySensors serial gateway sketch?
-
RE: My own board (50mm x 30mm)
@alexsh1
How did you connect the battery? Did you solder it directly to the board? -
RE: PINE A64, First $15 64-Bit Single Board Super Computer
I was also thinking about to backe it to build my new FHEM Controller. But currently I'm happy with my raspberry pi.
-
RE: My own board (50mm x 30mm)
Do you have an idea how long a temperature sensor will run on 2 AAA batteries?
-
RE: Running ATmega328P on internal 8MHz clock
@tbowmo
You are right. I did modify my post. -
RE: Running ATmega328P on internal 8MHz clock
If you use an 16MHz oscillator and power the board with 3V, the board will run unstable as the ATMega does not support 16Mhz with 3V.
If you just change the power, will not change the oscillator frequenzy. You have to Switch to the internal clock signal when powering the board with 3V and you have a 16MHz clock installed.