Hello,
I have plans to build myself a solar powered wireless Geiger counter using a RH Electronics Arduino IDE Geiger counter connected via a serial connection through a logic level converter to a 3.3V ATmega328P-AU Pro MCU with an ESP8266 serial WiFi tranceiver to send the readings from the Geiger counter to radmon.org.I intend to connect the hardware together something like this,
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 }; // MAC ADDRESS OF YOUR ETHERNET ADAPTOR
IPAddress ip(192,168,0,5); // YOUR IP
IPAddress server(82,165,208,105); // RADMON.ORG IP, CHECK THIS
EthernetClient client;
void init_ethernet()
{
// give the ethernet shield a second to initialize:
delay(1000);
Ethernet.begin(mac, ip);
delay(1000);
}
void connect()
{
if (client.connect(server, 80))
{
client.print("GET /radmon.php?function=submit&user=");
client.print(UserName); client.print("&password=");
client.print(PassWord); client.print("&value=");
client.print(int(f_value[CPM]));
client.print("&unit=CPM");
client.println(" HTTP/1.0");
client.println("HOST: radmon.org");
client.println();
}
else
{ // you didn't get a connection to the server: }
}
I would be most greatful if anyone could offer any useful advice or give me any help in getting the script to work.
For more deatil: Solar powered wireless Arduino based Geiger counter porject.