Help Me to find coding for geiger counter portable M4011 models NGMC V1

:confused:

help me to find coding for geiger counter portable models m4011 ngmc v1, My deadline for my thesis menyeleseikan I made a radiation monitoring system and I buy geiger counter m4011 models ngmc v1, but I can not use it because I do not know coding, I've tried using the coding of other products but can not, so I beg the master to help me find the coding for geiger counter m4011 mopdel ngmc v1 product of cajoe

Hi, Have you googled

also try here;

https://forum.arduino.cc/index.php?topic=336041.0

Tom.... :)

thanks for its support, but if I use the coding result obtained is always 0, but already I gave the radioactive material, and geiger tube was responding but the result value is always 0

Hi,
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom… :slight_smile:

You've seen this ? https://forum.arduino.cc/index.php?topic=336041.0

Edit. I didn't see TomGeorge posted the same link earlier. Sorry.

thisi is my code

#include <SPI.h>
#include <SoftwareSerial.h>
#define LOG_PERIOD 15000     //Logging period in milliseconds, recommended value 15000-60000.
#define MAX_PERIOD 60000    //Maximum logging period


unsigned long counts;             //variable for GM Tube events

unsigned long cpm;                 //variable for CPM

unsigned int multiplier;             //variable for calculation CPM in this sketch

unsigned long previousMillis;      //variable for time measurement

 

void tube_impulse(){               //procedure for capturing events from Geiger Kit

  counts++;

}


void setup(){                                               //setup procedure
 Serial.begin(9600);
 
  Serial.print("Radiation Monitoring "); 
 
  
  Serial.println();
delay(3000);
  Serial.write("at\r\n");
  delay(250);
  Serial.write("at+httpterm\r\n");
  delay(250);
  Serial.write("at+sapbr=0,1\r\n");
  delay(5000);
  Serial.write("at+sapbr=3,1,\"contype\",\"gprs\"\r\n");
  delay(1000);
  Serial.write("at+sapbr=3,1,\"apn\",\"telkomsel\"\r\n");
  delay(250);
  Serial.write("at+sapbr=1,1\r\n");
  delay(10000);
  Serial.write("at+sapbr=2,1\r\n");
  delay(250);
  Serial.write("at+httpinit\r\n");
  delay(250);
  Serial.write("at+httppara=\"cid\",1\r\n");
  delay(250);
  counts = 0;

  cpm = 0;

  multiplier = MAX_PERIOD / LOG_PERIOD;      //calculating multiplier, depend on your log period

  Serial.begin(9600);                                    // start serial monitor

 // uncommennt if you have time-out problem to connect with Radiation Logger
 //  delay(2000);
 //  Serial.write('0');                                      // sending zero to avoid connection time out with radiation logger
 //  delay(2000);
 //  Serial.write('0');                                     // sending zero to avoid connection time out with radiation logger

  pinMode(6, INPUT);                                   // set pin INT0 input for capturing GM Tube events

  digitalWrite(6, HIGH);                                 // turn on internal pullup resistors, solder C-INT on the PCB

  attachInterrupt(0, tube_impulse, FALLING);  //define external interrupts

}

 

void loop(){                                               //main cycle
   
  unsigned long currentMillis = millis();

  if(currentMillis - previousMillis > LOG_PERIOD){

    previousMillis = currentMillis;

    cpm = counts * multiplier;
Serial.write("at+httppara=\"url\",\"http://database-radiasi.16mb.com/input.php?gamma=");
  Serial.print(cpm);
    Serial.write("\"\r\n");
    delay(200);
    Serial.write("at+httpaction=0\r\n");
    delay(3000);
    Serial.write("at+httpread\r\n");
    delay(10000);
                                      // send cpm data to Radiation Logger

    counts = 0;

  }

}

no error but the result always 00000 ,and not random
i hpe you can help me
thank you

Hi, Thanks for the pictures, but we need a circuit diagram of how you have connected the counter to the arduino?

Thanks.. Tom.. :) Can you indicate where the output of the counter is on the picture please and do you have any documentation on it?

Hi,
Found this in the thread I linked.
JL6rw2gi.jpg
Tom… :slight_smile:

I do not use port (interface to PC audio input) and (two power inputs), does it matter? I do not understand you mean but I only use 3 pins in the module m4011 ngmc v1 geiger counter, namely ground, 5v and vin, other than that I do not use it

Hi, How do you use the Vin, how do you connect it to the arduino. Have you got Vin connected to the digital pin 6?

Please a wiring diagram showing how the arduino is connected to the counter.

Tom... :)

yes i connect vin with a pin 6 on my artificial arduino,
sorry I do not have the diagram, I just try to assemble themselves according to the video that I see,
because the module reference geiger tube m4011 ngmc v1 does not exist, therefore, my friend and I tried to assemble these tools as much as possible

this is the photo

Hi;

Thanks, so its a 328 in minimum component use. Is the 0 reading at the radio logger, or at the 328? Are you sure your radio link is transmitting valid data?

PLEASE! !! Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Tom..... :)