<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrew Brahim on Medium]]></title>
        <description><![CDATA[Stories by Andrew Brahim on Medium]]></description>
        <link>https://medium.com/@dirksavage88?source=rss-ea5d37bfa51f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qDod40lUnsy8H6sW</url>
            <title>Stories by Andrew Brahim on Medium</title>
            <link>https://medium.com/@dirksavage88?source=rss-ea5d37bfa51f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:05:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dirksavage88/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Open Drone ID is open source software’s answer to unmanned airspace regulations -RemoteID]]></title>
            <link>https://dirksavage88.medium.com/open-drone-id-is-open-source-softwares-answer-to-unmanned-airspace-regulations-fa4c1412d020?source=rss-ea5d37bfa51f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa4c1412d020</guid>
            <category><![CDATA[dji]]></category>
            <category><![CDATA[drones]]></category>
            <category><![CDATA[aircraft-tracker-map-api]]></category>
            <category><![CDATA[aircraft]]></category>
            <category><![CDATA[drone-technology]]></category>
            <dc:creator><![CDATA[Andrew Brahim]]></dc:creator>
            <pubDate>Sat, 15 Jul 2023 22:52:04 GMT</pubDate>
            <atom:updated>2023-08-03T21:48:03.948Z</atom:updated>
            <content:encoded><![CDATA[<p>When the FAA RemoteID ruling was passed, some drone and RC enthusiasts were left scratching their heads. It’s confusing even to industry and vendors who scrambled to release their own take on the RemoteID compliant broadcast modules. Despite the major drone OEM’s (DJI, Skydio, etc) releasing software updates to become compliant, there wasn’t much in the way of the DIY drone’s circle. That is until Open Drone ID answered the call.</p><p>Open Drone ID (ODID) is an open source (Apache* 2.0 licensed) project to provide beacon/broadcast module software. The Open Drone ID specifications closely follow the ASTM RemoteID specifications (which try to mirror what the FAA regulations mandate). A cursory look at their homepage shows the site has not been updated recently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A1wgw0v72o9PMmSK" /></figure><p>Fortunately, Andrew Tridgell has undertaken the goal of pushing Open Drone ID forward with an implementation using MAVLink (serial) and DroneCAN, a la Ardupilot RemoteID, or ArduRemoteID for short.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qx5A1au0pgB4VH6G" /></figure><p>Tridgell opted for the GNU GPLv2 license for this software repository. Along with about 10 other contributors Tridgell has pushed for increased board support and adoption. The from scratch DIY answer comes in the form of an ESP32-S3/C3 dev board. But vendors have also jumped on the ODID bandwagon to offer off the shelf modules to include mRo and Bluemark Innovations. To be clear, the ArduRemoteID firmware is targeting the standard RemoteID segment which is one of three ways drone pilots and integrators can be compliant under FAA regulations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3d6XfLOMFT-Ww_Oi" /></figure><p>Open Drone ID also wanted to address the regulations outside of FAA control; regions such as the EU and Japan. In fact, a comparison of all three major regions, in addition to the ASTM standards and ASD-STAN DRI exist at the table at the bottom of this <a href="https://github.com/opendroneid/opendroneid-core-c">repo</a>.</p><p>The different standards vary in the overall scope of data required to be compliant. Then there are nuances as to what Wi-Fi bands or Bluetooth versions are mandated/optional. The gist of the FAA rules require Serial ANSI/CTA-2063-A formatted serial numbers for the unmanned aircraft (UA): add-on broadcast modules are not allowed to use Session ID in lieu of serial numbers.Next are the UA dynamic position (GPS coordinates updating at 1hz minimum), WGS-84 altitude, timestamps (in the location message and system message), operational emergency status (not required for broadcast module add-on), track direction, horizontal &amp; vertical speeds, and lastly the operator dynamic position and altitude (an often point of contention for security minded folks).</p><p>When ArduRemoteID was first drafted as a PR, it drew the ire of public security experts, to include one very critical Kevin Finisterre. It’s easy to see how despite claiming to be tamper proof firmware, any open source software (or closed source even) can easily be compromised with the right tools and knowledge. Vendors are quick to rebuttal: the FAA tamper proof stipulation is a best effort in order to safeguard against common tools and knowledge and not meant to deter veteran cybersecurity experts and penetesters. Still having your dynamic position be broadcast can be detrimental to personal security, depending on who is watching via Dronescanner (a publicly available receiver app for RID signals). The good news is that broadcast modules that are add-ons can bypass the operator dynamic position and instead report the takeoff GPS position under FAA rules (although there may be caveats to this as well, depending on the flight plan).</p><p>The current Qgroundcontrol daily build includes options to enable RemoteID. The PX4 autopilot software still needs some work to get the full implementation of MAVLink messages.</p><p>ODID implementations exist other than Bluemark and mRo offerings, to include Cube ID, Cube ID CAN, and Wurzback Electronics. However their support in the ArduRemoteID project may be experimental or not yet implemented as of yet.</p><p>One could say that the open source answer to RemoteID is a best efforts approach that targets niche bind and fly (ready to fly kits) or other off the shelf drone kits that leverage open source software stacks (Ardupilot and PX4). For these off the shelf solutions, the regulatory target audience of standard RemoteID is really Part 107 certified UA pilots. These pilots may engage in riskier operations or flights that are in urbanized or industrial areas: think of real estate and critical infrastructure inspections that may require operations over people and beyond visual line of sight (BVLOS). For the majority of consumer focused drones or general videography/photography Part 107 holders, their RemoteID compliance should be handled by the big player vendors DJI, Autel, and Skydio. These solutions should already come RemoteID compliant according to the standard RemoteID rules and do not qualify for the broadcast module add-on option for compliance.</p><p>For the FPV and hobby segment you can get away with a standalone broadcast module that does not directly communicate with the autopilot software: the only alternative to purchasing a broadcast module would be to fly in FRIA’s (areas that are designated as FAA-recognized identification areas). These may come in the form of the local RC club flying field, but FRIA’s are not limited to just that.</p><p>The real question is what do the industry and operational entities need from the open source software stacks. These questions have yet to be answered, especially once we factor in beyond visual line of sight (BVLOS) and night-time operations, as well as operations over people and traffic. These regulations put a strain on not only vendors but operators. We are in the infancy of FAA regulations: despite outgrowing the DIY era and stepping into a world where institutions and public entities are watching to see where the future of unmanned aerial systems go, we hope open source software will always be integral to that future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-5b-IPFq0b7Pad2zJzauA.png" /></figure><p>One last thing to note is the real reason behind the RemoteID rulings by the FAA. One could argue a catalyst of regulation and institutional intervention occurred due to an event in January of 2015 where a DJI quadcopter landed on Whitehouse grounds. Then in February of that same year, Congress began working on an extension of FAA oversight to include small recreational drones in the <a href="https://www.congress.gov/bill/114th-congress/house-bill/636/text">H.R.636 FAA Extension, Safety, and Security Act of 2016</a>. In fact this congressional extension directed the FAA to do the following (section 2202 paragraph a):</p><p><em>“In General. — The Administrator of the Federal Aviation Administration, in consultation with the Secretary of Transportation, the President of RTCA, Inc., and the Director of the National Institute of Standards and Technology, shall convene industry stakeholders to facilitate the development of consensus standards for remotely identifying operators and owners of unmanned aircraft systems and associated unmanned aircraft.”</em></p><p>Of interest is paragraph b subsection 3:</p><p><em>“The feasibility of the development and operation of a publicly accessible online database of unmanned aircraft and the operators thereof, and any criteria for exclusion from the database.”</em></p><p>These institutional interventions are unprecedented and are akin to Congress mandating the FAA to effectively regulate an industry it has very little insight and control over while openly wanting information on everyone (including FPV pilots and model aircraft enthusiasts). The only saving grace for the FAA having any teeth behind their ruling was Part 107 remote pilot certificates and small UA registration: clients will want to confirm that their contractors have the appropriate certifications to conduct any remote pilot operations and are fully compliant with FAA rules. No such teeth exist for enforcing the hobby and FPV segment of UA pilots.</p><p>Another driving factor behind the RemoteID ruling in recent years has been industry and stakeholder involvement. Once congress extended the FAA’s authority over small UA it was only natural that for-profit seeking organizations began to add to the snowball effect of regulation in the industry. The following companies arguable live and breath the mantra of never letting a crisis go to waste:</p><p><em>“The FAA selected the following companies to develop technology requirements for future RemoteID UAS Service Suppliers (USS): Airbus, AirMap, Amazon, Intel, One Sky, Skyward, T-Mobile, and Wing. These companies were selected through a Request for Information process in December 2018.”</em></p><p><a href="https://www.faa.gov/newsroom/us-department-transportation-announces-technology-partners-remote-id-development#:~:text=The%20FAA%20selected%20the%20following,Information%20process%20in%20December%202018.">-source</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPJSTvHBuIj64Bhzw3YZ6A.png" /></figure><p>AirMap ceased operations of its flight planning application as of June of 2023. Amazon prime air approval has been delayed and still requires “visual observers” as they do not have the green light from the FAA and are still undergoing a testing phase of their drone delivery service. It is unknown what Intel’s full role was in the USS program: it is however known that Intel was behind the Open Drone ID standards (<a href="https://www.thedrive.com/tech/22850/intel-unveils-new-open-standard-for-secure-remote-drone-identification">source</a>). Alphabet’s Wing involvement has been fairly straightforward and their operations have eclipsed other large OEM drone delivery companies with having hundreds of thousands of successful drone deliveries spanning several continents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wvc7Q6YqnM4KSqAAlTfv_g.png" /></figure><p>Other stakeholders became involved through the FAA’s “Beyond” program, where a list of participants were selected by the FAA for what was effectively BVLOS and unmanned traffic management (UTM) technology demonstrator pilot programs. A full list of Beyond participants can be found <a href="https://www.faa.gov/uas/programs_partnerships/beyond/lead_participants">here</a>. You can easily follow the money trail: it leads to transportation infrastructure. The US highway system was a massive boon to the transport of goods and people across major interstate roads: however it came with the cost of the taxpayer-burdened building and maintaining large stretches of highway, tolls, and vehicle registration and license plating.</p><p>Let’s not forget that the automobile also flipped human transportation fundamentals on it’s head: it created a time scarcity, or the need to get places faster at the expense of the bicyclist and pedestrian’s safety. It deeply shifted the way humans traveled short distances. You could form a plausible link between the entire motivation of the drone delivery industry and the time scarcity of last mile delivery of goods. Time is money after all.</p><p>We can of course draw many parallels with civilian manned aircraft regulation, however I would argue that the FPV pilot has more in common with the average automobile owner than a Cessna pilot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pXwAgFTxnPxx8MzM7SwQSg.png" /></figure><p>The FAA is effectively putting a digital license plate on small UA and trying to regulate the industry the way the transportation industry regulation evolved around the advent and widespread use of the automobile. Safety has been touted as a massive driver of standards and regulation in many industries.</p><p>We can follow the 8+ year story arc beginning with the catalyst of the Whitehouse incident, the crisis boon to stakeholders, and the Beyond program’s promise of evolving transportation infrastructure around UTM and airspace management. The story arc climax is yet to be seen, but for most it may begin with the FAA’s RemoteID final rule.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa4c1412d020" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT Writes Convincing Medical Study for a Fictional Wonder Drug]]></title>
            <link>https://dirksavage88.medium.com/chatgpt-writes-convincing-medical-study-for-a-fictional-wonder-drug-47270c392aa3?source=rss-ea5d37bfa51f------2</link>
            <guid isPermaLink="false">https://medium.com/p/47270c392aa3</guid>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Andrew Brahim]]></dc:creator>
            <pubDate>Wed, 07 Dec 2022 00:14:14 GMT</pubDate>
            <atom:updated>2022-12-08T00:59:04.749Z</atom:updated>
            <content:encoded><![CDATA[<h3>The following prompt was given to chatGPT:</h3><blockquote>Write an in-depth medical study of a novel pharmaceutical trial for a fictional drug called Resperitin and outcomes for patients with lipidema, lymphedema, obesity, and metabolic syndromes</blockquote><p>ChatGPT is a culmination of Reinforcement Learning optimization strategies, specifically Proximal Policy Optimization (PPO). OpenAI leveraged AI trainers to rank the model and shape rewards based on model ranking. Make no mistake: reinforcement learning requires constant iterations. Much time is lost to to rewarding unintended behaviors, hyperparameter tuning, and sheer time-steps and epochs required to get a result with expected behavior. The computational barrier to entry is costly in compute costs and time to train. However, it is one of the most effective conversational AI’s to date.</p><h3>It wrote this response to my fictitious drug study prompt:</h3><blockquote>Introduction:</blockquote><blockquote>Resperitin is a novel pharmaceutical drug that is being tested for its efficacy in treating patients with lipidema, lymphedema, obesity, and metabolic syndromes. These conditions are characterized by abnormal accumulation of fat deposits in the body, leading to the development of obesity and other related complications such as cardiovascular disease, diabetes, and hypertension. Resperitin is believed to be effective in reducing the accumulation of fat deposits and improving the metabolic health of these patients.</blockquote><blockquote>Methods:</blockquote><blockquote>The study was conducted on a total of 100 patients with lipidema, lymphedema, obesity, and metabolic syndromes. The patients were divided into two groups: the control group and the treatment group. The control group received a placebo, while the treatment group received Resperitin. The patients were followed up for 12 weeks to assess the effectiveness of the drug.</blockquote><blockquote>Outcome Measures:</blockquote><blockquote>The primary outcome measure was the change in body weight. This was assessed by measuring the weight of the patients at the beginning and at the end of the study. The secondary outcome measures included the changes in body mass index (BMI), waist circumference, and blood pressure. These were measured at the same time intervals as the primary outcome measure.</blockquote><blockquote>Results:</blockquote><blockquote>The results of the study showed that the patients who received Resperitin had a significant reduction in body weight compared to the control group. The mean weight loss in the treatment group was 7.2 kg, while the mean weight loss in the control group was only 1.4 kg. This difference was statistically significant (p&lt;0.001).</blockquote><blockquote>The treatment group also had a significant reduction in BMI compared to the control group. The mean reduction in BMI was 2.3 kg/m2 in the treatment group, while the mean reduction in the control group was only 0.8 kg/m2. This difference was statistically significant (p&lt;0.001).</blockquote><blockquote>The treatment group also had a significant reduction in waist circumference compared to the control group. The mean reduction in waist circumference was 6.4 cm in the treatment group, while the mean reduction in the control group was only 1.8 cm. This difference was statistically significant (p&lt;0.001).</blockquote><blockquote>The treatment group also had a significant reduction in blood pressure compared to the control group. The mean reduction in systolic blood pressure was 6.7 mmHg in the treatment group, while the mean reduction in the control group was only 1.5 mmHg. This difference was statistically significant (p&lt;0.001).</blockquote><blockquote>Conclusion:</blockquote><blockquote>The results of this study show that Resperitin is an effective treatment for patients with lipidema, lymphedema, obesity, and metabolic syndromes. The drug was able to significantly reduce body weight, BMI, waist circumference, and blood pressure in these patients. These findings suggest that Resperitin may be a promising therapeutic option for the management of these conditions. Further studies are needed to confirm these findings and to evaluate the safety and long-term effectiveness of the drug.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47270c392aa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GPS Time for Small Unmanned Aerial Systems: PPS Beginnings, Part Two]]></title>
            <link>https://dirksavage88.medium.com/gps-time-for-small-unmanned-aerial-systems-pps-beginnings-part-two-f1a45d0882e1?source=rss-ea5d37bfa51f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1a45d0882e1</guid>
            <dc:creator><![CDATA[Andrew Brahim]]></dc:creator>
            <pubDate>Sat, 24 Oct 2020 18:35:11 GMT</pubDate>
            <atom:updated>2020-11-01T21:11:53.484Z</atom:updated>
            <content:encoded><![CDATA[<p>Drone technologies often parallel (and even intersect) the growing Internet of Things (IoT) movement within the prominent cloud infrastructure environment. One of these intersects is Network Time Protocol, or NTP. Most modern Linux or Linux like distributions include support for NTP, be it a client-server such as NTPD or Chrony. These are simply time source dependent daemons that attempt to synchronize host time with a network time sever, via a dedicated locally configured time server or a remote time server over the network such as pool.ntp.org mirrors or Google’s own public NTP: time.google.com.</p><p>Given an edge device with connection to the outside world, NTP services can be integrated easily via a WiFi, cellular modem, or hard-wired ethernet connection. When we remove this gateway to the outside world, however, our device clocks drift over time. Hence the NTP services continually run as a service in the background to keep our system time within a range of acceptable clock drift, disciplined by whichever NTP time sources we are pulling time from. In the abscence of a network connection, we can use a local GPS time source, and more importantly it’s Pulse Per Second (PPS) output.</p><p>To get started with a Linux Embedded system, a reference or custom board, power adapter or bank, various I/O cabling, and a host Linux or Windows system is required. For this project, I used an Emcraft 3-layer cube kit that includes an <a href="https://www.emcraft.com/products/1125">NXP System On Module (SOM)</a>:</p><p>The SOM is based off of the NXP i.MX 8m mini (8mm), which is an arm64 architecture. The NXP chip is a Quad Arm Cortex A53 running @ 1.8GHZ, with a companion Arm Cortex M4 running at 400MHZ. Also on the SOM is 2GB of LPDDR4 memory and 16GB of eMMC flash storage. I have of course opted to use a 32GB MicroSD, which can be had for cheap: a TeamGroup class 10 in this case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*ErpGTivc8IZun6toNLsbcg.jpeg" /></figure><p>While the SOM is the focus of this article, the other two layers in the cube kit sold by Emcraft are for 1) media (MIPI-DSI lanes, and MIPI-CSI to Google Coral Cam) and 2) PX4 open source flight stack standards which add an I/O compatibility layer to the entire kit. This kit is used in the Hovergames Challenge 2 and is a purpose-built drone embedded system.</p><p>I recommend this kit as it is purpose built, but similar Arm-based SOMS, reference boards, and kits can be purchased from the Raspberry Pi foundation , Wandboard, Embedded Artists, and Gumstix.</p><p>After configuring my laptop (Ubuntu 18.04, as recommended by NXP), creating a cross-toolchain build environment via the Yocto build toolset, and flashing the image via a utility tool provided by NXP, I was able to boot the image from the SD card and configure the board to connect to my network. Your setup may vary, but i’ve found the following reference and manuals helpful in getting started with Yocto Embedded Linux:</p><p><a href="https://www.nxp.com/docs/en/user-guide/IMXLXYOCTOUG.pdf">i.MX Yocto User’s Guide</a></p><p><a href="https://www.nxp.com/docs/en/user-guide/IMXLUG.pdf">i.MX Linux User’s Guide</a></p><p><a href="https://www.embeddedartists.com/wp-content/uploads/2018/04/iMX_Working_with_Yocto.pdf">Embeded Artists Yocto Guide</a></p><p>Keep in mind that any additional software I install via the debian package manager can be incorporated in a new built layer via the Yocto build environment on my Ubuntu Linux host system. For now, I’ll use the apt package manager for prototyping purposes, as a new build can take a long time depending on all the development tools.</p><p>After ensuring my debian mirrors are good to go, I run an $ apt update, followed by $ apt install pps-tools</p><p>Here are some screen snips of common pps tool commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ox-7MnWDyZ3oZDAYinU0Jg.png" /><figcaption>Various PPS Tools Commands</figcaption></figure><p>Now I make sure the Linux Kernel has recognized the new class in the sysfs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*tgomAHJiiy2UUISwWpJhGg.png" /><figcaption>Check the SYSFS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*8k5hkob2nCSI2Z4lAroKwQ.png" /><figcaption>Assert Yields 0&#39;s</figcaption></figure><p>The above assert command should yield a timestamp in seconds, however I have neither configured the GPIO pin to PPS source or exported the GPIO pin in Linux. See the next few command line snips:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*kWS-IFWabRbihY9cfNKdFQ.png" /><figcaption>Export the GPIO pin I want to use PPS on</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*BcL-4xdOAFHFRN213tXVOA.png" /><figcaption>Read the Value of chosen GPIO input pin</figcaption></figure><p>Reading a value of zero is good at this point, as I have not connected the GPS PPS pin to the board’s GPIO0 pin. Part three of this series will cover the GPS receiver connection and reading of actual timestamp values.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1a45d0882e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GPS Time for Small Unmanned Aerial Systems: A primer for better drone technology, Part One]]></title>
            <link>https://dirksavage88.medium.com/gps-time-for-small-unmanned-aerial-systems-a-primer-for-better-drone-technology-part-one-52d91a908323?source=rss-ea5d37bfa51f------2</link>
            <guid isPermaLink="false">https://medium.com/p/52d91a908323</guid>
            <category><![CDATA[hovergames]]></category>
            <category><![CDATA[gps]]></category>
            <category><![CDATA[drone-delivery]]></category>
            <category><![CDATA[drones]]></category>
            <category><![CDATA[gps-navigation]]></category>
            <dc:creator><![CDATA[Andrew Brahim]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 02:14:53 GMT</pubDate>
            <atom:updated>2020-09-11T17:55:39.897Z</atom:updated>
            <content:encoded><![CDATA[<p>GPS Time for Small Unmanned Aerial Systems: A primer for better drone technology, Part One</p><p>Embedded systems in small drone technology have evolved rapidly in light of the availability and ubiquitous nature of commercial and hobby grade small UAS. Part one of this series tells us why the GPS technology these drones rely so heavily upon needs more indepth design and engineering rigor to max out capabilities of the hardware. Subsequent parts in this series will tell us the how, and more importantly the application and use case example.</p><p>Most commercial drones rely on 6 degree of freedom sensors for orientation in a 3d space (MEMS gyroscope and accelerometer), an additional 3 degrees of freedom via an internal compass, and a small GPS receiver for navigation data and autonomous flight planning. The GPS used in most consumer applications utilizes the legacy US GPS constellation (L1/CA for civil use) in addition to the Russian GLONASS, European Galileo, and Chinese BeiDou. The models typically used in small drones are made by Ublox and marketed as the NEO 7 and 8 series, with the 8 series or newer being the only modules capable of all four constellations. Only the relatively new Ublox ZED F9 series capable of more modern US constellations and real time kinematics (accuracy down to millimeters). For comparison the Ublox 8 series features horizontal position accuracy to half a meter. Newer Ublox models also boast a faster Time To First Fix (TTFF), thus reducing “warm up time” when the application is readied to be operational.</p><figure><img alt="An older Neo 7N module on an ASIC common to drone hobby GPS’s" src="https://cdn-images-1.medium.com/max/888/1*UKxXj1mlToyirFPvg3dTGg.jpeg" /><figcaption>An older Neo 7N module on an ASIC common to drone hobby GPS’s</figcaption></figure><p>Choosing the right GPS module for your application is important, but even more vital is knowing how to leverage the module outputs in your embedded application (Drone FMU, companion computer, other sensors and systems).</p><p>Let us talk about pulse per second (PPS) output. PPS is a time synchronization signal that calls for an electrical pulse width of less than one second followed by a steep rise or fall. In a nutshell, it can accurately count seconds. Most, if not all, of Ublox modules allow for PPS output. Its now up to the user to utilize this signal via GPIO, UART, Serial, I2C, or other means. GPS time synchronization supplanted the need for early microcontrollers and embedded microprocessors to use a real time clock (RTC) module. This legacy module used a crystal oscillator and battery to keep time, and is far less accurate than GPS. Further, with PPS signal you have the potential to bring better timing solutions to single board computers such as the Raspberry Pi, or GPU driven computing solutions, such as the Jetson Nano.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*NHfWC4nO0qyhGcOFrlCjZQ.jpeg" /><figcaption>Newer Pixhawk GPS Module based on Ublox Neo-M8N receiver</figcaption></figure><p>These embedded systems rely on the CPU scheduler and Operating system to time events, which can be inaccurate or unreliable at times, especially across different processors on the same system. A modern approach for time discipline of multiple processors on a system connected to a network is Network Time Protocol (NTP), but not all embedded systems have a connection to discipline via NTP. This is generally true of most drones used in small industry operations or where cellular/wifi signal is not available. These network independent drones can really benefit from GPS time, and more specifically, PPS, when dealing with timing of I/O and periodic event driven actions by the CPUs and/or microcontrollers in the same system.</p><p>In Part Two of this series, we will go over an example setup using PPS on a Linux embedded system mounted to a Quadcopter. Stay tuned!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*he3AnR4VmCGd_WwNSAuYBg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52d91a908323" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>