element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Summer of Sensors Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Summer of Sensors Design Challenge
  • More
  • Cancel
Summer of Sensors Design Challenge
Blog Summer of Sensors Design Challenge - In The Air Tonight – Blog #3 (Interfacing)
  • Blog
  • Forum
  • Documents
  • Design Challenge
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Summer of Sensors Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: abhayrjoshi
  • Date Created: 11 Nov 2022 4:42 PM Date Created
  • Views 511 views
  • Likes 7 likes
  • Comments 3 comments
  • zmod4510
  • Summer of Sensors Design Challenge
  • renesas
  • In the Air Tonight
Related
Recommended

Summer of Sensors Design Challenge - In The Air Tonight – Blog #3 (Interfacing)

abhayrjoshi
abhayrjoshi
11 Nov 2022

Challenger - ZMOD4510 - Outdoor Air Quality Sensor

Hello element14 Family,

I don't believe I could do a better job of describing the first unpacking experience and the Renesas software review than the other challengers have already done. I thus made the decision not to reiterate the facts as my experience was pretty similar:

  • Blog #3: Experimenting with ZMOD4510-EVK Software
  • In The Air Tonight - First Tests of the Evaluation Kit

I began the construction of my portable exposure unit by making a little tweak to the environmental sensor breakout. Since I couldn't find the BME 280, I used a different sensor I had lying around instead: the Si7021, which can detect relative humidity with an accuracy of 3% over a range of 0–80% and temperature with an accuracy of 0.4 °C over a range of -10–+85 °C. The HS4001 has a superior humidity range (0% to 100% RH) and precision (1.5% RH/0.2°C), but I was unable to find an Arduino library for it, therefore I was unable to incorporate it at this time.

image

On the Renesas website, I requested the software downloads for the 1st Gen and 2nd Gen libraries.

image

In the meantime, I installed the required libraries for using the components, through the library manager:

  • Adafruit Si7021 Library: https://github.com/adafruit/Adafruit_Si7021
  • Adafruit SSD1306 Library: https://github.com/adafruit/Adafruit_SSD1306 which also installs the required dependencies for additional GFX

After a day, Renesas sent me a link to download the library; all I had to do was add the.zip file as a library to the Arduino IDE, and the following examples appeared:

image

image

image

I connected the board to Feather M0 in accordance with the pin arrangement of the module, as was described in the ZMOD4510 Evaluation Kit User Manual (the backside of the connector is shown in the image):

imageimage

3.3 V (on Feather M0) – ZMOD4510 Pin 1 (VDD)
GND (on Feather M0) – ZMOD4510 Pin 14 (GND)
Pin 21 (on Feather M0) – ZMOD4510 Pin 5 (SCL)
Pin 20 (on Feather M0) – ZMOD4510 Pin 7 (SDA)

image

However, upon running the example, I was met with the following error:

19:13:39.745 -> Starting the Sensor!
19:13:42.265 -> Error -4 during reading sensor information, exiting program!
19:13:42.265 ->

I came across the blog by vlasov01, which mentioned the same error, although, a full system reset didn’t work for me. I connected the Adafruit Featherwing OLED, to confirm the functionality of the I2C port, and the sample code ran without any errors! Hence, I reached out to the Renesas Community for further support and debug and received the following reply after a day:

image

https://community.renesas.com/sensor-products/f/support/29122/connect-zmod4510-to-adafruit-feather-m0-wifi---atsamd21-atwinc1500/99822#99822

Well, later, I decided to try my luck with an Arduino MKR board as in a blog by ntewinkel, it was running out of the box! I caught hold of an old rusty MKR WAN 1300 (well, apparently it was the first LoRa board by Arduino, and that quite explains the rust Wink) and hooked up the ZMOD4510

image

and voila…

I was able to see the serial logs on the console!

Then, I looked at the schematics of the port and noticed that there were pull ups on the SCL and SDA lines,

image

which were absent on the SCL, SDA pins on my Feather M0!

image

And sheesh! It was indeed mentioned on the pinout website (which I hastily took for granted as the OLED display functioned out of the box!):

image

I rummaged through my box to find some resistors and I finally found a couple of 10k ohm resistors! I wired them up, connected using the alligator clips (I know, not recommended Wink), and finally was able to see the logs on my Feather M0 as well!

image

Later, to check that this doesn’t affect the operation of my OLED display, I wired it up with the pull ups and the sample application worked fine.

image

So, the next steps include 3D printing the case (now that the board and display work with the sensor) and putting the rest of the sensors together in a portable package!

image

Next Blog Series: Summer of Sensors Design Challenge - In The Air Tonight – Blog #4 (Data Acquisition)

  • Sign in to reply
  • dougw
    dougw over 3 years ago

    Missing pull-up resistors - a classic way to burn some troubleshooting time.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • abhayrjoshi
    abhayrjoshi over 3 years ago in reply to ntewinkel

    Absolutely! I echo your comments. I was thinking of soldering the wires to the connector, although, didn't want to spend time porting the library over and debugging those errors as well! Nevertheless, the form factor is quite nice and can come in handy for space constrained applications :)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 3 years ago

    Good catch on those pull-up resistors!
    I guess I was lucky with my choice of board Sweat smile
    I did see mention of needing the resistors, as they were part of the eval board, but since things were working I left it be.

    >The HS4001 has a superior humidity range ... but I was unable to find an Arduino library for it
    I ran into that as well. and the connector was so tiny it would've been hard to work with too. I wonder if anyone else actually got that figured out?
    I suppose it's possible to go through the other libraries and port it over, but that's far beyond the scope of this challenge, I think!
    For the effort required, I'll take the chance of being off by +-1 EPA level Smile

    • 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