Monday, April 7, 2014

Changes in firmware 1.5

Version 1.5 of the Trackuino firmware is out! It fixes some bugs reported mainly through email and the hab-ham forums.

One of the longest-standing issues was compilation with Arduino 1.0+. This has been fixed in many forks out there, so it was about time it made it to the official code. The 1.5 firmware has been tested with the following IDEs:
  • Arduino 1.0.5 (build tested on an Arduino Duemilanove)
  • Arduino 0023 (build tested on an Arduino Duemilanove)
  • Mpide 0023-20130715 (build tested on a Chipkit Uno32)

Another issue was regarding readability of the signal. You can read this thread for background, but in essence some TNCs have problems decoding the signal when there is a significant amount of imbalance between the 1200 and 2200 Hz tones, no matter how clean the signal is in SNR terms. This problem has been thoroughly described by John Ackermann N8UR in this article.

The problem boils down to the following: usually FM transmitters emphasize the high frequencies of the base band. They do so to improve the immunity to noise and overall SNR of the signal. To counteract this effect, receivers, in turn, de-emphasize the received signal so that the end result is a spectrogram that closely resembles the original.

HX1 modules, however, don't have such a pre-emphasis network. Thus, the power of the 1200 and 2200 Hz tones is distributed equally over the air, but receivers will attenuate the 2200 Hz tone largely, resulting in a signal that some TNCs can't decode. Here is a an example of a Trackuino transmission received by an Icom IC-229H, then fed to my poor man's oscilloscope (Audacity). See the amplitude difference between the two tones?


Now, when you transmit from a balloon, the coverage area will be huge even for 300 mW, so chances are that some receiver or another will successfully decode the signal. On the ground, however, your packets might struggle with local receivers.

The solution is to de-emphasize the 1200 tone, which translates into an emphasis of the 2200 one in relative terms... It's impossible to boost the 2200 either in circuitry or in software because the HX1 is already being driven through its full 0..5V range. This will bring other issues like FM undermodulation (the received amplitude will be lower), but it should improve the overall equalization of the signal.

The same transmission with relative emphasis of the 2200 tone:


Pre-emphasis can be turned on in config.h by setting the PRE_EMPHASIS flag to 1, and is now the default setting.

The other issues addressed by this version are:

Baud rate accuracy

Due to accumulation of rounding errors in the modem code, the baud rate was actually 1201.92 bps on 16 MHz Arduinos. This is within the tolerance of all the receivers I've tried, but it could get worse depending on the actual CPU clock. Version 1.5 uses fixed point arithmetic to achieve a baud rate that is consistently closer to the nominal 1200 bps regardless of the clock speed (1200.03 bps @ 16 MHz).

Simpler modem ISR

I've slimmed down the modem ISR so that the chances of interrupt overrun are lower. The AFSK code now runs asynchronously in the main loop and the samples are fed to the ISR via a FIFO queue. This makes the AFSK code easier to debug, too.

If you have any question or bug report, you are welcome to post it in the hab-ham forums.

32 comments:

  1. Hi!
    Awesome! Maybe this is exactly what I was looking for! We are planning on using your trackuino code on our FPV Balloon! The plan is to send 2,4ghz live video down and use the free audio channel to transmit GPS packages for the antenna tracker! Am I at the right place for this, or will I have trouble to get your code to work on 2,4ghz? :)

    Looking forward to your answer!

    Phil

    ReplyDelete
    Replies
    1. Yes, you can use the gps decoding and afsk encoding portions to create a signal that you can decode with a packet radio decoder from earth. But isn't that overkill? Do you have a page with your project?

      Delete
    2. Hi Javi!

      Great, you can help me! I am fairly new with programming and have only built the tracker so far and written some of the angular calculations for the arduino. My only weakpoint so far was how to send the gps string!

      I haven't got a project page, but could you maybe contact me under my skype name "saphil90"? Then we can maybe exchange emails via skype.
      It'd be awesome if we could get this thing running as I am planning on writing my bachelor thesis about it.

      Thanks for your support!

      Phil

      Delete
  2. Any chance to send you an email? :)

    ReplyDelete
  3. Hi Javi, thanks so much for Trackuino. It's awesome. I've used it successfully for 4 HAB launches. It's a great piece of software.

    I have a fork on Github (https://github.com/johnboiles/trackuino) that adds compatibility with Atmega32u4 based Arduinos (such as the Arduino Leonard and Sparkfun's Pro Micro series). I'd love to merge back in with your new code at some point. I see the repositories in the google code are outdated (the last commit to the Google Code firmware repo was 2 years ago). Is there somewhere else you're hosting repositories where I could contribute a patch? Have you considered moving the project to Github?

    ReplyDelete
    Replies
    1. You have to switch to the "1.5" branch of the firmware repo to see the latest changes.

      I really hate that they removed the "downloads" feature of google code, so... yeah, I'll move the code to GitHub once I figure out how to move the wiki too...

      You can send me patches against the 1.5 branch and I'll consider them for addition if I think they add general value. I'm especially interested in sending sensor data (ie. temperatures) as APRS telemetry packets, so that they get nice plots in aprs.fi. That particular patch would be VERY welcome ;)

      Delete
    2. Javi, I've updated my github fork to reflect your changes from 1.51.

      https://github.com/johnboiles/trackuino/

      Patches could be pulled directly from the github commits since I've built my fork on top of your 1.51 mercurial branch.

      Delete
  4. Hola! Estoy por empezar un proyecto para lanzar un globo. Hay alguna guía para principiantes de Trackuino?

    ReplyDelete
  5. A dissertation, or thesis paper, is comprised of chapters, graphs, tables, headings, and subheadings. Above all, it is a research paper and contains wide array of facts collected from reference books, notes, etc. A research paper is highly customized and is expected to be error less. See more bachelor thesis

    ReplyDelete

  6. Thanks for sharing your thoughts about %meta_keyword%. Regards hotmail sign in email

    ReplyDelete
  7. Scotiabank seeks to provide mortgage solutions for most of its customers, particularly those with varying circumstances. canadian mortgage calculator Likely to impact fares for balance of the year and perhaps longer. mortgage payment calculator

    ReplyDelete
  8. an open-source electronics platform that combines both open source software and hardware to let people make interactive projects with ease.Reach us out

    ReplyDelete
  9. “I think commenting is the best part of my blogging – especially here at Pro Blogger. You see I’m not that profound or wise, but many of my readers are. Comments add value to my blog. They take my posts to the next level and often take my ideas in rewarding new directions.”

    무료야설
    휴게텔
    출장안마
    타이마사지
    카지노사이트존

    ReplyDelete
  10. Thanks for sharing. I believe that this blog will be liked by many despite their interest. homework assignment help

    ReplyDelete
  11. We comprehend the understudy's prerequisites in subject tasks by working with specialists in this field. Thus, regardless of whether you request essential schoolwork help or auxiliary schoolwork help, we are prepared to offer you modest schoolwork composing administrations. All you want to dissertation service uk do is to tap on request now. Furthermore, we will dole out one of our experts for you who can help you in finishing schoolwork in a brief timeframe.

    ReplyDelete
  12. Hero Gears Classic Varsity Jacket with Hood University Letterman Bomber Jacket-Navy Blue Pure Wool Body and White Real Leather Sleeves. calleigh duquesne csi miami jacket mens jacket, 100 percent Melton Wool Body, Cowhide Leather Sleeves, naval force blue and white variety Hoodie.

    ReplyDelete
  13. It can tolerate severe weather, such as freezing temperatures and torrential rain, while still keeping a suitable moisture content because of its excellent water CEMENT TREATED BASEresistance. Excellent performance data for CBT show how resistant it is to freeze/thaw cycles, lowering the likelihood of cracking and maintaining a uniform surface.

    ReplyDelete
  14. a well-designed single-page web app could offer a secure and pleasurable online experience. By creating and implementing interactive SPAs, we guaranteeWeb Development dubai responsiveness, cross-browser compatibility, and meet the high expectations of consumers in terms of agility and performance.

    ReplyDelete
  15. Each component passes through our QC department prior to final assembly & testing.transfer pumps in Dammam
    All manufacturing is fully traceable from raw material purchase to final delivery on our Emax RM6 database ensuring continued compliance with ISO 9001 accreditation.

    ReplyDelete
  16. is appropriate for your company and provides the services and goods you require. TACB has legal relationships with various banks in the UAE that permit it to introduceBack to Back LC transactions in Dubai clients and open corporate accounts. We assist clients in reducing the number of banks on their shortlist before assisting them with the paperwork required to open accounts.

    ReplyDelete
  17. I enjoy reading this post. This is so informative! College Park Chevrolet Buick GMC

    ReplyDelete
  18. Santander empowers homeowners with hassle-free home improvement loans. Take the stress out of financing and focus on creating your dream living space. santander home improvement loans

    ReplyDelete
  19. Addressing long-standing issues is crucial, much like how an office fit-out can revitalize a workspace. Updating the code to fix compilation problems reflects a commitment to improvement, mirroring the effort to enhance the work environment.

    ReplyDelete

  20. The issue with signal readability and TNC decoding complexities is a concern in the digital world. Just as precision matters in signal processing, villa renovation dubai demands meticulous attention to detail, transforming spaces into modern havens that balance comfort and aesthetics.

    ReplyDelete
  21. Discover opulent indulgence luxury chocolate in Jeddah, where each velvety piece reflects a symphony of flavors and craftsmanship, offering a taste of pure decadence.

    ReplyDelete
  22. "Buy Jeddah's finest chocolates for a sweet taste of luxury. Indulge in the rich flavors of اشتري شوكولاتة جدة (Buy Jeddah Chocolate) for a delightful treat."

    ReplyDelete
  23. Fit-out contractors play a pivotal role in the seamless transformation of commercial spaces. Their expertise in design implementation and construction ensures a harmonious blend of aesthetics and functionality. For unparalleled excellence in interior fit-outs, New Evolution Interiors stands out as the best fit-out company in the UAE, embodying precision and innovation in every project.

    ReplyDelete
  24. Exciting to see the changes in firmware 1.5, unlocking new possibilities for technology enthusiasts! As you delve into the updates, let our Mining camp catering services in Texasfuel your team with energy-packed meals. From long hours of innovation to strategic planning, we cater to your crew's culinary needs, ensuring they stay powered up for groundbreaking advancements in the mining world. Elevate your mining camp experience with a taste of excellence!

    ReplyDelete
  25. Thank you very much for your kind words! I'm thrilled to hear that you find the blog posts inspiring and valuable. It's my goal to provide readers like you with informative and thought-provoking content that sparks curiosity and inspires further exploration. If there are any topics you'd like to see covered or if you have any questions, feel free to reach out. Your feedback is greatly appreciated, and I'm committed to continuing to deliver high-quality content that resonates with you.
    When it comes to fire watch guard services in New York, it's essential to ensure the safety and protection of your property and occupants during fire-related emergencies or when fire suppression systems are temporarily out of service. Here are steps to find reputable fire watch guard services in New York:https://dahlcore.com/fire-watch-guards

    ReplyDelete
  26. Changes in firmware 1.5 signify advancements and improvements in technology, enhancing the functionality and performance of devices. Much like firmware updates,transfer pumps in Dammamcontinuously evolve, ensuring efficient and seamless movement of resources. Both exemplify the significance of staying current with the latest innovations, whether in digital systems or industrial equipment, to optimize operations and drive progress in our ever-changing world.

    ReplyDelete

  27. The issue you described revolves around the emphasis and de-emphasis of high frequencies in FM transmission and reception.

    In FM transmission, emphasizing high frequencies in the baseband signal helps improve the signal-to-noise ratio (SNR) and immunity to noise. This emphasis ensures that the higher frequency components of the signal are more prominent, which can help reduce the impact of noise during transmission.

    Vetiver essential oil is derived from the roots of the vetiver plant (Vetiveria zizanioides), a tall grass native to India. It is known for its earthy, woody aroma and is commonly used in aromatherapy for its calming and grounding properties.https://www.rockymountainoils.com/products/vetiver-essential-oil

    ReplyDelete