1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

HM-TRP Radio modules malfunctioning?

Discussion in 'IoT - Internet of Things' started by mik3ca, Jul 27, 2018.

  1. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    I don't know if its just a dud I have or what, but I made a system in which the PC transmits a series of characters to a microcontroller via HM-TRP radio modules.

    What I notice is that even though the program on the microcontroller is supposed to continuously accept serial data with high priority, the radio module sometimes stops working at random times for about 15 seconds to a couple of minutes then starts working again.

    I can verify this because when the modules work, both red and green lights on both devices blink at a high rate, but when the module attached to the microcontroller doesn't want to work, its lights are fully out but the HM-TRP connected to the PC is always transmitting.

    Both radio modules are given 3.3V through LM1117 regulators and the power supply to the regulators are 5VDC. The voltage conversion to the modules from 5V is done by feeding the data in and out through 74HCT04 inverters.

    Each module has a 220uF decoupling capacitor attached to it and has a 915Mhz helical antenna attached as well since the module runs at 915Mhz.

    Is there something with these HM-TRP units that I'm not configuring correctly? Or is one faulty? or what?

    I set both to run at 38400 bps speed.
     
  2. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,806
    Likes:
    435
    Location:
    Brisbane Australia
    Do you have the enable and config pins connected correctly?

    Your 220μF caps should have a 100nF ceramic in parallel with them.

    Mike.
     
  3. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    I'll see if your idea will bring me luck tomorrow
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    P.S. On the microcontroller board I already have a 0.047uF ceramic in parallel with the 220uF cap. Would you think a diode connected in reverse across the power supply help? If so, what type?
     
  6. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,815
    Likes:
    739
    Location:
    Derbyshire, UK
    ONLINE
    Why so fast?, do you have some urgent reason for speed? - it's usually far more reliable, and gives a longer distance, at lower speeds - my 'standard' serial speed has always been 9600 baud.
     
  7. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    Because I'm making a lazertag game for a large number of players and a lot of data needs to be exchanged in a short amount of time. And I don't think 38400bps is fast enough.

    What prompts me for higher speed is the fact that I need a long array of 3 bits to store bits representing which player shot the target and where. So for a 30 player setup, I need to send out at least 90 bits of data plus 8 bits for player and 8 bits for controller ID and 8 bits for checksum which equals 114 bits or 15 bytes that each player has to send out and that each player has to receive = 30 bytes. multiply by 30 players, and its 900 bytes. and I need to process each player ideally in under 200ms. Do the rest of the math and you'll see why I need at least 38400 bps
     
  8. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  9. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    also, is 220uF electrolytic plus 0.1uF ceramic too small of capacitor values because maybe with the high speed, the voltage to the module (3V) the decoupling capacitor is steadily holding on to has no more voltage left causing the unit to not work until the capacitor is charged up again? I'm not sure. The capacitor is new and has not blown up.

    Or could it be that electrolytic capacitors are no-good for this module?
     
  10. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    This got weirder. I replaced two 100nF ceramics that decoupled the main 5V supply with two 100uF electrolytics because maybe that would supply the juice needed to the 3V regulator thats powering the radio module. Sadly, the data results are substantially worse (no valid data transmitted just from changing values of two decoupling caps)
     
  11. mik3ca

    mik3ca Member

    Joined:
    Jun 24, 2017
    Messages:
    498
    Likes:
    1
    One more thing I can do soon is replace the standard inverter IC that the data feeds through (each data line goes through two 74HCT04 inverters) and I'll replace it with schmitt triggers (74HCT14) because I heard those clean up dirty signals and I'm trying to figure out if the change in capacitance is creating dirtier signals. hmm...
     
  12. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,966
    Likes:
    999
    Location:
    Canada, of course!
    The datasheets for all low dropout regulators I have seen say that the output capacitor type and value are critical and must be mounted at the regulator IC to prevent oscillation. For the LM1117 it shows 10uF tantalum input and output capacitors but yours are completely different. If the 5V input to the regulator sags below 3.7V then the 3.3V output will also drop. If the regulator gets too hot then it will reduce the output voltage. If the load on the regulator is less than 5mA then the output voltage of some LM1117 regulators will rise.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice