Help for my project

Hey, my project is to make a radon detector with arduino zero. Also the LCD screen should show temperature and humidity. I have got a working code for the temperature and humidity, but how to do a code that it would also show the voltage of the radon build. if i have understood anything, i should change the volts to Bq/m3? I have no idea how to program the arduino that it would first show temperature and humidity for example 5 seconds and then it would show the voltage of the radon build. Please help :smiley:

// include the library code:
#include <LiquidCrystal.h>
#include "DHT.h"

// set the DHT Pin
#define DHTPIN 7

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);
  dht.begin();
  
  // Print a message to the LCD.
  lcd.print("Temp:  Humidity:");
}

void loop() {
  delay(500);
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // read humidity
  float h = dht.readHumidity();
  //read temperature in Fahrenheit
  float f = dht.readTemperature();
  case TIME:
   loop(break);
    
      

  

  if (isnan(h) || isnan(f)) {
    lcd.print("ERROR");
    return;
  }

  lcd.print(f);
  lcd.setCursor(7,1);
  lcd.print(h);  
}

Which sensor will be used to detect the radon ?

UKHeliBob:
Which sensor will be used to detect the radon ?

it will be pretty similar setup as this one. Quick Radon Detector for the Student

I am not clear how you would interface such a detector with the Arduino

You would need a digital interface so that you can count the number of particles detected over a period of time. The voltage output from the detector would ideally need to swing between 0V and 5V or near to it for every particle detected

Alternatively you could use an analogue input on the Arduino and have the detector output a voltage varying between 0v and 5V depending on the level of radon detected over a period

What experience do you have with electronics, do you understand the requirements and do you have the expertise, equipment and components to implement such an interface ?

This is a school project. I dont have earlier experience of arduino at all, and not much about electronics either.
Could you atleast give an example code, where two texts shop up after another with certain delay. Im probably the worst person on earth to learn programming.
Our teacher sent this message as a hint

  1. The measuring instrument shall be placed in a tightly closed space for a sufficient period of time or shall be placed in a space from which air can be removed. The radon concentration in a sealed box decreases over time to 0. This can take a long time The measuring device can be placed in a Minigrip bag, for example, where all the air is sucked out and the device is left to measure for a few days This gives a basic reading for the measuring device, ie which voltage corresponds to a reading of 0 Bq / m3 This can also be called an offset reading (the reading at which the measuring device can be set to 0) For example, 1.5 V can correspond to a reading of 0 Bq / m3 in the measuring device
  2. The second measurement is made in the laboratory (eg project room fume cupboard door open) at the same time as the laboratory's Radon measuring device (AirThings) The AirThings measuring device (Bq / m3) is left in the same room long enough with its own measuring device (eg days or weeks) The AirThings meter reading (Bq / m3) now corresponds to the voltage reading of the self-built meter AirThings will be left in the fume cupboard of the project room and your own device can be placed there alongside AirThings and other measuring devices. Pick up later after it has been there long enough. For example, 3.0 V can correspond to a reading of 32 Bq / m3 on the measuring device

UKHeliBob:
I am not clear how you would interface such a detector with the Arduino

You would need a digital interface so that you can count the number of particles detected over a period of time. The voltage output from the detector would ideally need to swing between 0V and 5V or near to it for every particle detected

Alternatively you could use an analogue input on the Arduino and have the detector output a voltage varying between 0v and 5V depending on the level of radon detected over a period

What experience do you have with electronics, do you understand the requirements and do you have the expertise, equipment and components to implement such an interface ?


:arrow_up:

UKHeliBob:
I am not clear how you would interface such a detector with the Arduino

You would need a digital interface so that you can count the number of particles detected over a period of time. The voltage output from the detector would ideally need to swing between 0V and 5V or near to it for every particle detected

Alternatively you could use an analogue input on the Arduino and have the detector output a voltage varying between 0v and 5V depending on the level of radon detected over a period

What experience do you have with electronics, do you understand the requirements and do you have the expertise, equipment and components to implement such an interfa

Our build looks pretty same as in this video. how to build a geiger counter / radiation detector from household materials - YouTube

svartzonker:
it will be pretty similar setup as this one. Quick Radon Detector for the Student

When you have this built and operating, you will need to amplify the tiny signal, probably with an op-amp so the Arduino can actually recognize a digital signal from the sensor. Notice how low the current setting is on the meter.
Paul

Might be a good idea to edit the subject heading on your first post to something useful! :astonished:

Could you atleast give an example code, where two texts shop up after another with certain delay.

Here is the BlinkWithoutDelay example

const int ledPin =  LED_BUILTIN;// the number of the LED pin
int ledState = LOW;             // ledState used to set the LED
unsigned long previousMillis = 0;        // will store last time LED was updated
const long interval = 1000;           // interval at which to blink (milliseconds)

void setup()
{
  pinMode(ledPin, OUTPUT);
}

void loop()
{
  unsigned long currentMillis = millis();
  if (currentMillis - previousMillis >= interval)
  {
    previousMillis = currentMillis;
    if (ledState == LOW)
    {
      ledState = HIGH;
    }
    else
    {
      ledState = LOW;
    }
    digitalWrite(ledPin, ledState);
  }
}

Change it to put a different message on a screen depending on the current state instead of turning an LED on or off