@alexsh1 Thank you
Posts made by Konrad Walsh
-
RE: 💬 MyMultisensors
I am sorry.. I should have been more clear...
When you say PCB.. Is that a fully assembled product with all the mentioned sensors? Or is it a board and you add sensors to it..Please excuse my ignorance
-
RE: 💬 MyMultisensors
Phenomenal!
I have a stupid question.. clicking buy on the page.. what exactly does that buy you>?
-
RE: Bluetooth Proximity Sensor
i am "semi" abandoned it.. I couldn't get it work at all... but I cant say I fully grasp the syntax yet. Hopefully @HEK gets the notion...
-
RE: Bluetooth Proximity Sensor
i am "semi" abandoned it.. I couldn't get it work at all...
-
RE: Assistance Needed Completing GAS Air Quality Sensor
@korttoma Hey
Just back on track from today.. so will getting looking to this again
-
RE: Assistance Needed Completing GAS Air Quality Sensor
@korttoma Hey
Bear with me.. I hope to complete this over the weekend.. work got in the way.. But the goal is to achieve what you requested... I just need to stabilize things first
-
RE: 3-in-1 Humidity Temp and Motion
@Nuubi LOL.. its a secret!!!
and I will share my carefully guarded secret... Air quality sensor!! or in other words.. smoke and gas detector...
-
RE: Assistance Needed Completing GAS Air Quality Sensor
@epierre OK.. I wil lget this set up functioning first as a stanadalone device. I have the sketch completed now.. Just finishing off the vera files.. Then I will look at improving things
-
RE: Assistance Needed Completing GAS Air Quality Sensor
@BulldogLowell LOL .. maybe dont depend on my skills..!!
-
RE: Assistance Needed Completing GAS Air Quality Sensor
Thanks - I will change to that and update you
The ultimate goal here is to make a 5 in 1 sensor.. So what I have already.. this will finish that off
-
Assistance Needed Completing GAS Air Quality Sensor
At the challenge from @HEK and realising we have no S_AIR_QUALITY files.. I have set out to create them..I am stuck with finalising the .ino sketch. I want to achieve this in one device with three pieces of data. .Its early days on development but I could do with help through the last parts..
I have attached my files as they are. In the .ino sketch the problem is with my gw.send(msgxxxx) parts.
-
RE: 3-in-1 Humidity Temp and Motion
@Opus40 Great!
I am currently finalising a 5 in 1 sensor... just testing and so far its working fantastic
-
RE: 3-in-1 Humidity Temp and Motion
Hey
From what I just read it shouldnt matter.. you I would double check you wiring of the DHT11. Your output should be on PIN 4.. Also, have you placed the resistor on the DHT1`1
-
RE: Bluetooth Proximity Sensor
ok.. mine enters AT mode.. and I can get it to send and receive data.. I may as well keep plugging at it so
-
RE: Bluetooth Proximity Sensor
I have given up.. I cant get anywhere with this but I think its cause I bought hc-06.. Are you closer?
-
RE: Bluetooth Proximity Sensor
@hek
I have to wait for you to figure this one out... I have tried many methods but not making progress at all...Your code does work by the way.. It sends and receives the data without issue.. but getting it all repackaged for a MySensors plugin isn't happening for me..
I have taken the binary switch recipe and I am using that so that it will turn on on/off based on the BT id it sees ..
I might start a fresh tonight.. Ill post any updates if I make progress on it..
-
RE: Bluetooth Proximity Sensor
@NotYetRated On one side I agree as this is what I have done for the passed few years
The problem is, this is unreliable..
but this along with that will make a more robust system..See imagine.. I have one at each door...
I know when I am in the sitting vs the kitchen vs the bedroom..
now my squeezelite music system follows me.. the lights follow me... and more..- EG - click vol up on my phone adjusts the volume in that room alone....
-
RE: Bluetooth Proximity Sensor
ah. that would explain why I cant get the module to return is device info
-
RE: Bluetooth Proximity Sensor
@hek
Thanks - Sorry to hear you killed it.. Its why I alway buy two of everything.. one to kill/learn and one to useI have the HC-06
I noticed you are using the KEY connection... I didn't connect that at all... I will give your code a whirl -
RE: Bluetooth Proximity Sensor
@hek
Did you get anywhere with this? I am trying in vain.. the issue I see is that the BT module and the RF module are both serial outputs/inputs..
struggling to get off the ground on this -
RE: 3-in-1 Humidity Temp and Motion
No its not affected as the temp sensor is on the outside of the case along with the motion sensor
-
RE: My sensorboard MYS 1.0beta
@Mrlynx
I would be interested in buying a few of these off you.. -
RE: 3-in-1 Humidity Temp and Motion
@chilump
Yes of course... I'll update the original post shortly..EDIT: UPDATED
-
RE: 3-in-1 Humidity Temp and Motion
no. usb charger powered. No idea where to start with battery powering this stuff
-
3-in-1 Humidity Temp and Motion
I am wanted to share my 3-in-1 sensor in case its of use to anyone
Its really just a combination of what's already availableI used the following hardware:
Arduino Nano LINK - Gave me both 3.3v and 5v output without having to mess with extra hardware(steppers)
1 x Motion Sensor LINK
1 x DHT22 LINKConnections is as all other guides except:
Motion Sensor digital to Pin D3
and the DHT to Pin D4Here is my code
#include <SPI.h> #include <MySensor.h> #include <DHT.h> #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 #define CHILD_ID_MOT 2 // Id of the sensor child #define HUMIDITY_SENSOR_DIGITAL_PIN 4 #define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define INTERRUPT DIGITAL_INPUT_SENSOR-2 // Usually the interrupt = pin -2 (on uno/nano anyway) unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) MySensor gw; DHT dht; float lastTemp; float lastHum; boolean metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); MyMessage msgMot(CHILD_ID_MOT, V_TRIPPED); void setup() { gw.begin(); dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); // Send the Sketch Version Information to the Gateway gw.sendSketchInfo("Humidity/Motion", "1.0"); pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input // Register all sensors to gw (they will be created as child devices) gw.present(CHILD_ID_HUM, S_HUM); gw.present(CHILD_ID_TEMP, S_TEMP); gw.present(CHILD_ID_MOT, S_MOTION); metric = gw.getConfig().isMetric; } void loop() { // Read digital motion value boolean tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; Serial.println(tripped); gw.send(msgMot.set(tripped?"1":"0")); // Send tripped value to gw delay(dht.getMinimumSamplingPeriod()); float temperature = dht.getTemperature(); if (isnan(temperature)) { Serial.println("Failed reading temperature from DHT"); } else if (temperature != lastTemp) { lastTemp = temperature; if (!metric) { temperature = dht.toFahrenheit(temperature); } gw.send(msgTemp.set(temperature, 1)); Serial.print("T: "); Serial.println(temperature); } float humidity = dht.getHumidity(); if (isnan(humidity)) { Serial.println("Failed reading humidity from DHT"); } else if (humidity != lastHum) { lastHum = humidity; gw.send(msgHum.set(humidity, 1)); Serial.print("H: "); Serial.println(humidity); } // Sleep until interrupt comes in on motion sensor. Send update every two minute. gw.sleep(INTERRUPT,CHANGE, SLEEP_TIME); }
If anyone wants more info please ask.. I will put up pictures or diagrams if needed
-
Bluetooth Proximity Sensor
Has anyone done a proximity sensor using bluetooth. I have ordered the parts and I am considering this code here and adapting it to something I can use in Vera.. but I really have no idea what I am doing.. I only ordered the parts yesterday so can't really kick this off till next week.
Just thought i'd ask if anyone else accomplished this already..
Goal:
Detect my phone
Tell Vera I am at home.I guess my initial idea is to have it find the phone and set some soft of binary switch in vera to say on/off home/away
This is not my code... just what I am starting with...
#include // The ID's I found during the set up, // change these value's to match your Bluetooth Devices char cell[] = "E4EC1064DAE4,5A0204"; char laptop[] = "2C8158B16919,6E010C"; unsigned long lastTime; unsigned long interval = 10000; void setup() { Serial.begin(115200); // Begin the serial monitor at 9600bps Serial1.begin(115200); Serial1.println("---"); // make sure the device is not in command mode Serial.println("Started...."); } void loop() { // Get current millis(); unsigned long currentTime = millis(); // Check if its already time for our process if((currentTime - lastTime) > interval) { lastTime = currentTime; // Enter command mode Serial1.print("$$$"); //Wait a bit for the module to respond delay(200); // Start the inquiry scan Serial1.println("IN,2"); delay(5000); int h = Serial1.available(); if(h >= 42) { // we know there is a bluetooth device char *id = readSerial(h); char *str; while((str = strtok_r(id, "\n", &id)) != NULL) { if(strncmp(str, cell,19) == 0) { Serial.print("Found Fritz cellphone with id: "); Serial.println(str); } else if(strncmp(str,laptop,19) == 0) { Serial.print("Found Fritz laptop with id: "); Serial.println(str); } } } else if(h <= 21) { // we know there is no bluetooth device Serial.println("No device found"); } Serial1.println("---"); } clearAll(); } void clearAll() { for(int i = 0; i < Serial1.available(); i++) { Serial1.read(); } } // a bit hacked... char* readSerial(int h) { char input; char buffer[100]; if (Serial1.available() > 0) { int j = 0; for (int i = 0; i < h; i++) { // the id's start at char 21, se we copy from there input = (char)Serial1.read(); if(i >= 21) { buffer[j] = input; buffer[j+1] = '\0'; j++; } } return buffer; } else { return "No Data"; } }