Any help on implementing multiple sensors and readings on one Arduino would be appreciated.
andyuno
@andyuno
Best posts made by andyuno
-
implementing multiple sensors
-
RE: PCB Design and Production
I downloaded the Eagle free version, and watch all three videos. And i actually produce a usable circuit board.I found it's quite easy and quite straightforward and think that most people on this site will be able to actually produce a circuit board. The Software is quite intuitive and easy to use.
Latest posts made by andyuno
-
RE: Problem with node reciving data
@Dalhoj I know it's not much of a help that I've been trying to do pretty much the same thing and using the same statements you are and countering the same problems, I'm not a programmer or from a programming background but I try and understand as much as possible about what's going on but I just can't seem to get my head around it..
Kind regards. -
RE: smoke/lightlevel/humidty/temp/smoketest
@ikjes said:
just one of the build
sensor node with smoke detection, mess light level, humidty and temp
en also the posibl to remotly test the smoke detectorand spare for motion detector and trip
Great idea, like the way you've doubled the function of the smoke detector by utilising the space.
-
RE: Basic Lcd Node
@rvendrame thanks I think I get what you mean I'll give that a go still not sure if I'm On the right path.
-
RE: Basic Lcd Node
Having a bit of problem receiving Data from another node am I missing something here or do I need to add something to the transmitting node. Just can't think where to go from here. HELP! Please.
Andy.#include <SPI.h> #include <MySensor.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> #include <DHT.h> #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 #define CHILD_ID_LIGHT 2 #define HUMIDITY_SENSOR_DIGITAL_PIN 3 #define LIGHT_SENSOR_ANALOG_PIN 0 unsigned long SLEEP_TIME = 100; // Sleep time between reads (in milliseconds) (We do calculations and wait 5 ms between readings) int readingscounter = 0; MySensor gw; LiquidCrystal_I2C lcd(0x27, 16, 2); //DHT dht; float lastTemp; float lastHum; boolean metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); MyMessage msgLight(CHILD_ID_LIGHT, V_LIGHT_LEVEL); int lastLightLevel; void setup() { // Register all sensors to gateway (they will be created as child devices) gw.begin(); //DHT.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 3 // Send the Sketch Version Information to the Gateway gw.sendSketchInfo("Hum-Temp-Light-Lcd", "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_LIGHT, S_LIGHT_LEVEL); metric = gw.getConfig().isMetric; gw.present(CHILD_ID_LIGHT, V_HUM); gw.present(CHILD_ID_TEMP, V_TEMP); delay(3000); } void loop() { int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; Serial.println(lightLevel); if (lightLevel != lastLightLevel) { // gw.send(msg.set(lightLevel)); lastLightLevel = lightLevel; } lcd.init(); lcd.clear(); lcd.backlight() ; lcd.setCursor(0, 0); lcd.print("Temperature: "); lcd.print("C "); lcd.print(V_TEMP ); lcd.setCursor(0, 1); lcd.print("Humidity: "); lcd.print("% "); lcd.print(V_HUM ); }
-
RE: Basic Lcd Node
@FotoFieber Thank you for your response much appreciated I'm not much of a coder but I can feel my way through if I have examples to work from and this will help a bit .
Thank you Andy. -
Basic Lcd Node
Is there someone who can tell me where I'm going wrong, here I can't seem to get the data from another node, Am I missing something here or do I have to put something in on my transmitting node, not sure where to go from here. HELP! Please.
Thanks Andy#include <SPI.h> #include <MySensor.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> #include <DHT.h> #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 #define CHILD_ID_LIGHT 2 #define HUMIDITY_SENSOR_DIGITAL_PIN 3 #define LIGHT_SENSOR_ANALOG_PIN 0 unsigned long SLEEP_TIME = 100; // Sleep time between reads (in milliseconds) (We do calculations and wait 5 ms between readings) int readingscounter = 0; MySensor gw; LiquidCrystal_I2C lcd(0x27, 16, 2); //DHT dht; float lastTemp; float lastHum; boolean metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); MyMessage msgLight(CHILD_ID_LIGHT, V_LIGHT_LEVEL); int lastLightLevel; void setup() { // Register all sensors to gateway (they will be created as child devices) gw.begin(); //DHT.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 3 // Send the Sketch Version Information to the Gateway gw.sendSketchInfo("Hum-Temp-Light-Lcd", "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_LIGHT, S_LIGHT_LEVEL); metric = gw.getConfig().isMetric; gw.present(CHILD_ID_LIGHT, V_HUM); gw.present(CHILD_ID_TEMP, V_TEMP); delay(3000); } void loop() { int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; Serial.println(lightLevel); if (lightLevel != lastLightLevel) { // gw.send(msg.set(lightLevel)); lastLightLevel = lightLevel; } lcd.init(); lcd.clear(); lcd.backlight() ; lcd.setCursor(0, 0); lcd.print("Temperature: "); lcd.print("C "); lcd.print(V_TEMP ); lcd.setCursor(0, 1); lcd.print("Humidity: "); lcd.print("% "); lcd.print(V_HUM ); }```
-
RE: PCB Design and Production
Using through-hole & pants is fine for components i.e. NRF24l01. I found Eagle to have most of what I needed within the library but you can download more libraries by doing a search for Eagle libraries.
-
Displaying Radio information
Is there a way of displaying radio information with in Vera, from each node i.e. signal strength and ID.
-
RE: PCB Design and Production
This is my first printed circuit, refined a little, might actually get this one done.
If you upload your design to https://oshpark.com they will quote you for free boards and it will give you a good representation of what you're bored will look like how cool is that. -
RE: Requesting a sensor value from a different node?
@sansespere.. Nice work, I don't think I would've got most of that, now that should give me something to work from thanks.