@giangired AT domoticz you can send a message to telegram to let you know that the last update is x minuten ago. That is how I know there is something wrong with a sensor.
Posts made by tonbor
-
RE: How to get the bad status (red) for Temperature Node
-
RE: Connection ESP32 and NRF24
@electrik, yes I use gpio numbers. Sketch is very very long, I am porting it from esp8266 to esp32 wroom. Fixed different timers, from os_timer_t to hw_timer_t, less relevant, now the nrf24 switch. CE attached to gpio 17 the nrf24 Works fine, want to move to gpio 12, with the #define i mentioned, CE just stays at gpio 17
-
RE: Connection ESP32 and NRF24
@electrik no it does not, CE to 17 is just my problem, with the ESP32 wroom-32u pin 17 is the serial2 txpin I need for Nextion output. And #define MY_RF24_CE_PIN 12 does not Work.
-
Connection ESP32 and NRF24
Have bought a ESP32 Dev with 38 pins. Try to connect my NRF24, got a problem with CSN and CE, there is no standard pin. GPIO 5 for CSN is ok CE on GPIO17 is blocking u2TXD I need. Try with #define MY_RF24_CE_PIN 12 to get CE to GPIO 12 no luck. Somebody did the job before, and did succeed, how?
-
RE: Wireless nRF24L01+ sniffer for MySensors
https://www.filepuma.com/download/wireshark_64bit_1.10.8-6009/download/
with a little help from my friends …….. -
RE: Wireless nRF24L01+ sniffer for MySensors
Indeed, helping each other is not pointing with kingsize letters to obsolete software or leaving the thread there without any warning. Sorry if I was carried away with my anger after trying for a day to get things working.
-
RE: Wireless nRF24L01+ sniffer for MySensors
@yveaux Well this is your description: "Installation As you can see in the description above, the console application and Wireshark dissectors are currently only available for Windows (anyone who volunteers to port them to Linux and/or Mac, please do so and let me know). In the description below I assume you've already downloaded and installed: Wireshark - I used 1.10.8, either 32- or 64-bits"
Well I suppose you meant it is only working with Wireshark - 1.10.8, that's really only using "Oude Meuk" Sorry I wasted my time, and I see too late more people did.
-
RE: Wireless nRF24L01+ sniffer for MySensors
Wireshark is version 3, MySensors 2.3.1 released 2018. nrf24 protocol with old dll is not working. Cost me hours tot find out it is "Oude Meuk", and not working with Wireshark error message "dissector not found". Please @Hek and @Yveaux release working version or wipe it from the forum at many places, PLEASE!
-
RE: VEML6070 and VEML6075 UV sensors
This ino is working for me, it has the sleep function to save batteries. The Adafruit en the github/mysensors-> https://github.com/schizobovine/VEML6075 lib gives far to high index with my sensor. Only uv a and uv b declaration is not correct. Uv expect a index 0 till 11, domoticz controller passes a lower figure when it receives a number above 11.
-
RE: VEML6070 and VEML6075 UV sensors
/*
Original by scalz@mysensors: https://forum.mysensors.org/topic/6952/veml6070-and-veml6075-uv-sensors/25#
Needs a modified VEML6075-lib: https://github.com/rejoe2/VEML6075
rewritten by Tonbor using sparkfun libary
/
// Enable debug prints to serial monitor
#define MY_DEBUG
// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
//#define MY_NODE_ID 10
#include <MySensors.h>
#include <SparkFun_VEML6075_Arduino_Library.h>
VEML6075 uv;
//VEML6075 veml6075 = VEML6075();
bool sensorFound = false;
#define CHILD_ID_UVI 1
#define CHILD_ID_UVA 2
#define CHILD_ID_UVB 3
uint32_t SLEEP_TIME = 301000; // Sleep time between reads (in milliseconds)
MyMessage uviMsg(CHILD_ID_UVI, V_UV);
MyMessage uvaMsg(CHILD_ID_UVA, V_UV);
MyMessage uvbMsg(CHILD_ID_UVB, V_UV);
void presentation()
{
// Send the sketch version information to the gateway and Controller
sendSketchInfo("UV Sensor", "1.4T");
// Register all sensors to gateway (they will be created as child devices)
present(CHILD_ID_UVI, S_UV);
present(CHILD_ID_UVA, S_UV);
present(CHILD_ID_UVB, S_UV);
}
void setup()
{
if (!uv.begin()) {
Serial.println(F("VEML6075 not found!"));
} else
sensorFound = true;
//#ifdef MY_DEBUG
// uint16_t devid = veml6075.getDevID();
// Serial.print(F("Device ID = "));
// Serial.println(devid, HEX);
// Serial.println(F("----------------"));
//#endif
}
void loop()
{
if (sensorFound) {
unsigned long lastSend =0;
float uvi;
float uva;
float uvb;
static float uviOld = -1;
static float uvaOld = -1;
static float uvbOld = -1;
//veml6075.sleep(false); // power up veml6075 == begin()
//sleep(500);
// Poll sensor
//veml6075.poll();
uv.powerOn();
delay(250);
uva = uv.a();
uvb = uv.b();
uvi = uv.index();
#ifdef MY_DEBUG
Serial.print(F("UVA = "));
Serial.println(uva, 2);
Serial.print(F("UVB = "));
Serial.println(uvb, 2);
Serial.print(F("UV Index = "));
Serial.println(uvi, 1);
#endif
if (uvi != uviOld) {
send(uviMsg.set(uvi,2));
uviOld = uvi;
}
if (uva != uvaOld) {
send(uvaMsg.set(uva,2));
uvaOld = uva;
}
if (uvb != uvbOld) {
send(uvbMsg.set(uvb,2));
uvbOld = uvb;
}
}
uv.shutdown(); ; // power down veml6075
sleep(SLEEP_TIME);
} -
RE: 💬 Serial Protocol - 2.x
Is there a type to present in mysensors for solar radiation w/m2. Got a veml6075 sensor. And domoticz has a solar radiation sensor type.
-
Solar radiation type
Is there a type to present in mysensors for solar radiation w/m2. Got a veml6075 sensor. And domoticz has a solar radiation sensor type.
-
RE: VEML6070 and VEML6075 UV sensors
An old thread, tried the github ino for the VEML6075, is not working ok. UVA and UVB sometimes wrong negative figures. I am going to try the sparkfun library, is from 2018. Let you now if I get beter results.
-
RE: 💬 Battery Powered Sensors
The quote is from this sample : Measuring and Reporting Battery Level
Use a 1MΩ (R1) and 470KΩ (R2) resistor in series, connected to the positive terminal on the battery and ground and then connected the tap point to the A0 input on the CPU.
The tap point could be bypassed with a 0.1 uF capacitor to keep the noise level low, at this otherwise high impedance point.
-
RE: GUVA-S12SD UV sensor sketch
/**
- DESCRIPTION
- Sensor: CJMCU-GUVA-S12SD/CJMCU-S12D
- Sensor Arduino
- SIG -> A0
- GND -> GND
- VCC -> 5V or 3.3v
- part created by Henrik Ekblad henrik.ekblad@mysensors.org
- Copyright (C) 2013-2015 Sensnology AB
- Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
- part Original link : CSDN 博客链接.
- part by Tonbor august 2018
*/
// Enable debug prints to serial monitor
#define MY_DEBUG// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_NRF5_ESB
//#define MY_RADIO_RFM69
//#define MY_RADIO_RFM95#include <MySensors.h>
#define UV_SENSOR_ANALOG_PIN 0
#define CHILD_ID_UV 0
uint32_t SLEEP_TIME = 30*1000; // Sleep time between reads (in milliseconds)
MyMessage uvMsg(CHILD_ID_UV, V_UV);
int lastSend =0;
int sensorValue;
long sum = 0;
int vout = 0;
int uv = 0;
int lastUV = -1;void presentation()
{
// Send the sketch version information to the gateway and Controller
sendSketchInfo("UV Sensor", "1.3");// Register all sensors to gateway (they will be created as child devices) present(CHILD_ID_UV, S_UV);
}
void setup() {
Serial.begin(115000);
}
void loop()
{
uint32_t currentTime = millis();
sensorValue = 0;
sum = 0;
for (int i = 0 ; i < 1024 ; i++ ) {
sensorValue = analogRead(UV_SENSOR_ANALOG_PIN);
sum = sensorValue + sum;
delay(2);
}
vout = sum >> 10;
vout = vout * 4980.0 / 1024;
Serial.print("The Photocurrent value:");
Serial.print(vout);
Serial.println("mV");
if (vout < 50) {
uv = 0;
}
else if (vout < 227) {
uv = 1;
}
else if (vout < 318) {
uv = 2;
}
else if (vout < 408) {
uv = 3;
}
else if (vout < 503) {
uv = 4;
}
else if (vout < 606) {
uv = 5;
}
else if (vout < 696) {
uv = 6;
}
else if (vout < 795) {
uv = 7;
}
else if (vout < 881) {
uv = 8;
}
else if (vout < 976) {
uv = 9;
}
else if (vout < 1079) {
uv = 10;
}
else {
uv = 11;
}//Send value to gateway if changed, or at least every 5 minutes if ((uv != lastUV)||(currentTime-lastSend >= 5UL*60UL*1000UL)) { lastSend=currentTime; send(uvMsg.set(uv)); lastUV = uv; } sleep(SLEEP_TIME);
}
-
GUVA-S12SD UV sensor sketch
Re: [0_1534265394169_UVSensor.ino](Uploading 100%) GUVA-S12SD UV sensor sketch required
[0_1534265424506_UVSensor.ino](Uploading 100%)
-
GUVA-S12SD UV sensor sketch made, hope to get response and help others
GUVA-S12SD UV sensor sketch made, hope to get response and help others, there was a question a year ago for a sketch by Tommas. Scatz suggested to post a sketch.