element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
In the Air Design Challenge
  • Challenges & Projects
  • Design Challenges
  • In the Air Design Challenge
  • More
  • Cancel
In the Air Design Challenge
Blog AirMobile - 8 - NO2 Sensor
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: amgalbu
  • Date Created: 26 Nov 2014 9:21 AM Date Created
  • Views 707 views
  • Likes 1 like
  • Comments 4 comments
  • iot_distributed
  • msp-exp430fr5969
  • msp_430
  • in_the_air
  • no2
  • adc
Related
Recommended

AirMobile - 8 - NO2 Sensor

amgalbu
amgalbu
26 Nov 2014

NO2 sensor MiCS 2710

 

Today I connected the NO2 sensor MiCS 2710 to the MSP430 Launchpad.

This sensor features low heather current (26 mA), fast response, miniature dimensions and high resistance to shocks and vibrations

 

Hardware considerations

MiCS 2710 has four connections:

 

  image

 

 

A heather power of 43 mW is applied between pins 3 and 1. This the temperature of the sensing resistor to reach up to 220 °C. Detection of pollution gases is achieved by measuring the voltage drop on the sensing resistor Rs.

The wiring diagram is shown below

 

image

The sensor is powered with 5 V.

Datasheet states that the maximum power the sensor can dissipate is 1 mW.

 

image

Because in the worst case Rs is 0.8 kΩ, the maximum allowed current is

 

image

 

 

To limit the current that goes through Rs, another resistor is required. The value of this resistor can be determined by imposing

 

 

image

 

Let's take some safety margin and let's use a 4.7 kΩ resistor.

To determine the resistor to connect to the heather terminal, we have to impose that the current through the heather is 26 mA. So

 

image

 

 

With a 100 Ω resistor and a 33 Ω resistor in series, we also meet the maximum power dissipation requirement, because

 

 

image

 

 

I have now to limit the maximum voltage not to exceed to analog Vref (2.0 V). The voltage limits are

 

image

image

 

The Vmax exceeds the ADC limit, so a voltage divider is required. The ratio of the voltage divider is

 

  image

 

I can choose R1 = 10 kΩ and R2 = 0,73 R1 = 7,3 kΩ. The voltage divider are going to be connected in parallel with the Rs, so it would affect the Equivalent Resistance. An operation amplifier in buffer configuration is required.

 

  image

 

Software implementation

Using the same functions I already talked about in my previous post, I can write a the function to read out the output value provided by the MiCS 2710 sensor

 

float val = SENSORS_AnalogRead(ADC12_B_MEMORY_2);

 

According to calculation, the minimum ADC value corresponds to the maximum N02 concentration. I have taken a general approach and I created a function that linearly maps a given range of input values to a given range of output values

float SENSORS_Map(float x,

    float in_min, float in_max,

    float out_min, float out_max)

{

  return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;

}

 

The input and output ranges for the MiCS 2710 are as follow

 

ADC Value

NO2 ppm

0

5

1023

0.01

 

Now I'm ready to write the final function to read N02 concentration

 

void SENSORS_ReadNO2()

{

  float val = SENSORS_AnalogRead(ADC12_B_MEMORY_2);

  SENSORS_Data.NO2 = SENSORS_Map(val, 1023, 0, 0.01, 5);

}

  • Sign in to reply
  • amgalbu
    amgalbu over 10 years ago in reply to ipv1

    Thanks IP !

    I will let you know how reliable is the measure once I will have installed the sensor

     

    Ambrogio

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ipv1
    ipv1 over 10 years ago

    I am not sure if it applies but from what the sgx guys told me, these sensors are not useful in open air conditions let alone in the front of a moving car. As always I may be wrong but if not then you might consider an alternative sensor.

    Cheers,

    IP

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • amgalbu
    amgalbu over 10 years ago in reply to DAB

    Hi DAB
    The sensor will be mounted in front of the car radiator, so air will be captured by car motion

     

    Thanks for your comment

    Ambrogio

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 10 years ago

    Nice update.

     

    How much air do you plan to sample with the sensor?

    You might want to use a small fan to capture a larger sample and increase your air concentrations for the sensor.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube