<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>szehau&#039;s weblog</title>
	<atom:link href="https://www.szehau.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.szehau.com</link>
	<description>Life, Internet, Software, Gadgets, Programming and Investments</description>
	<lastBuildDate>Tue, 01 Jun 2021 16:07:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic</title>
		<link>https://www.szehau.com/archives/2021/06/5-essential-things-you-need-to-have-at-your-home-during-the-covid-19-pandemic/</link>
					<comments>https://www.szehau.com/archives/2021/06/5-essential-things-you-need-to-have-at-your-home-during-the-covid-19-pandemic/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Tue, 01 Jun 2021 14:15:46 +0000</pubDate>
				<category><![CDATA[life log]]></category>
		<category><![CDATA[COVID-19]]></category>
		<category><![CDATA[disinfectant spray]]></category>
		<category><![CDATA[face mask]]></category>
		<category><![CDATA[hand santizer]]></category>
		<category><![CDATA[must have]]></category>
		<category><![CDATA[pandemic]]></category>
		<category><![CDATA[pulse oximeter]]></category>
		<guid isPermaLink="false">https://www.szehau.com/?p=1045</guid>

					<description><![CDATA[COVID-19 is real and it is affecting everyone in every corner of the world. We have to protect ourselves and our loved ones from getting the coronavirus and also stop spreading the virus to others. Here are 5 essential things I think you need, at least, to have at home during the pandemic. 1. Face [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1280" height="853" src="https://www.szehau.com/wp-content/uploads/2021/06/mask-4898571_1280.jpg" alt="" class="wp-image-1048"/></figure>



<p>COVID-19 is real and it is affecting everyone in every corner of the world. We have to protect ourselves and our loved ones from getting the coronavirus and also stop spreading the virus to others. Here are 5 essential things I think you need, at least, to have at home during the pandemic.</p>



<p><strong>1. Face Masks</strong></p>



<p>The face mask, either a surgical or medical mask, is essential during the COVID-19 pandemic. Face masks help slow down the spread of coronavirus. As long as you are not at home, you should wear a face mask wherever you go and change it regularly.&nbsp;</p>



<p>I stock up some face masks (both adults and kids) especially when they are on sale. Nowadays, medical masks are widely available at online stores like Shoppee and Lazada.&nbsp;</p>



<p>You may want to consider wearing a face shield when going to a crowded place. It is optically clear and protects the face and mask from direct splatter.</p>



<p><strong>2. Hand Sanitizer and Disinfectant Spray</strong></p>



<p>Hand sanitizer should be at home as well as with you while you are outside your home. Always choose a hand sanitizer containing a minimum of 60% alcohol. If you have a sensitive hand, you can get a hand sanitizer with moisturizer so it creates fewer problems for your hand. </p>



<p>Hand sanitizers are also available in small bottles and it is easy to carry in pocket and bag. Sanitize your hands whenever you touch a public area and there is no soap and water available.</p>



<p>Keep some disinfectant spays at home to clean your cellphones, car doors, bags, vegetable baskets, etc. You can use it easily to clean any surface which might be exposed.&nbsp;</p>



<p><strong>3. Thermometer&nbsp;</strong></p>



<p>A must-have item at your home even not in the coronavirus pandemic. Various types of thermometers are available out there. I think an infra-red-gun type of thermometer is the most convenient one. It measures body temperature from a distance, without contact, and thus provides safety from virus contamination via person-to-person contact.</p>



<p><strong>4. Pulse Oximeter</strong></p>



<p>A pulse oximeter is a small device, that you can clip on your fingertip, that uses light beams to estimate the percentage of oxygen in the blood without drawing a blood sample.</p>



<p>Is a pulse oximeter a necessary thing to have? I think it is recommended to have. Coronavirus cases reached a record high recently in Malaysia and some reports show that COVID-19 may cause hypoxia (a condition in which the body or a region of the body is deprived of adequate oxygen supply at the tissue level) without any symptoms and this is difficult to detect.</p>



<p>Keep one at home and measure regularly just in case you got COVID-19 but do not show any symptoms. COVID-19 may slowly affect your lungs and causing low blood conditions in your body.</p>



<p>You do not need to buy an expensive one that is used in a hospital. It&#8217;s quite cheap at the online store (mostly from China). It does not have to be very accurate because you just need to know your blood oxygen does not go below too far without any symptoms.</p>



<p><strong>5. Supplements And Medicine</strong></p>



<p>You need to ensure you have a good immune system during the pandemic. Stock some supplements, especially vitamins, that can help boost your immune system. Do more exercise and got more exposure to the morning sun (vitamin D).</p>



<p>Make sure your first aid kit contains all essential medicines such as painkillers and paracetamol (for both kids and adults). If any family member is suffering from chronic disorders like diabetes, or hypertension, make sure to stock up their medicine as well.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2021/06/5-essential-things-you-need-to-have-at-your-home-during-the-covid-19-pandemic/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Troubleshooting A Flickering LED Downlight</title>
		<link>https://www.szehau.com/archives/2016/02/troubleshooting-a-flickering-led-downlight/</link>
					<comments>https://www.szehau.com/archives/2016/02/troubleshooting-a-flickering-led-downlight/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Fri, 12 Feb 2016 16:29:12 +0000</pubDate>
				<category><![CDATA[gadget]]></category>
		<category><![CDATA[life log]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[repair]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=966</guid>

					<description><![CDATA[I&#8217;m using LED downlights in my home as the main light source. One of them became flickering. After some research on the Internet, most of them will tell you that maybe theÂ LED driver quality is not good and give unstable voltage to the LEDs. So, I changed the LED driver that I ordered from the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m using LED downlights in my home as the main light source. One of them became flickering. After some research on the Internet, most of them will tell you that maybe theÂ LED driver quality is not good and give unstable voltage to the LEDs.</p>
<p>So, I changed the LED driver that I ordered from the China websites. It works but a month later, the same LED downlight flickered again. I changed the LED driver again and it came back working again.</p>
<p>Last week it became flickering again. So I decided to change the LED driver again today. This time it does not work. The LED downlight is still flickering. I measured the voltage and current of the LED driver output and they are good and stable.</p>
<p>So I suspect one of the LED light inside the downlight isÂ not working properly. There are 12 LED connected in series. Since the LED is providing constant current so it is ok to short one of the LED. So I short the LED one by one to test if the downlight will stop flickering without the shorted LED in the circuit.</p>
<p>I was right! One of the LED was causing the problem. It was not the LED driver problem! Since I don&#8217;t have a spare LED at home, I temporary short the LED legs to prevent it from working. And my LED downlight now working perfectly good!</p>
<p><figure id="attachment_967" aria-describedby="caption-attachment-967" style="width: 700px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-967" src="http://www.szehau.com/wp-content/uploads/2016/02/LED-Downlight.jpg" alt="LED Downlight" width="700" height="933" srcset="https://www.szehau.com/wp-content/uploads/2016/02/LED-Downlight.jpg 700w, https://www.szehau.com/wp-content/uploads/2016/02/LED-Downlight-225x300.jpg 225w" sizes="(max-width: 700px) 100vw, 700px" /><figcaption id="caption-attachment-967" class="wp-caption-text">LED Downlight</figcaption></figure></p>
<p>The LED downlight cost was about RM60. The LED is rated at 12W and it has 12 LEDs inside. So each of the LED is rated at 1W. I&#8217;m going to replace it with the 1W LED I bought from the <a href="http://www.aliexpress.com/item/FREE-SHIPPING-50PCS-LOT-1W-100-110LM-LED-Bulb-IC-SMD-Lamp-Light-Daylight-white-Red/1613003725.html" target="_blank">China Website</a>Â for my <a href="http://www.szehau.com/archives/2015/05/one-watt-led-night-light/">LED night light project</a>, which only cost me about USD0.04 each. It wastes money if I replace the whole LED downlight with a new one :)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2016/02/troubleshooting-a-flickering-led-downlight/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Repair A Broken iPhone Lightning Cable</title>
		<link>https://www.szehau.com/archives/2016/01/repair-a-broken-iphone-lightning-cable/</link>
					<comments>https://www.szehau.com/archives/2016/01/repair-a-broken-iphone-lightning-cable/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Fri, 29 Jan 2016 16:54:43 +0000</pubDate>
				<category><![CDATA[gadget]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[sharing]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=948</guid>

					<description><![CDATA[Have a iPhone lightning cable where its white insulation has been peeled off andÂ the internal wire exposed? If the cable is still functioning, e.g. you are able to charge your phone and transfer data, do not throw it away. You can save the cable by a simple fix. First, you need to find a heat [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Have a iPhone lightning cable where its white insulation has been peeled off andÂ the internal wire exposed?</p>
<p>If the cable is still functioning, e.g. you are able to charge your phone and transfer data, do not throw it away. You can save the cable by a simple fix.</p>
<p><img decoding="async" class="alignnone size-full wp-image-959" src="http://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-1.jpg" alt="Repair A Broken iPhone Lightning Cable" width="700" height="525" srcset="https://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-1.jpg 700w, https://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-1-300x225.jpg 300w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>First, you need to find a heat shrink tube that is about the size of the lightning cable connector. It is better to get a heat shrink that shrink more than 50% when it is heated.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-960" src="http://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-2.jpg" alt="Repair A Broken iPhone Lightning Cable" width="700" height="525" srcset="https://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-2.jpg 700w, https://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-2-300x225.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></p>
<p>Second, cut the heat shrink tube so that it has the length enough to cover the exposed wire and the connector.</p>
<p>Third, apply some heat using heat gun. I don&#8217;t have a heat gun so I use a cigarette lighter. Be careful not to over heat as it will burn your cable. You can also use hair dryer.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-961" src="http://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-3.jpg" alt="Repair A Broken iPhone Lightning Cable" width="700" height="525" srcset="https://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-3.jpg 700w, https://www.szehau.com/wp-content/uploads/2016/01/Repair-A-Broken-iPhone-Lightning-Cable-3-300x225.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></p>
<p>Itâ€<img src="https://s.w.org/images/core/emoji/16.0.1/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s a pretty easy and good looking repair. You can get heat shrink at most of the electronic shops (not the gadget shop). If you stay in KL, you can find electronic shops at Jalan Pasar at Pudu. Alternately, you can buy it online (e.g.Â <a href="http://www.aliexpress.com/item/2015-Value-Assortment-260pcs-21-Polyolefin-H-typeHeat-Shrink-Tubing-Tube-Sleeving-Wrap-Wire-8-Sizes/32281426768.html" target="_blank">Heat Shrink</a>Â &#8211; where I bought mine).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2016/01/repair-a-broken-iphone-lightning-cable/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>New Gadget &#8211; MacBook Pro with Retina Display (2015)</title>
		<link>https://www.szehau.com/archives/2015/11/new-gadget-macbook-pro-with-retina-display-2015/</link>
					<comments>https://www.szehau.com/archives/2015/11/new-gadget-macbook-pro-with-retina-display-2015/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Thu, 12 Nov 2015 16:27:58 +0000</pubDate>
				<category><![CDATA[gadget]]></category>
		<category><![CDATA[life log]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=938</guid>

					<description><![CDATA[Ok. My new gadget is in the house now &#8211; MacBook Pro with Retina Display 2015. It replaces my nearly 5 years old&#8217;s MacBook Air. My MacBook Air is still working good just that it creates a lot of heat and noise (fan) when running heavy stuffs like IDE and compiling source code. Always want [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><figure id="attachment_941" aria-describedby="caption-attachment-941" style="width: 700px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-941" src="http://www.szehau.com/wp-content/uploads/2015/11/MacBook-Pro-with-Retina-Display-2015.jpg" alt="MacBook Pro with Retina Display" width="700" height="933" srcset="https://www.szehau.com/wp-content/uploads/2015/11/MacBook-Pro-with-Retina-Display-2015.jpg 700w, https://www.szehau.com/wp-content/uploads/2015/11/MacBook-Pro-with-Retina-Display-2015-225x300.jpg 225w" sizes="auto, (max-width: 700px) 100vw, 700px" /><figcaption id="caption-attachment-941" class="wp-caption-text">MacBook Pro with Retina Display</figcaption></figure></p>
<p>Ok. My new gadget is in the house now &#8211; MacBook Pro with Retina Display 2015. It replaces my nearly 5 years old&#8217;s <a href="http://www.szehau.com/archives/2011/01/macbook-air-unboxing/">MacBook Air</a>. My MacBook Air is still working good just that it creates a lot of heat and noise (fan) when running heavy stuffs like IDE and compiling source code.</p>
<p>Always want to replace one and now it is the time. MacBook Pro with Retina Display 2015 has more horse power than the Air, about the same thick &#038; dimension of Air, better display, keyboard with back light (oh I can use it in night) but heavier.</p>
<p>Bought this at EpicCentre and come with some free gifts: sleeve, 8GB USB drive and a keyboard protector.</p>
<p>The pre-installed OS is OS X Yosemite so I need another few hours to update to OS X El Captan (which gave some performance on my old MacBook Air).</p>
<p>Hope this gadget will last for another 5 years before another upgrade :)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2015/11/new-gadget-macbook-pro-with-retina-display-2015/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>One Watt LED Night Light</title>
		<link>https://www.szehau.com/archives/2015/05/one-watt-led-night-light/</link>
					<comments>https://www.szehau.com/archives/2015/05/one-watt-led-night-light/#comments</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Fri, 01 May 2015 16:42:10 +0000</pubDate>
				<category><![CDATA[gadget]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[LED]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=915</guid>

					<description><![CDATA[This is a very simple electronic project. I built this as a night light in my sleeping room. The reason for building this was, the existing LED night light that I bought from&#160;the Mr DIY is a bit dangerous because it needs to be connected to AC power source and my daughter always wants to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This is a very simple electronic project. I built this as a night light in my sleeping room.</p>
<p>The reason for building this was, the existing LED night light that I bought from&nbsp;the Mr DIY is a bit dangerous because it needs to be connected to AC power source and my daughter always wants to play with it.</p>
<p>With this LED night light, I can connect it to any mobile phone&#8217;s power bank that has a USB port. And it is safe to play with. It doesn&#8217;t get hot even it ran for hours!</p>
<p><a title="One Watt LED Night Light by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/17125552357"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm8.staticflickr.com/7701/17125552357_80d89e7272.jpg" alt="One Watt LED Night Light" width="500" height="375"/></a></p>
<p>Bill of materials:</p>
<ul>
<li>A <a href="http://s.click.aliexpress.com/e/iAqfMBqR3?af=162257775" target="_blank">one watt LED</a> (RM0.20)- bought it from the China website.</li>
<li>A <a href="http://s.click.aliexpress.com/e/MniMvvfEi?af=162257775" target="_blank">heat sink for&nbsp;LED</a> (RM0.20)- bought it from the China website.</li>
<li>A 39 ohm 1 watt resistor (RM0.10) &#8211; bought it from an electronic shop at Jalan Pasar, <a class="zem_slink" title="Pudu, Kuala Lumpur" href="http://maps.google.com/maps?ll=3.14,101.708&amp;spn=1.0,1.0&amp;q=3.14,101.708 (Pudu%2C%20Kuala%20Lumpur)&amp;t=h" target="_blank" rel="geolocation">Pudu</a></li>
<li>A LM317 voltage regulator (RM1.50) &#8211;&nbsp;bought it from an electronic shop at Jalan Pasar, Pudu</li>
<li>A heat sink for LM317 (RM1.00)&nbsp;&#8211; bought it from an electronic shop at Jalan Pasar, Pudu</li>
<li>A Mamee instant noodle cup &#8211; recycle</li>
<li>A broken iPad USB cable &#8211; recycle</li>
<li>Some card board &#8211; recycle</li>
</ul>
<p>Total cost is less than RM4!</p>
<p>1. First, you will need to solder all the component together. You can refer to the circuit suggested in this website:&nbsp;<a href="http://www.instructables.com/id/Super-simple-high-power-LED-driver/" target="_blank">http://www.instructables.com/id/Super-simple-high-power-LED-driver/</a></p>
<p><a title="One Watt LED Night Light by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/17145426010"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm9.staticflickr.com/8708/17145426010_0c2cd9335c.jpg" alt="One Watt LED Night Light" width="375" height="500"/></a></p>
<p>2. Make a few card boards that cut into the instant noodle cup shape. Make a hole at the middle of one of the card board and put the LED into the middle.</p>
<p><a title="One Watt LED Night Light by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/17145199168"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm8.staticflickr.com/7746/17145199168_dda0995003.jpg" alt="One Watt LED Night Light" width="375" height="500"/></a></p>
<p>3. Pull other electronic components to the back. Put a layer of white paper at the side of LED for better effect. Pull back the electronic components and screw the heat sink and the LM317 together with the card board.</p>
<p><a title="One Watt LED Night Light by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/17145422630"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm9.staticflickr.com/8835/17145422630_e0e79ce0a2.jpg" alt="One Watt LED Night Light" width="375" height="500"/></a></p>
<p>4. Use glue (any) to stick the card board to the instant noodle cup and it&#8217;s all done.</p>
<p><a title="One Watt LED Night Light by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/17146751159"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm8.staticflickr.com/7708/17146751159_d42db687bb.jpg" alt="One Watt LED Night Light" width="500" height="375"/></a></p>
<p>5. I run some test with the watt meter. It&#8217;s working at 0.9 to 1w which is within my expectation!</p>
<p><a title="One Watt LED Night Light by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/17332995815"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm9.staticflickr.com/8762/17332995815_3f016f8495.jpg" alt="One Watt LED Night Light" width="375" height="500"/></a></p>
<p>I can bring this light to any where because it is portable and safe. Including toilet! if I don&#8217;t want to have a very bright light at the mid night when visiting toilet.</p>
<p>So. What&#8217;s next? Maybe a solar panel with rechargeable battery to power this little thing? Stay tuned!</p>
<p>Thanks for reading!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2015/05/one-watt-led-night-light/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Electronics Project &#8211; Simple Card Read Keyboard Emulator Using Arduino Pro Micro</title>
		<link>https://www.szehau.com/archives/2015/04/electronics-project-simple-card-read-keyboard-emulator-using-arduino-pro-micro/</link>
					<comments>https://www.szehau.com/archives/2015/04/electronics-project-simple-card-read-keyboard-emulator-using-arduino-pro-micro/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Tue, 21 Apr 2015 11:32:40 +0000</pubDate>
				<category><![CDATA[gadget]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[electronic]]></category>
		<category><![CDATA[home automation]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=910</guid>

					<description><![CDATA[I bought this little thing &#8211; Micro Pro &#8211; from the China website. I think it is a clone or compatible to the SparkFun&#8217;s Micro Pro. It is easy to use. It comes with USB that you can use it to program the microcontroller or let the microcontroller to communicate with your computer. You can [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I bought this little thing &#8211; <a title="Micro Pro" href="http://s.click.aliexpress.com/klk/a6IeIYNrV" target="_blank">Micro Pro</a> &#8211; from the China website. I think it is a clone or compatible to the <a title="Micro Pro" href="https://www.sparkfun.com/products/12640" target="_blank">SparkFun&#8217;s Micro Pro</a>. It is easy to use. It comes with USB that you can use it to program the microcontroller or let the microcontroller to communicate with your computer. You can simply useÂ the Keyboard library from the Arduino to program a keyboard emulator: <a href="http://www.arduino.cc/en/Reference/KeyboardPrintln" target="_blank">http://www.arduino.cc/en/Reference/KeyboardPrintln</a>.</p>
<p><a title="Arduino Pro Micro - Simple Card Read Keyboard Emulator by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/16599714694"><img loading="lazy" decoding="async" src="https://farm8.staticflickr.com/7652/16599714694_d3a1538a6a_z.jpg" alt="Arduino Pro Micro - Simple Card Read Keyboard Emulator" width="640" height="480" /></a></p>
<p>Below is the specification of the microcontroller:</p>
<ul>
<li>ATmega32U4 running at 5V/16MHz</li>
<li>Supported under Arduino IDE v1.0.1</li>
<li>On-Board micro-USB connector for programming</li>
<li>4 x 10-bit ADC pins</li>
<li>12 x Digital I/Os (5 are PWM capable)</li>
<li>Rx and Tx Hardware Serial Connections</li>
</ul>
<p>Below is the source code for my program that emulates a card reader keyboard:</p>
<pre>int button = 2;

void setup() {
  pinMode(button, INPUT_PULLUP); // Use internal pull up resistor
  Keyboard.begin();
}

void loop() {
  int pressed = digitalRead(button) == 0;
  if (pressed) delay(500);
  if (pressed &amp;&amp; digitalRead(button) == 0) {
    Keyboard.println("111111");
    delay(2000);
  } else if (pressed) {
    Keyboard.println("222222");
    delay(2000);
  }
}</pre>
<p>If you press the button once quickly, the microcontroller will send the card data string &#8220;111111&#8221; (with new line) to your PC via USB HID keyboard driver.</p>
<p>If you press the button once a little bit longer (around 500 milliseconds), the microcontroller will send the card data string &#8220;222222&#8221; (with new line)Â to your PC via USB HID keyboard driver.</p>
<p>I&#8217;m using a internal pull up resistor in the microcontroller itself so that I do not need to have a external resistor to pull up or down the floating digital pin (when used as input). When the input pin is pull down (when the switch is pressed) to the ground, the digitalRead will return zero value and otherwise it will be value one.</p>
<p>It&#8217;s so simple that you can make your program ready within minutes. Of course, you must first make sure the programming environment (IDE, the COM port of the Micro Pro is properly installed) is ready.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2015/04/electronics-project-simple-card-read-keyboard-emulator-using-arduino-pro-micro/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>McDonald&#8217;s Gift Voucher From Line</title>
		<link>https://www.szehau.com/archives/2014/11/mcdonalds-gift-voucher-from-line/</link>
					<comments>https://www.szehau.com/archives/2014/11/mcdonalds-gift-voucher-from-line/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Tue, 18 Nov 2014 11:48:11 +0000</pubDate>
				<category><![CDATA[life log]]></category>
		<category><![CDATA[LINE]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=899</guid>

					<description><![CDATA[Thanks @LINEMalaysia for sending this RM10 McDonald&#8217;s gift voucher to me! You can get this when you are new user and actively use LINE within a specified period. LINE is one of the social networking application I use frequently recently. To me, I don&#8217;t use mainly for social networking but more on connecting to the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Thanks @LINEMalaysia for sending this RM10 McDonald&#8217;s gift voucher to me! You can get this when you are new user and actively use LINE within a specified period.</p>
<p><a title="McDonald's gift certificate from LINE by szehau, on Flickr" href="https://www.flickr.com/photos/szehau/15787859026"><img loading="lazy" decoding="async" class="aligncenter" src="https://farm9.staticflickr.com/8419/15787859026_e5b8840405.jpg" alt="McDonald's gift certificate from LINE" width="500" height="375" /></a></p>
<p>LINE is one of the social networking application I use frequently recently. To me, I don&#8217;t use mainly for social networking but more on connecting to the merchants that I&#8217;m interested in to find out deals and freebie :)</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2014/11/mcdonalds-gift-voucher-from-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Electronics Project &#8211; Raspberry Pi + Attiny85 + LCD 1620</title>
		<link>https://www.szehau.com/archives/2014/07/electronics-project-raspberry-pi-attiny85-lcd-1620/</link>
					<comments>https://www.szehau.com/archives/2014/07/electronics-project-raspberry-pi-attiny85-lcd-1620/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Mon, 28 Jul 2014 08:57:29 +0000</pubDate>
				<category><![CDATA[gadget]]></category>
		<category><![CDATA[life log]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Attiny85]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[LCD 1602]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=889</guid>

					<description><![CDATA[I always want to start an electronic project that build a home automation system but I don&#8217;t have much time. Don&#8217;t have time is just a bad excuse. So to make thing starts, I start buying electronic components and devices that I need and trying them one by one. These are the things I have [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I always want to start an electronic project that build a home automation system but I don&#8217;t have much time. Don&#8217;t have time is just a bad excuse. So to make thing starts, I start buying electronic components and devices that I need and trying them one by one.</p>
<p><span id="more-889"></span></p>
<p>These are the things I have bought:</p>
<ul>
<li>A <a title="Raspberry Pi" href="http://www.allgadget.com/2013/01/raspberry-pi/" target="_blank">Raspberry Pi</a> model B</li>
<li>An Arduino starter kits</li>
<li>GPIO T-Cobbler and cable</li>
<li>Some Attiny85 mcu &#8211; a low power, 8 pins, AVR microprocessor</li>
</ul>
<p>The basic idea of my home automation system is to create wireless sensor nodes that send data wirelessly to aÂ central server. The sensors&#8217; data will be gathered at central server, processed, Â stored in database and will be presented to users via LCD display, HDMI display and website.</p>
<p>Sensors (like reed sensor and temperature sensor) will be connected to Attiny85 and Attiny85 will read data from the sensor and send the data to the server via radio transmitter module using radio wave. These components will form a sensor node.</p>
<p>Raspberry Pi (the central server) will connect to another Attiny85 which will then connect to a radio receiver module. Raspberry Pi will receive data from sensor nodes and the data will then be processed and stored in database.</p>
<p>Before assemble to whole home automation system, I have to test the components out so that I can make sure they can work correctly and they work as what I have expected theoretically the way they should work.</p>
<p>Making electronic project is fun. It takes some time to learn and it makes your hand dirty!</p>
<p>So, what I have done so far?</p>
<ul>
<li>I&#8217;m able to load the blink project into both Arduino and Attiny85.</li>
<li>I&#8217;m able to make Attiny85 to talk to PC via serial communication.</li>
<li>I&#8217;m able to make Attiny85 to talk to Raspberry Pi via serial communication.</li>
<li>I&#8217;m able to make Raspberry Pi to display text on the LCD 1602 using I2C communication protocol.</li>
</ul>
<p>The picture below shows the Raspberry Pi output text to the LCD display and at the same time receive data from Attiny85. It takes the whole day to program the LCD driver in Java (ported from Arduino&#8217;s LiquidDisplay driver and interface with Pi4J&#8217;s I2C library) as there is no existing driver available on the Internet.</p>
<p><img loading="lazy" decoding="async" src="https://farm3.staticflickr.com/2919/14761854701_2f22664a68.jpg" alt="Raspberry Pi + Attiny85 + LCD 1620" width="500" height="375" /></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" src="https://farm6.staticflickr.com/5586/14784892193_b4c5de8171.jpg" alt="Raspberry Pi + Attiny85 + LCD 1620" width="500" height="375" /></p>
<p>One of the major obstacle in writing the drive is that the China&#8217;s version of LCD 1602 wires the data cable in the reverse position and it tookÂ some time to discover this! Great that it is now working correctly!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2014/07/electronics-project-raspberry-pi-attiny85-lcd-1620/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>#MH370 Live News</title>
		<link>https://www.szehau.com/archives/2014/03/mh370-live-news/</link>
					<comments>https://www.szehau.com/archives/2014/03/mh370-live-news/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Tue, 11 Mar 2014 11:20:09 +0000</pubDate>
				<category><![CDATA[internet]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=831</guid>

					<description><![CDATA[Probably you have already heard about the Malaysia Airline plane, MH370 mysteriously went missing in the air last Saturday. MH370 went missing for four days with 239 people on board and the search is still in progress.Â There are many hoax and inaccurate information being circulate around the social media and blogs. You can actually get [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Probably you have already heard about the Malaysia Airline plane, MH370 mysteriously went missing in the air last Saturday. MH370 went missing for four days with 239 people on board and the search is still in progress.Â There are many hoax and inaccurate information being circulate around the social media and blogs.</p>
<p><img loading="lazy" decoding="async" class="aligncenter" alt="MH370" src="http://farm4.staticflickr.com/3359/13081161875_537a65123b.jpg" width="500" height="333" /></p>
<p>You can actually get the latest updates on-line from Astro Awani Live TV:Â <a href="http://english.astroawani.com/videos/live" target="_blank">http://english.astroawani.com/videos/live</a>Â or visit the live update blog from theguardian.com: <a href="http://www.theguardian.com/world/blog/2014/mar/11/malaysia-airlines-mh370-search-refocused-on-malacca-straits-live-updates" target="_blank">http://www.theguardian.com/world/blog/2014/mar/11/malaysia-airlines-mh370-search-refocused-on-malacca-straits-live-updates</a></p>
<p>You can also help to search the missing plane using the satellite map atÂ <a href="http://www.tomnod.com/nod/challenge/malaysiaairsar2014" target="_blank">http://www.tomnod.com/nod/challenge/malaysiaairsar2014</a>. The crowdsourced effort that is being spearheaded by Digital Globe requires users to help go through 1200 square miles of ocean, and tag any suspicious objects that could lead SAR teams to the location.</p>
<p>You can also see what people talking about the MH370 case at twitter with hashtag <a href="https://twitter.com/search?q=%23MH370&amp;src=hash" target="_blank">#MH370</a> or <a href="https://twitter.com/search?q=%23PrayforMH370&amp;src=hash" target="_blank">#PrayforMH370</a>.</p>
<p>Pray hard for them!</p>
<p>Please come back MH370, we are waiting for you!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2014/03/mh370-live-news/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Malaysia Air Pollution Index (API) And Survial Guide</title>
		<link>https://www.szehau.com/archives/2014/03/malaysia-air-pollution-index-api-and-survial-guide/</link>
					<comments>https://www.szehau.com/archives/2014/03/malaysia-air-pollution-index-api-and-survial-guide/#respond</comments>
		
		<dc:creator><![CDATA[Sze Hau]]></dc:creator>
		<pubDate>Tue, 04 Mar 2014 03:24:48 +0000</pubDate>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[life log]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[haze]]></category>
		<guid isPermaLink="false">http://www.szehau.com/?p=828</guid>

					<description><![CDATA[The haze hits Malaysia again. Several areas in Malaysia, including Selangor and Sembilan are reaching unhealthy level. With the hot weather, water disruption and no raining for a long time, make the haze even more worse. Haze in Malaysia The main cause of the haze is the open burning in Indonesiaâ€™s Riau recently. According to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The haze hits Malaysia again. Several areas in Malaysia, including Selangor and Sembilan are reaching unhealthy level. With the hot weather, water disruption and no raining for a long time, make the haze even more worse.</p>
<h2>Haze in Malaysia</h2>
<p>The main cause of the haze is the open burning in Indonesiaâ€<img src="https://s.w.org/images/core/emoji/16.0.1/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s Riau recently. According to the National Disaster Mitigation Agency, about 7,972ha of land and forests have been destroyed by fires in the province. The smoke fire has caused many people in the province to suffer various respiratory problems.</p>
<p>To monitor the haze condition, Google has recently launched a Southeast Asia (SEA) Haze Crisis Map for the public to keep an eye on the air quality levels.</p>
<p><iframe loading="lazy" style="border: 1px solid #ccc;" src="http://google.org/crisismap/google.com/SEAHaze?hl=en-GB&amp;llbox=9.76%2C-9.62%2C131.32%2C87.77&amp;t=ROADMAP&amp;layers=16%2C19%2C21%2C17%2C59%2C78&amp;embedded=true" height="400" width="400"></iframe></p>
<h2>Survival Guide</h2>
<p>The haze can pose serious health hazard, especially to those with a history of respiratory illness. Other than respiratory illness, it can also affect the throat, eyes and skin. Below are some guides to survives throughout these haze-days:</p>
<p><strong>Stay indoor</strong></p>
<p>Stay indoor as much as possible. Stay inside your house or in a building with air-conditioned or air purifier. Do not go out for an outdoor activity. Make sure your windows and ventilation outlets at home are closed properly.</p>
<p><strong>Drink more water</strong></p>
<p>Drink at least 2 litres of water a day to stay hydrated. Stay away from drinks that can cause dehydration. For instance,Â alcohol and coffee.</p>
<p><strong>Bring along instant fixes</strong></p>
<p>Always make sure to have these items in your bag: face mask, eye drops, water bottle, tissue, wet wipes. These will be your instant fixes in case of red eyes, scratchy throat and trouble with breathing.</p>
<p><strong>Monitor API</strong></p>
<p>Keep yourself updated on the haze. Check the pollution index before you go out from your home, be it to work or to travel to other states. You can always refer to the local news paper or the <a href="http://apims.doe.gov.my/apims/hourly2.php" target="_blank">Department of Environment (DOE) websites</a> which updates on every two hours. You can also check the API on <a href="http://google.org/crisismap/google.com/SEAHaze" target="_blank">Google&#8217;s Haze Crisis Map</a>.</p>
<p><strong>Consult the doctor</strong></p>
<p>Always seek for the doctor immediately if you are feeling uncomfortable, especially if you are having difficulty in breathing. Always brings your medical solutions during the haze period if you are having breathing or skin problems.</p>
<p>The haze problem is not something we can stop immediately, what we can do is to protect ourself and loved ones from health issues. Hope everyone can stay healthy throughout these haze-days.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.szehau.com/archives/2014/03/malaysia-air-pollution-index-api-and-survial-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
