Solar powered wireless Arduino based Geiger counter porject.


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
I intend to connect the hardware together something like this,

The bit I am struggling with, being a newcomer to the Arduino, is the script needed for the transfer of the readings to They provide an example of a script for sending readings via an Arduino but I’m not at all sure what I’m doing with it. I have tried modifying it to meet my needs but just can’t seem to get it to work. I know I need to change the library include for the ESP8266 module instead of the ethernet shield but any other changes I’ve been guessing at without much luck in getting it to compile.
The example code,

#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:
    Ethernet.begin(mac, ip);

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.println(" HTTP/1.0");
    { // 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.


I have tried modifying it to meet my needs but just can't seem to get it to work.

Fancy tap dancing around the "it doesn't work" statement that is so lame.

What does "it" do? What do you expect "it" to do? Finally, what is "it"?