Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Arduino Ethernet and Google Analytics!? on: April 03, 2014, 06:31:15 am
I think this could work
https://developers.google.com/analytics/devguides/reporting/realtime/v3/

It's very fast to retrieve data from it, but how to implement realtime api to Arduino?

I was looking this but would like to do it without any PHP, just with Arduino:
http://homemadegadgets.de/google-analytics-lcd-im-nutella-glas/2011/09/26/
2  Topics / Science and Measurement / Re: SODAQ - a nice Arduino Low Power Wireless Data Logging Project on: February 24, 2014, 03:01:01 pm
Are boards delivered and Sodaq works ok? Can I add gsm-board to it? Any comments?
3  Using Arduino / Networking, Protocols, and Devices / Re: nrf24l01 radios + RF24 library + Ethernet shield do not work together on: December 06, 2013, 02:08:47 am
Hello! I have used these around 1 year no problems

Having following Arduino (clone) 1280 <--> NRF24L01:
51: MOSI
GND: GND
52: SCK
50: MISO
48: CE
49: CSN
3V: VCC
GND: GND
Pin6 is connected to 433Mhz transmitter
Pin22 has thermometers (2pcs)
w5100 network board is normally attached to default pins of 1280, not yet any other problems than this is slow...

But I have problems with 433Mhz receiver:
Pin5 is connected to 433Mhz receiver (not used but just connected, sometimes Arduino hangs), receiver is 5v.
Also tried to connect 433Mhz receiver to Pin2 (interrupt 0), but same not good results. So not using receiver currently,just transmitter

Edit: oh, I noticed now you are using UNO, not mega
4  Using Arduino / Programming Questions / Re: Alternatives to Pachube/Cosm on: December 01, 2013, 01:11:06 pm
This seems to be quite ok
http://www.grovestreams.com  smiley

I hope it woult stay free for small usage users
5  Using Arduino / General Electronics / Re: Is this 6v battery appropriate to run an Arduino? on: November 24, 2013, 02:22:05 pm
I have similar battery. I also have one 9v 3W panel, which I was planning to use with this
http://oi39.tinypic.com/156d2l1.jpg
"Juta CMP-03 3A 6V:3A 6V without light and timer control,just charge and discharge"

But I was wondering how big battery and panel I would need to run at least one hour per day:
- tplink 703
- usb 3G modem huawei e220
- arduino mega 2560 with ethernet shield 5100, and temperature & maybe other small sensors

TPLINK 703: This router is standardly powered via USB at 5V. The voltage regulator
inside is unknown, but its input voltage should be at least between 3.7V - 5.5V,
but not over 5.5V. The device will get damaged at too high voltages*. Maximum current
draw at 5V is 185mA (OpenWrt boot), average current draw with WiFi at 18dBm is 100mA,
without WiFi 80mA. Hence the average router power consumption is 0.5W, which is incredibly low.
Power consumption will be higher if a USB device is attached to its USB port


I was planning to use this to monitor temperature of lake water. So maybe there could be a timer between battery and arduino & tplink (not sure how to build such, or buy ready made module). I mean after measurements it could switch itself off,

Or maybe better to use some smaller arduino like Nano or Mini Pro and gsm/gprs-shield sim900?
6  Using Arduino / Sensors / Pressure sensor for water well tank? on: November 03, 2013, 01:17:33 pm
Hi! I have a water tank like this, slightly smaller but it's working similar way
http://en.wikipedia.org/wiki/File:Water_well_tank.JPG

I would like to add pressure sensor to monitor if problems in water pipes or in system, I could see if pressure is for example below 1.5bar. But I've problems to find proper sensor, or maybe I just need to buy similar like this (controlling of pump has already one here) and connect to Arduino instead of mains voltage:
http://cse-distributors.co.uk/controlgear/kp_kpi_pressure_switch.htm

Better ideas?
7  Using Arduino / Project Guidance / Re: Chosing a Arduino to build an automated watering system on: July 05, 2013, 07:52:11 am
The more difficult part for me would be coming up with a reliable way to store 1.2 months worth of fresh water for the pump to draw from. Have you done measurements to know how much your plants take in an average week?

.. if storing water for drinking, not just plants we could use product like this?
http://www.katadyn.com/en/katadyn-products/products/katadynshopconnect/katadyn-micropur-micropur-classic/micropur-classic-mc-10000p/
Simple and safe. Ideal for vacations and travelling. Micropur Classic inactivates bacteria in water tanks and containers. It is ecologically friendly and keeps water free from germs, algae and odours. Silver ions preserve water for up to 6 months. Technology: Silver ions

But not sure how plants will like it, maybe not good?

8  Using Arduino / Project Guidance / Re: Chosing a Arduino to build an automated watering system on: July 05, 2013, 07:48:56 am
Second easiest would be to use battery power.  Exactly how much power you need depends on whether you decide to do the shields, whether you decide to try to program it to go to sleep most of the time, how much the pump ends up using, and how long and how often the pump has to run.  If you have access to a nice deep cycle marine battery, your troubles are over.  6V Lantern batteries would work.  

I think this is interesting topic. I have here larger demand, summer vacation home where no mains power, just solar. Water well is quite deep, around 7-8 meters. I have used this 12v pump, delivery head 10 m, 2.5 - 3.8 A, http://www.conrad.com/ce/en/product/539074/
which can pump water without problems around 15 liter / minute if used directly with 100w solar panel and full sun light

But if no sunlight, then problems without battery... How big battery I should have so that could pump for example 100 liter water at once? I have tried to find suitable 12v deep cycle batteries

I have also ideas to use
- 12v pump (please add info to this thread if you know more robust pumps like my Barwig 12V)
- 100w panel (with 40w it didn't work, too deep well)
- maybe this timer? http://www.buyincoins.com/item/11336.html "LCD Digital Power Programmable Timer AC 12V 16A Time Relay Switch"
- or this one http://dx.com/p/wireless-led-single-color-dimmer-w-remote-controller-dc-12-24v-126709 (seems to work with 315Mhz or 433Mhz frequency and maybe could control this switch with Arduino)

Of course could pump water only when sun is shining and use floating switches
http://www.buyincoins.com/item/5063.html
to control pump off and on. Maybe that's better if purpose is just to water plants. Pump can deliver water to storage tank which is located higher than plants, and pump just when sun is shining. Later next days moisture sensor can open water pipe to deliver water from tank to plants, maybe use also this (seen cheaper than DX),
http://dx.com/p/fs03-water-flow-sensor-black-hot-water-type-217267
9  Using Arduino / Networking, Protocols, and Devices / Re: Wireless extender vs. router on: June 15, 2013, 02:53:50 pm
I've used this extender
http://www.trait-tech.com/product/T-NB-1001__wireless-n-wifi-repeater-router-range-expander-for-wlan-network.html

I got ok results, but have to say this extender could be better (for example does not have connection for external / proper antenna).. So I can not recommend it...

I've currently Asus router as wireless router + extender + TP Link 703 (external antenna mod) and Arduino connected to rj45 of 703 with 5100 shield..
Maybe I should connect yagi-antenna to tp-link 703 and try directly to Asus..
10  Using Arduino / Project Guidance / Re: Receiving digital input/SMS or email output on: March 18, 2013, 03:17:57 pm
I've been trying to use smpt2go ...
I've searching this forum and also with google..
but have got just this error:

smtpcorp.com ESMTP Exim 4.72 Mon, 18 Mar 2013
250-smtpcorp.com Hello *****
250-SIZE 52428800
250-PIPELINING
250-AUTH CRAM-MD5 PLAIN LOGIN
250-STARTTLS
250 HELP
334 **base64username**
334 **base64pwd**
535 Incorrect authentication data
250 OK
550 relay refused *@gmail.com/* unauthenticated
503-All RCPT commands were rejected with this error:

My code is

if (client.connect(server_email,2525)) {
    Serial.println("connected to email server");
    delay(1000);
    client.println("EHLO myusername 1.2.3.4);
    client.println("AUTH LOGIN");                         
    // used this to base64:"http://base64-encoder-online.waraxe.us/"
    delay(1000);
    client.println("base64codedusername");       
    delay(1000);
    client.println("base64codedpwd");                                                   
    delay(1000);
    client.println("MAIL FROM:<myaddress@gmail.com>"); 
    delay(1000);
    client.println("RCPT TO:<myaddress@gmail.com>");
    delay(1000);
    client.println("from:myaddress@gmail.com");
    delay(1000);
    client.println("to:myaddress@gmail.com");
    delay(1000);
    client.println("SUBJECT: Testing subject to arduino ethernet shield");
    delay(1000);
    client.println("This is the line body.");
    delay(1000);
    client.println(".");
    delay(1000);
    client.println(".");
    delay(1000);
    client.println("QUIT");
    delay(1000);
    }
    eRcv();
  } else {
    Serial.println("connection failed to smtp2go");
 
I have also tried to replace all delay(1000) with
          for(int i=0; i<999; ++i){
      if(client.read() > 0)     
      break;

What can be wrong?
11  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: February 01, 2013, 04:09:48 pm
Having following Arduino (clone) 1280 <--> NRF24L01, hopefully I checked these ok:
51: MOSI
GND: GND
52: SCK
50: MISO
48: CE
49: CSN
3V: VCC
GND: GND
Pin6 is connected to 433Mhz transmitter
Pin5 is connected to 433Mhz receiver (not used but just connected)
Pin22 has thermometers (2pcs)
w5100 network board is normally attached to default pins of 1280, not yet any other problems than this is slow...

Some parts of my currently ugly code:
#include <ERxPachube.h>
#include <SPI.h>
#include <Client.h>
#include <Ethernet.h>
#include <Server.h>
#include <Udp.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <NexaTransmitter.h>
#include <RF24Network.h>
#include <RF24.h>

--- clip -- ... and so on
byte mac[] = { 0xE8, 0xB3, 0x3A, 0x30, 0x41, 0x65};
IPAddress ip(192,168,1,13);
IPAddress device(192, 168, 1, 13); // Only if useDhcp is false
IPAddress gateway(192, 168, 1, 1); // Only if useDhcp is false
IPAddress subnet(255, 255, 1, 0); // Only if useDhcp is false
IPAddress dnsIP(192, 168, 1, 1); // Only if useDhcp is false
int ONE_WIRE_BUS = 22 ;
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
DeviceAddress thermometer;

//radio:
RF24 radio(48,49);
RF24Network network(radio);
const uint16_t this_node = 0;
const uint16_t other_node = 1;

struct payload_t
{
  unsigned long ms;
  unsigned long counter;
};

void setup(){
      
Ethernet.begin(mac, ip,dnsIP,gateway,subnet);
  pinMode(ledPin, OUTPUT);  
   dataout.addData(0);
   dataout.addData(1);
   dataout.addData(2);
pinMode(txPin, OUTPUT);
// clip enabling Nexa 433Mhz  ---
NexaTransmitter remote(6,  12345678); // Create the nexa remote on pin6 with remote id
// radio up:
  SPI.begin();
  radio.begin();
  network.begin(/*channel*/ 90, /*node address*/ this_node);
// end setup
//After that there is void loop(), having things like:
  network.update();
  while ( network.available() )
  {
    // If so, grab it and print it out
    RF24NetworkHeader header;
    payload_t payload;
    network.read(header,&payload,sizeof(payload));
    Serial.print("Received packet #");
    Serial.print(payload.counter);
//and so on
}

Here screenshot how test version is currently working, I go to web page, then it at least somehow shows current temperature 25,12'C from sensor connected directy to Mega1280 but also 22'C received from 2.4Ghz sensor. It's sending those values to Cosm and 433Mhz switches are controlled by http GET commands

12  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: January 04, 2013, 04:18:15 pm
Thanks much this thread, PaulS and Pico, I got this working at least some way. Now I've Mega which has W5100 ethernet to connect Cosm, and with 433Mhzh transmitter to control Nexa by using it's webserver, and now also nRF24L01+ to read temperatures from Nano with nRF24L01+ ds18b20. This works ok but code looks bad, I think I need to use interrupts, more studying  smiley-roll


13  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: December 27, 2012, 02:46:37 pm
I wonder this, if I do this in code:

radio.begin();
radio.setRetries(15,15);
radio.setPALevel(RF24_PA_LOW);
radio.setDataRate(RF24_250KBPS);
radio.setPayloadSize(10);
radio.setChannel(10);
radio.setAutoAck(true);
radio.printDetails();

It's still showing this when I look status of module:
Data Rate        = 1MBPS
Model            = nRF24L01
CRC Length       = 16 bits
PA Power         = PA_HIGH

Should radio.setDataRate(RF24_250KBPS); affect immediately?
14  Using Arduino / Networking, Protocols, and Devices / Re: Help with RF24Network and nRF24L01+ on: December 23, 2012, 06:05:43 am
Thank you very much, I didn't know this. I need to read now more documentation and hopefully can attach temperature/humiditu sensors
15  Using Arduino / Networking, Protocols, and Devices / Re: Help with RF24Network and nRF24L01+ on: December 22, 2012, 10:27:36 am
Beginner question. I have not managed to get hardware working, I tried examples Maniacbug pingpair and GettingStarted

‹I wonder why serial monitor is giving garbage like following
¬ú+>°ù„»»nfú»Ø~%:» ܄;;8>…!7ã8:i»†©>Ã))W(b9´:c»Ž¯‰…Öˆfè

Hardware is
Arduino Nano ATMega328 (also tried with another Nano ATMega168, and other similar radiomodule)
SCK=13, MOSI=11, MISO=12.
CSN=D9, and D10 for CE, vcc=3.3V, ground in module = ground in arduino

I have not connected IRQ to anything, should I...

Module is like in this photo (but I need to maybe check chip version?)


Could this be caused by power problem? I have connected Arduino just with USB-cable, not any external power. Arduino is working fine if I try with temperature and network module. But just if I remove all modules, then connect nrf24l01 and try examples I can not get this working, I think radio.printDetails(); is giving garbage(?)
Pages: [1] 2