Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: [humirel] strange issue after years of tests on MEGA

  1. #1
    Junior Member
    Join Date
    Jan 2017
    Posts
    2

    [humirel] strange issue after years of tests on MEGA

    Dear you all.
    I'm testing since 2015 my sensor with humirel 1101. I've tried the ne555 solution.. and applied a calibration correction with another sensor.
    I'm writing because I'm not able to work with registers and I cannot use Arduino UNO.
    So 99% of sources use only the Timer of Arduino 1 and to work with Mega I moved to Frequncy measure project.

    In the source code I've choosed pin 48 (Timer5) as well as written in FreqMeasureCapture.h

    The first odd is that everywhere Timer5 is written that is connected to pins 44,45,46 but here is on 48 or 49.

    I have to adopt this source without the ability to create one by myself.

    I've shorted pin Digital5 of the shield mounted on the Mega to the pin 48 of the Mega.

    I suppose to have data since 2015.
    But now I have strange responses from the raw data in the FreqMeasure.

    If the sensor / circuit is not powered on for a while the sensor at the next power up is showing a good data.. but after minutes it returns back to odd data..

    My question is : is there a source code to use Mega without use of libraries.. only to test directly the incoming wave? My need is only to report humirel value but I cannot use digital pins from 1 to 13.

    Do you suggest to move to another kind of sensor.. even if DHT is less precise? In the past I had HIH4000 sensor .. very good but also very delicate.

    My environent is always between 80 and 100% of humidity .

    thaks you all
    ugo

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,485
    You do not appear to be using a Teensy at all. Your question should be posted to the Arduino Project Guidance forum here

    Pete

  3. #3
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    3,463
    I was unaware PJRC developed Teensy Megas

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,019
    Quote Originally Posted by ugokind View Post
    My question is : is there a source code to use Mega without use of libraries..
    You could dig into the FreqMeasure library and copy just the parts of the code you like.

    Or do the same with Martin Nawrath's code:

    http://interface.khm.de/index.php/la...ement-library/

    Or write it all from scratch. But if you're using Arduino Mega, ask for help with that on Arduino's forum, not here.

    http://forum.arduino.cc/index.php?board=4.0

  5. #5
    Junior Member
    Join Date
    Jan 2017
    Posts
    2
    thank you all.
    this is a very useful forum
    again.. thanks.

    happy 2017
    Ugo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •