collapse

Author Topic: Solar Powered Weather Station Tx side  (Read 4105 times)

ossipee

  • Member
  • *
  • o
  • Posts: 86
Solar Powered Weather Station Tx side
« on: September 20, 2015, 03:02:05 PM »
This is a work in progress weather station with wireless transmitting, it is made using cheap components, so here is a list of components all purchased off of ebay ecept for my trusty genuine arduino dumelnove, which will be replaced with a $4 uno clone off ebay in the final project. Still need to build enclosures for both the indoor and outdoor units. It is based on this instructable.
http://www.instructables.com/id/SOLAR-POWERED-ARDUINO-WEATHER-STATION/?ALLSTEPS


materials
3.7V usb lithium charger ebay http://tinyurl.com/oeztvuv $0.99 (Alice combines shipping most of the time so grab a few things)
5.5V 266 ma solar panel http://tinyurl.com/phxygm5 $6.99
3.7V 5000 mah battery http://tinyurl.com/o2pougo (10) for $12.00, you only need one but I'm a hoarder
battery holder, thease are bigger than a AA http://tinyurl.com/nsyenwo (2) for $4.00, I got them cheaper but that seller is gone
3.7V to 5V boost converter http://tinyurl.com/pefbr4h $0.99
arduino nano http://tinyurl.com/oyslydp $3.16 shipped
DHT-22 temp humidity sensor http://tinyurl.com/p9mfmum $3.30 shipped
433MGH RF transmitter receiver pair http://tinyurl.com/p9jczs2 $1.06 shipped seen for $0.99 shipped
Antenna to boost range, range is short without it 20' http://tinyurl.com/oyn7t7m (10) for $1.74 shipped, jinxy find thanks jinx
Diode for solar panel, I had a bunch in stock.
Completed Transmitter range is over 50' threw the outside wall of my house, and run time on a charged battery is over 48 hours, I need to test and see if one solar panel is enough or if I need to add a second one.

Let's edit I need a second panel or to track the sun, lasted a bit over a week with just 1 panel pointed in a fixed direction. Now it takes till afternoon to charge up and I get reading till the Batt dies again.

Some code

/*Weather Station Transmitter*/
#include <VirtualWire.h>
#include "LowPower.h"
#include "DHT.h"
#define DHTPIN 8     // what pin we're connected to
#define DHTTYPE DHT22  // DHT 22
DHT dht(DHTPIN, DHTTYPE);
int ledPin = 13;
char Msg[30];// The string that we are going to send trought rf transmitter
 
void setup()
{
  dht.begin();  // initialing the DHT sensor
  pinMode(ledPin,OUTPUT);
  // VirtualWire setup
  vw_setup(2000); // Bits per sec
  vw_set_tx_pin(12);// Set the Tx pin. Default is 12
}
 
void loop()
{
 
  // Read and store Sensor Data
  int humidity = dht.readHumidity();
  int temp = dht.readTemperature();
  int f = dht.readTemperature(true);
  int hi_f = dht.computeHeatIndex(f,humidity); //heat index in fahrenheit
  int heat_index  =(hi_f-32)*5/9; // convert heat index to celcius
  sprintf(Msg, "%d,%d,%d", humidity,temp ,heat_index);
 // Turn on a light to show transmitting
  digitalWrite(ledPin, HIGH);
  LowPower.powerDown(SLEEP_1S, ADC_OFF, BOD_OFF);   // Instead of delay(1000);
 //delay(100);
  vw_send((uint8_t *)Msg, strlen(Msg));
  vw_wait_tx(); // Wait until the whole message is gone
 // Turn off a light after transmission
  digitalWrite(ledPin, LOW);
  // put 5 mins sleep mode
  // As lowpower library support maximam 8s ,we use for loop to take longer (5mins) sleep
  // 5x60=300
  //300/4=75
  for(int i=0;i<15;i++)
  {
  LowPower.powerDown(SLEEP_4S, ADC_OFF, BOD_OFF);    // Instead of delay(4000);
 //delay(4000);
  }
}

« Last Edit: September 29, 2015, 03:57:44 PM by ossipee »

Protowrxs

  • Member
  • *
  • Posts: 146
    • The Protowrxs World
Re: Solar Powered Weather Station
« Reply #1 on: September 23, 2015, 05:01:14 PM »
Nice Oss, I will have to follow along.

I have started building out my own weather capture stuff myself. Mainly wind speed, moisture, and temp/humidity right now, but I did a wire run to it using some old cable. The anemometer is kitchen ladles and a hall effect that has worked well. I should post it up as it's really simple and uses an interrupt to log it and VBScript to read and stuff it into a table.

Stephen
The past is done, the future is not here, live today...
My Bots: http://www.Protowrxs.com/robotics

DJUltis

  • Member
  • *
  • D
  • Posts: 34
Re: Solar Powered Weather Station
« Reply #2 on: September 26, 2015, 11:23:41 PM »
Been wanting to make a solar charging rig for the plantoids, maybe I can catch up with you soon. Gonna have lots of time in the winter to build I hope.

 

* Search


* Recent Topics

Autonomous RC car steers with CNN (deep learning) by maelh
[September 04, 2020, 01:43:24 PM]


The unnamed (yet) quatruped spider project by tinhead
[August 17, 2020, 02:05:48 PM]


"1984 Nixie Time" by 1 what
[May 08, 2020, 01:04:18 AM]


2D Side Scroller Cyberpunk themed by Killer Angel
[February 06, 2020, 06:39:40 AM]


A new wing design for model aircraft / drones by OddBot
[February 06, 2020, 04:42:06 AM]


SDR (Software Defined Radio) by Gareth
[February 02, 2020, 06:15:42 AM]


Circuit Math by ZeroMax
[January 31, 2020, 01:50:18 PM]


NanOMeter by Protowrxs
[January 01, 2020, 12:59:44 PM]


Investigating the VL53L0X Laser Rangefinder by erco
[December 30, 2019, 10:45:44 PM]


PS4 Single Handed Controller Deployed (part 7 of 7) by Gareth
[December 30, 2019, 09:52:29 AM]


"D" -Pad Workio just like Magic (Will Merlin stay or Go) (part 6 of 7) by Gareth
[December 30, 2019, 09:51:27 AM]


PS4 Joystick Digitals 4,5,6,7,10 - Analog's Lx,Ly,Rx,Ry Workio (part 5 of 7) by Gareth
[December 30, 2019, 09:50:37 AM]


Menu Workio ! (part 4 of 7) by Gareth
[December 30, 2019, 09:49:49 AM]


L1 trigger design Workio (Hori controller) (part 3 of 7) by Gareth
[December 30, 2019, 09:48:50 AM]


Hori aka PS4 Joystick Mappings (part 2 of 7) by Gareth
[December 30, 2019, 09:47:17 AM]

* Recent Posts

Autonomous RC car steers with CNN (deep learning) by maelh
[September 04, 2020, 01:43:24 PM]


Re: The unnamed (yet) quatruped spider project by tinhead
[August 17, 2020, 02:05:48 PM]


Re: The unnamed (yet) quatruped spider project by maelh
[August 17, 2020, 02:10:06 AM]


Re: The unnamed (yet) quatruped spider project by tinhead
[July 01, 2020, 04:22:11 PM]


Re: The unnamed (yet) quatruped spider project by jinx
[July 01, 2020, 04:06:19 PM]


Re: "1984 Nixie Time" by 1 what
[May 08, 2020, 01:04:18 AM]


Re: "1984 Nixie Time" by tomasp
[April 13, 2020, 06:03:28 PM]


Re: 2D Side Scroller Cyberpunk themed by Killer Angel
[February 06, 2020, 06:39:40 AM]


A new wing design for model aircraft / drones by OddBot
[February 06, 2020, 04:42:06 AM]


Re: "1984 Nixie Time" by Gareth
[February 02, 2020, 06:23:01 AM]


Re: SDR (Software Defined Radio) by Gareth
[February 02, 2020, 06:15:42 AM]


Re: SDR (Software Defined Radio) by ZeroMax
[January 31, 2020, 01:54:21 PM]


Re: "1984 Nixie Time" by ZeroMax
[January 31, 2020, 01:52:29 PM]


Circuit Math by ZeroMax
[January 31, 2020, 01:50:18 PM]


Re: 2D Side Scroller Cyberpunk themed by ZeroMax
[January 31, 2020, 01:45:33 PM]