{"id":456,"date":"2025-06-01T19:45:19","date_gmt":"2025-06-01T19:45:19","guid":{"rendered":"https:\/\/m1fly.duckdns.org\/?page_id=456"},"modified":"2025-06-21T10:09:06","modified_gmt":"2025-06-21T10:09:06","slug":"pi-stuff","status":"publish","type":"page","link":"https:\/\/m1fly.duckdns.org\/index.php\/pi-stuff\/","title":{"rendered":"Pi Stuff"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Bus power<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The pi will limit the power available to your device on the USB bus due to its power limitations.  I am using a USB hub and supplying 5v @ 3A.  This tells the pi to STFU <\/p>\n\n\n<pre class=\"wp-block-code plover-prism prism-github-dark-theme language-clike\"><code>import os\nos.system(\"echo 1 &gt; \/sys\/bus\/usb\/devices\/1-1.3\/bConfigurationValue\")\nos.system(\"echo 1 &gt; \/sys\/bus\/usb\/devices\/1-1.4\/bConfigurationValue\")\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Non Serial GPS?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I have a Bluetooth  one.<\/p>\n\n\n<pre class=\"wp-block-code plover-prism prism-github-dark-theme language-clike\"><code>#!\/bin\/sh\nsudo rfcomm bind \/dev\/rfcomm0 00:15:4B:01:84:EC\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t use my mac address use your own! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WiFi Won&#8217;t reconnect<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Stupid thing,  I put it in my pocket and walked out of WiFi range for a bit.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am back in WiFi range, still no pi. Cron and Script fix&#8230;<\/p>\n\n\n<pre class=\"wp-block-code plover-prism prism-github-dark-theme language-clike\"><code>#!\/bin\/bash\n\n#echo \"Script was run @ $(date)\" &gt;&gt;\/var\/log\/wifi_reconnect\n\n# The IP for the server you wish to ping\nSERVER=$(\/sbin\/ip route | awk '\/default\/ { print $3 }')\n\n#echo \"&gt; Server: ${SERVER}\" &gt;&gt;\/var\/log\/wifi_reconnect\n\n# Specify wlan interface\nWLANINTERFACE=wlan0\n\n#echo \"&gt; WLAN Interface: ${WLANINTERFACE}\" &gt;&gt;\/var\/log\/wifi_reconnect\n\n# Send two pings, sending output to \/dev\/null\nping -I ${WLANINTERFACE} -c2 ${SERVER} &gt;\/dev\/null\n\n# If the return code from ping ($?) is not 0 (meaning there was an error)\nif [ $? != 0 ]\nthen\n#echo \"&gt; WiFi no worky. Restart!\" &gt;&gt;\/var\/log\/wifi_reconnect\n# Restart the wireless interface\nip link set wlan0 down\nip link set wlan0 up\n#else\n#echo \"&gt; WiFi works. No restart\" &gt;&gt;\/var\/log\/wifi_reconnect\nfi\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Unicode Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To enter a font glyph&#8217;s code on Linux,  use a combination of keys and the character&#8217;s hexadecimal code. The most common method is <mark>Ctrl + Shift + U followed by the hexadecimal code and then pressing Enter<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Forgot the time<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Less_than_one_second\">Less than one second<\/h2>\n\n\n\n<figure class=\"wp-block-table alignfull\"><table class=\"has-fixed-layout\"><tbody><tr><th>Multiple<br>of a<br>second<\/th><th>Unit<\/th><th>Symbol<\/th><th>Definition<\/th><th>Comparative examples &amp; common units<\/th><\/tr><tr><td>10<sup>\u221244<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Planck_time\">Planck time<\/a><\/th><td><em>t<\/em><sub>P<\/sub><\/td><td>Presumed to be the shortest theoretically measurable time interval<br>(but not necessarily the shortest <em>increment<\/em> of time\u2014see <a href=\"https:\/\/en.wikipedia.org\/wiki\/Quantum_gravity\">quantum gravity<\/a>)<\/td><td><strong>10<sup>\u221214<\/sup>&nbsp;qs<\/strong>: The length of one <a href=\"https:\/\/en.wikipedia.org\/wiki\/Planck_time\">Planck time<\/a> (<em>t<\/em><sub>P<\/sub> = \u210f G \/ c 5 <img decoding=\"async\" src=\"https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/f695727ded3b7838c58892e44305bf67e83fa413\" alt=\"{\\displaystyle {\\sqrt {\\hbar G\/c^{5}}}}\"> \u2248 5.39\u00d710<sup>\u221244<\/sup>&nbsp;s)<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-3\">[3]<\/a><\/sup> is the briefest physically meaningful span of time. It is the unit of time in the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Natural_units\">natural units<\/a> system known as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Planck_units\">Planck units<\/a>.<\/td><\/tr><tr><td>10<sup>\u221230<\/sup><\/td><th>quectosecond<\/th><td>qs<\/td><td><strong>Quectosecond<\/strong>, (<em><a href=\"https:\/\/en.wikipedia.org\/wiki\/Quecto-\">quecto-<\/a><\/em> + <em>second<\/em>), is one <a href=\"https:\/\/en.wikipedia.org\/wiki\/Names_of_large_numbers\">nonillionth<\/a> of a second<\/td><td><\/td><\/tr><tr><td>10<sup>\u221227<\/sup><\/td><th>rontosecond<\/th><td>rs<\/td><td><strong>Rontosecond<\/strong>, (<em><a href=\"https:\/\/en.wikipedia.org\/wiki\/Ronto-\">ronto-<\/a><\/em> + <em>second<\/em>), is one <a href=\"https:\/\/en.wikipedia.org\/wiki\/Names_of_large_numbers\">octillionth<\/a> of a second<\/td><td><strong>300 rs<\/strong>: The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Mean_lifetime\">mean lifetime<\/a> of <a href=\"https:\/\/en.wikipedia.org\/wiki\/W_and_Z_bosons\">W and Z bosons<\/a><\/td><\/tr><tr><td>10<sup>\u221224<\/sup><\/td><th>yoctosecond<\/th><td>ys<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-4\">[4]<\/a><\/sup><\/td><td><strong>Yoctosecond<\/strong>, (<em><a href=\"https:\/\/en.wikipedia.org\/wiki\/Yocto-\">yocto-<\/a><\/em> + <em>second<\/em>), is one <a href=\"https:\/\/en.wikipedia.org\/wiki\/Names_of_large_numbers\">septillionth<\/a> of a second<\/td><td><strong>86 ys<\/strong>: The estimated value on the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Half-life\">half-life<\/a> of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Isotopes_of_hydrogen#Hydrogen-5\">isotope 5 of hydrogen (hydrogen-5)<\/a><br><strong>143 ys<\/strong>: The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Half-life\">half-life<\/a> of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Isotopes_of_nitrogen\">nitrogen-10<\/a> isotope of nitrogen<br><strong>156 ys<\/strong>: The mean lifetime of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Higgs_Boson\">Higgs Boson<\/a><\/td><\/tr><tr><td>10<sup>\u221221<\/sup><\/td><th>zeptosecond<\/th><td>zs<\/td><td><strong>Zeptosecond<\/strong>, (<em><a href=\"https:\/\/en.wikipedia.org\/wiki\/Zepto-\">zepto-<\/a><\/em> + <em>second<\/em>), is one <a href=\"https:\/\/en.wikipedia.org\/wiki\/Names_of_large_numbers\">sextillionth<\/a> of one second<\/td><td><strong>1.3 zs<\/strong>: Smallest experimentally controlled time delay in a photon field.<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-5\">[5]<\/a><\/sup><br><strong>2 zs<\/strong>: The representative cycle time of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Gamma_ray\">gamma ray<\/a> radiation released in the decay of a radioactive <a href=\"https:\/\/en.wikipedia.org\/wiki\/Atomic_nucleus\">atomic nucleus<\/a> (here as 2 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Electronvolt\">MeV<\/a> per emitted <a href=\"https:\/\/en.wikipedia.org\/wiki\/Photon\">photon<\/a>)<br><strong>4 zs<\/strong>: The cycle time of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Zitterbewegung\">zitterbewegung<\/a> of an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Electron\">electron<\/a> ( \u03c9 = 2 m e c 2 \/ \u210f <img decoding=\"async\" src=\"https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/9c50ec1a966d5043b628b5ec0968fb1601cee341\" alt=\"{\\displaystyle \\omega =2m_{e}c^{2}\/\\hbar }\">)<br><strong>247 zs<\/strong>: The experimentally-measured travel time of a photon across a hydrogen molecule, &#8220;for the average bond length of molecular hydrogen&#8221;<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-6\">[6]<\/a><\/sup><\/td><\/tr><tr><td>10<sup>\u221218<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Attosecond\">attosecond<\/a><\/th><td>as<\/td><td>One quintillionth of one second<\/td><td><strong>12 as<\/strong>: The best timing control of laser pulses.<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-7\">[7]<\/a><\/sup><br><strong>43 as<\/strong>: The shortest X-ray laser pulse<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-8\">[8]<\/a><\/sup><br><strong>53 as<\/strong>: The shortest electron laser pulse<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-9\">[9]<\/a><\/sup><sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-10\">[10]<\/a><\/sup><\/td><\/tr><tr><td>10<sup>\u221215<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Femtosecond\">femtosecond<\/a><\/th><td>fs<\/td><td>One quadrillionth of one second<\/td><td><strong>1 fs<\/strong>: The cycle time for ultraviolet light with a wavelength of 300 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Nanometre\">nanometres<\/a>; the time it takes light to travel a distance of 0.3 micrometres (\u03bcm).<br><strong>7.58 fs<\/strong>: The period of vibration of a hydrogen molecule.<br><strong>140 fs<\/strong>: The time needed for electrons to have localized onto individual <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bromine\">bromine<\/a> atoms 6 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Angstrom\">\u00c5ngstrom<\/a> apart after <a href=\"https:\/\/en.wikipedia.org\/wiki\/Femtochemistry\">laser dissociation<\/a> of Br<sub>2<\/sub>.<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-li-visualizing-11\">[11]<\/a><\/sup><br><strong>290 fs<\/strong>: The lifetime of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Tauon\">tauon<\/a><\/td><\/tr><tr><td>10<sup>\u221212<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Picosecond\">picosecond<\/a><\/th><td>ps<\/td><td>One trillionth of one second<\/td><td><strong>1 ps<\/strong>: The mean lifetime of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bottom_quark\">bottom quark<\/a>; the time needed for light to travel 0.3 millimetres (mm)<br><strong>1 ps<\/strong>: The typical lifetime of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Transition_state_theory\">transition state<\/a> one machine cycle by an IBM <a href=\"https:\/\/en.wikipedia.org\/wiki\/Silicon-germanium#SiGe_transistors\">silicon-germanium transistor<\/a><br><strong>109 ps<\/strong>: The period of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Photon_energy\">photon corresponding to<\/a> the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hyperfine_structure\">hyperfine transition<\/a> of the ground state of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cesium-133\">cesium-133<\/a>, and one 9,192,631,770th of one second <a href=\"https:\/\/en.wikipedia.org\/wiki\/Caesium_standard\">by definition<\/a><br><strong>114.6 ps<\/strong>: The time for the fastest overclocked processor as of 2014 to execute one machine cycle.<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-12\">[12]<\/a><\/sup><br><strong>696 ps<\/strong>: How much more a second lasts far away from Earth&#8217;s gravity due to the effects of <a href=\"https:\/\/en.wikipedia.org\/wiki\/General_relativity\">general relativity<\/a><\/td><\/tr><tr><td>10<sup>\u22129<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Nanosecond\">nanosecond<\/a><\/th><td>ns<\/td><td>One billionth of one second<\/td><td><strong>1 ns<\/strong>: The time needed to execute one machine cycle by a 1&nbsp;GHz microprocessor<br><strong>1 ns<\/strong>: The time light takes to travel 30 cm (11.811 in)<\/td><\/tr><tr><td>10<sup>\u22126<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Microsecond\">microsecond<\/a><\/th><td>\u03bcs<\/td><td>One millionth of one second<\/td><td><strong>1 \u03bcs<\/strong>: The time needed to execute one machine cycle by an Intel 80186 microprocessor<br><strong>2.2 \u03bcs<\/strong>: The lifetime of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Muon\">muon<\/a><br><strong>4\u201316 \u03bcs<\/strong>: The time needed to execute one machine cycle by a 1960s <a href=\"https:\/\/en.wikipedia.org\/wiki\/Minicomputer\">minicomputer<\/a><\/td><\/tr><tr><td>10<sup>\u22123<\/sup><\/td><th><a href=\"https:\/\/en.wikipedia.org\/wiki\/Millisecond\">millisecond<\/a><\/th><td>ms<\/td><td>One thousandth of one second<\/td><td><strong>1 ms<\/strong>: The time for a neuron in the human brain to fire one impulse and return to rest<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-13\">[13]<\/a><\/sup><br><strong>4\u20138 ms<\/strong>: The typical <a href=\"https:\/\/en.wikipedia.org\/wiki\/Seek_time\">seek time<\/a> for a computer hard disk<br><\/td><\/tr><tr><td>10<sup>\u22122<\/sup><\/td><th>centisecond<\/th><td>cs<\/td><td>One hundredth of one second<\/td><td><strong>1.6667 cs<\/strong>: The period of a frame at a frame rate of 60&nbsp;Hz.<br><strong>2 cs<\/strong>: The cycle time for European 50&nbsp;Hz AC electricity <strong>10\u201320 cs<\/strong> (=0.1\u20130.2 s): The human <a href=\"https:\/\/en.wikipedia.org\/wiki\/Reflex\">reflex<\/a> response to visual stimuli<\/td><\/tr><tr><td>10<sup>\u22121<\/sup><\/td><th>decisecond<\/th><td>ds<\/td><td>One tenth of a second<\/td><td><strong>1\u20134 ds<\/strong> (=0.1\u20130.4 s): The length of a single blink of an eye<sup><a href=\"https:\/\/en.wikipedia.org\/wiki\/Orders_of_magnitude_(time)#cite_note-14\">[14]<\/a><\/sup><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"More_than_one_second\"><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Bus power The pi will limit the power available to your device on the USB bus due to its power limitations. I am using a USB hub and supplying 5v @ 3A. This tells the pi to STFU Non Serial GPS? I have a Bluetooth one. Don&#8217;t use my mac address use your own! WiFi [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-456","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/pages\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/comments?post=456"}],"version-history":[{"count":6,"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/pages\/456\/revisions"}],"predecessor-version":[{"id":513,"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/pages\/456\/revisions\/513"}],"wp:attachment":[{"href":"https:\/\/m1fly.duckdns.org\/index.php\/wp-json\/wp\/v2\/media?parent=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}