Skip to content

My Project

Show off and share your great projects here! We love pictures!
964 Topics 13.5k Posts
  • Solar (H2O) Shop Heater

    flow sensor solar heater pressure sensor
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Monitor a irrigation status

    2
    0 Votes
    2 Posts
    2k Views
    TD22057T
    Yes - but you have to protect the arduino from that high voltage. Best way is with a small optocoupler chip (I use EL817 chips which you can get for practically nothing). There is an excellent explanation in the first answer on this post on stackExchange. You may have to adjust the resistors because of the higher voltage. I've included the schematic below (it's a good idea to read the answer though).[image: 1449852329528-lp5m2.png]
  • 'MySensoring' a Kidde Smoke Detector. (Completed)

    smoke detector
    30
    0 Votes
    30 Posts
    24k Views
    macieiksM
    Hello, If I want to use this code on Arduino Mega2560 with support of 4 smoke sensors only thing I need to do is to create "arrays" ? Regards, Maciek
  • Slim CR123A (2AA) battery node..

    motion sensor
    11
    4 Votes
    11 Posts
    10k Views
    ahmedadelhosniA
    @m26872 The link is helpful and I understand now. Thanks
  • 2 Votes
    9 Posts
    8k Views
    sundberg84S
    --- New question on this old post This node has started to behave strange. There is three sensors and lux is working 100% but DHT and LM393 stops working from time to time. It can suddenly stop sending these two values for 24 hours, and then they are back online again. Lux sensor works all the time. Havent bothered to do a serial log yet since its outside and working most of the time - but any thoughs anyone?
  • LED On & OFF Problem

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 1 Votes
    56 Posts
    29k Views
    S
    @korttoma The only difference I see is that you put the entire url with parameters in the first argument of the http.request call and "run=run" as the second (don't know why you have that?). I use the base url as the first argument and the field list as the second r, s = http.request(baseUrl, "field1=XX&field2=XX") Hope that fixes the issue. Also You have to setup the "Channel" and "Plugin" in the website accordingly and name the fields there.
  • bluetooth instead of wifi

    7
    0 Votes
    7 Posts
    3k Views
    TmasterT
    This is a interesting discussion, despite there are no proves that wi-fi its not safe... wifi routers uses so low power that in 20 m and a wall,signal is gone. Myself already serched about problems on wifi ,before have wi-fi and use wireless arduinos(nrf24..) ,but know i think its senseless. before of all you shoud read how this "world" works. because compare nrf24l01 card with wifi is like compare a bicycle with a car... on temperature sensor for example ,each command activate the card for milisenconds and sleep again during 10 minutes (in my case). i guess put your head in to the sun makes more dammage and get more radiation thant this.... :)
  • 0 Votes
    5 Posts
    3k Views
    mfalkviddM
    Link to the PR in case someone wants to find it later: https://github.com/mysensors/Arduino/pull/261
  • mq-135 sensor Arduino code

    3
    0 Votes
    3 Posts
    11k Views
    epierreE
    tsss.... have a look here: http://forum.mysensors.org/topic/147/air-quality-sensor/ and here: https://github.com/empierre/arduino/blob/master/AirQuality-MQ135.ino
  • [contest] My Gateway

    18
    4 Votes
    18 Posts
    23k Views
    O
    @Newzwaver All hardware except 433MHz antenna is from MySensors "Store". I found the antenna on ebay and the box for everything is bought here in Sweden (http://www.kjell.com/se/sortiment/el/elektronik/elektroniklador/ventilerad-inbyggnadslada-95x135-mm-p89012)
  • My Shiny Gateway and Irrigation system sHiNyBoX! :P

    2
    7 Votes
    2 Posts
    2k Views
    blaceyB
    Great works - looks awesome! :+1: That said, you shouldn't need the extra coupling capacitor on the NRF24L01+ regulator because the coupling capacitor(s) are built in.
  • Controlling central heating, TV, lights and boiler over the internet

    5
    0 Votes
    5 Posts
    3k Views
    E
    @alexsh1 Many thanks Alexsh1 , I'm using ESP8266 chip with Arduino
  • Experimenting with cheap 433mhz gadgets

    10
    6 Votes
    10 Posts
    14k Views
    B
    Hello Dwalt ! thanks for your quick answer ! My remote is an old style Chacon with 8 buttons[image: 1447313244819-chacon-t%C3%A9l%C3%A9commande-face.jpg] [This remote has a 4 positions dip switch on the back (group 1 2 3 4) so i plan to put my 4 wall plugs on group 1 and my remote on group 2; with that, the plugs will be commuted by the mysensors rf433 emitter and the remote will send codes to my receiver mysensors without communicating directly with plugs] And my receiver is a "cheap" one but i will have a sperheterodyne in a few days (according yours tests) To receive my codes i use RCswitch library and this code: #include <RCSwitch.h> * RCSwitch mySwitch = RCSwitch(); void setup() { Serial.begin(9600); mySwitch.enableReceive(0); // Receiver on inerrupt 0 => that is pin #2 } void loop() { if (mySwitch.available()) { output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol()); mySwitch.resetAvailable(); } } With this i can read rf433 codes on serial but it don't send in mysensors.. thanks for your help, i wil try to understand how to modify your code
  • Raspberry data to > Mysensoors/Vera

    1
    0 Votes
    1 Posts
    910 Views
    No one has replied
  • Mapping your Personal Network

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Led Ring ideas?

    25
    0 Votes
    25 Posts
    12k Views
    Dave DanD
    Well, first of all thank you all for the help. I've been doing some tests this days ... also tried with the same configuration a relay node and had exactly the same issue. Well ... as soon as I changed the arduino to a 5V one, everything worked. Project completed. :) Thank you all!!!
  • AC diming

    16
    0 Votes
    16 Posts
    8k Views
    rvendrameR
    @FotoFieber , I use some 230V dimmable leds that I bought from IKEA in Germany about 1 year ago and and they work good. Some are Philips and some are IKEA-branded. Most important is the 'dimmable' word on them. Most of current led drivers are not designed for AC dimming, as this increase the unit costs (usually the driver is more expensive than the leds itself)...
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • motion and relay

    12
    0 Votes
    12 Posts
    6k Views
    D
    AC works thank you for your help #include <SPI.h> #include <MySensor.h> #include <Wire.h> #include <DHT.h> #include <SimpleTimer.h> #define CHILD_ID_HUM 1 #define CHILD_ID_TEMP 2 #define CHILD_ID_MOTION 3 #define CHILD_ID_RELAY 4 #define HUMIDITY_SENSOR_DIGITAL_PIN 4 #define MOTION_SENSOR_DIGITAL_PIN 3 #define INTERRUPT MOTION_SENSOR_DIGITAL_PIN-2 // Usually the interrupt = pin -2 (on uno/nano anyway) #define RELAY 7 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define RELAY_ON 0 // GPIO value to write to turn on attached relay #define RELAY_OFF 1 // GPIO value to write to turn off attached relay unsigned long SLEEP_TIME = 600000; // Sleep time between reads (in milliseconds) - 10mins MySensor gw; DHT dht; SimpleTimer timer; float lastTemp; float lastHum; boolean lastTripped; boolean metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); MyMessage msg(CHILD_ID_MOTION, V_TRIPPED); void setup() { // Initialize library and add callback for incoming messages gw.begin(incomingMessage, AUTO, true); dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); // Send the Sketch Version Information to the Gateway gw.sendSketchInfo("HumTempRelayMotion", "1.0"); // 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_MOTION, S_MOTION); gw.present(CHILD_ID_RELAY, S_LIGHT); pinMode(RELAY, OUTPUT); digitalWrite(RELAY, gw.loadState(RELAY)?RELAY_OFF:RELAY_ON); //Serial.begin(9600); timer.setInterval(30000, getMeasure); metric = gw.getConfig().isMetric; } void loop() { // Alway process incoming messages whenever possible gw.process(); timer.run(); boolean tripped = digitalRead(MOTION_SENSOR_DIGITAL_PIN) == HIGH; if (tripped != lastTripped) { lastTripped = tripped; Serial.print("M: "); Serial.println(tripped); gw.send(msg.set(tripped?"1":"0")); // Send tripped value to gw } } void incomingMessage(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT) { // Change relay state digitalWrite(message.sensor-CHILD_ID_RELAY+RELAY, message.getBool()?RELAY_ON:RELAY_OFF); // Store state in eeprom gw.saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } } void getMeasure() { 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); } } Insert Code Here

15

Online

11.8k

Users

11.2k

Topics

113.2k

Posts