{"id":2822,"date":"2011-05-28T22:07:45","date_gmt":"2011-05-29T02:07:45","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?page_id=2822"},"modified":"2016-11-04T13:41:31","modified_gmt":"2016-11-04T17:41:31","slug":"tips-and-tricks","status":"publish","type":"page","link":"https:\/\/embedded-lab.com\/blog\/tips-and-tricks\/","title":{"rendered":"Tips and Tricks"},"content":{"rendered":"<p><!--Engineering360 728x90 Ad Tag--><\/p>\n<div id='leaderboard1'>\n  <script type='text\/javascript'>\n    googletag.cmd.push(function() {\n      googletag.pubads().display('\/4250\/Embedded-Lab', [728, 90], 'leaderboard1');\n    });\n  <\/script><\/div>\n<p>The following collection of microcontroller Tips and Tricks can be applied to a variety of applications to help make the most of your design.<\/p>\n<table border=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\" width=\"180\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/09\/charger1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-5921\" title=\"DRF5150S_DS18B20\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/09\/charger1.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/a-simple-diy-solar-powered-usb-charger\/\">DIY solar-powered USB charger<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">Yesterday, I built a very simple DIY solar-powered USB charger for my TP-link 10400mAh USB Power Bank. All I needed was a 6V\/3.5W solar panel and the TD1410-based 5V buck converter module. I bought both of them on Aliexpress for less than $8.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\" width=\"180\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/04\/LM35_temp2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-5921\" title=\"DRF5150S_DS18B20\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/04\/LM35_temp2-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=4867\">Testing active analog temperature sensors with a multimeter<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">There are quite a variety of active analog temperature sensor ICs that provide an output voltage proportional to the temperature. They usually don\u2019t require any external calibration and signal conditioning, and as such their output can be directly fed to the input of an ADC for digital processing. A few examples of such sensors are LM34, LM35, TMP35\/36\/37, and MCP9701. If you are having any trouble using any of these sensors in your project, here is a quick way to test if your sensor is working or not.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\" width=\"180\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/08\/DRF5150S_DS18B20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-5921\" title=\"DRF5150S_DS18B20\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/08\/DRF5150S_DS18B20-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=5436\">Building wireless sensor applications with DRF4432A and DRF5150S RF modules <\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">DRF5150S and DRF4432S are two complimentary GFSK RF transmitter and receiver modules working in 433 MHz ISM band and are manufactured by Dorji Applied Technology. The presence of a pre-programmed microcontroller on board allows to connect selected analog and digital sensors directly to the DRF5150S module, which collects data from the sensor and sends out to the DRF4432S module at a configurable interval.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/01\/ACS712_740mA.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-4480\" title=\"ACS712_740mA\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/01\/ACS712_740mA-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=4469\">Measure amps with ACS712 current sensor <\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">This tutorial talks about Allegro ACS712 device which works on the principle of Hall-effect and provides an economical and precise way of sensing AC and DC currents.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/12\/LaunchPadSetup.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-4180\" title=\"LaunchPadSetup\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/12\/LaunchPadSetup-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=4114\">Setting up CCS v4 build and debug environment for MSP430 Launchpad <\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">Here\u2019s a step-by-step guide to set up the CCS v4 build and debug environment to get started with the MSP-EXP430G2 experimenter\u00a0board.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td align=\"center\"><!--Engineering360 300x250 Ad Tag--><\/p>\n<div id='tile1'>\n  <script type='text\/javascript'>\n    googletag.cmd.push(function() {\n      googletag.pubads().display('\/4250\/Embedded-Lab', [300, 250], 'tile1');\n    });\n  <\/script><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table border=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\" width=\"180\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/11\/Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-4050\" title=\"Output\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/11\/Output-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=4040\">Connecting multiple tact switches on a single input pin of a microcontroller <\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">Here&#8217;s a trick of connecting multiple tact switches on a single input pin of a PIC microcontroller. The input pin must be an ADC channel for this technique to work.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/10\/GLCD_Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-3943\" title=\"GLCD_Output\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/10\/GLCD_Output-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=3934\">Use mikroElektronika\u2019s GLCD bitmap editor tool to convert a BMP image in to a data array <\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">This tutorial describes how to use the mikroElektronika\u2019s GLCD bitmap editor tool to convert a monochromatic bit map (BMP) image file into a data array so that it could be displayed on a graphics LCD using a microcontroller.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/09\/IOBoard1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-3691\" title=\"IOBoard1\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/09\/IOBoard1-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=3596\">Experimenter&#8217;s I\/O board for rapid prototyping<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">This article describes a general purpose I\/O board that is easy to construct and is very useful for rapid prototyping of microcontroller-based projects. It can be connected to your breadboard circuit through male jumper wires.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--nextpage--><br \/>\n<!--Engineering360 728x90 Ad Tag--><\/p>\n<div id='leaderboard1'>\n  <script type='text\/javascript'>\n    googletag.cmd.push(function() {\n      googletag.pubads().display('\/4250\/Embedded-Lab', [728, 90], 'leaderboard1');\n    });\n  <\/script><\/div>\n<table>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #e8e8e8; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\" width=\"180\">\n<a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/09\/RF_DataTitle.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-3558\" title=\"RF_DataTitle\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/09\/RF_DataTitle-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=3557\">Wireless data transmission between two PIC microcontrollers using low-cost RF modules<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">A lot of times we need to keep track of data from a device or a sensor located in a remote location from the point where it is processed. This article talks about interfacing low cost RF modules (KST-TX01 and KST-RX806) for transmitting data between two remotely located PIC microcontrollers.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<p style=\"text-align: center;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/07\/100_0412.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-3232 aligncenter\" title=\"100_0412\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/07\/100_0412-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=3226\">Temperature and Relative Humidity measurements using HSM-20G sensor<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">HSM-20G is an analog sensor for measuring temperature and relative humidity. Learn how to interface this sensor with Atmega8 or any other microcontroller to measure these two ambient parameters and display them on a LCD.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/07\/TC74_Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-3170\" title=\"TC74_Output\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/07\/TC74_Output-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=3146\">Using TC74 (Microchip) thermal sensor for temperature measurement<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">The TC74 chip is a serially accessible, digital temperature sensor from Microchip Technology that acquires and converts temperature information from its onboard solid-state sensor with a resolution of 1\u00b0C.This tutorial describes how to use the TC74 sensor with a PIC microcontroller to measure the surrounding temperature.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/07\/FVR_LM34Ckt.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-3053\" title=\"FVR_LM34Ckt\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/07\/FVR_LM34Ckt-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=3045\">Using Fixed Voltage Reference (FVR) for A\/D conversion in enhanced mid-range PIC microcontrollers<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">The enhanced mid-range family microcontrollers are equipped with FVR (fixed voltage reference) module that generates a stable reference voltage internally. This tutorial describes how to use the FVR output as the reference for more accurate A\/D conversion in PIC microcontrollers.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/06\/DS1868_Title.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-2978\" title=\"DS1868_Title\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/06\/DS1868_Title-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=2969\">How to use the DS1868 digital potentiometer with a PIC microcontroller<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">Digital potentiometers are replacing the traditional electro-mechanical forms in many digital applications. This tutorial describes MAXIM&#8217;s DS1868 dual digital potentiometer chip and its interface with a PIC microcontroller.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/06\/MCP23008_Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-2852\" title=\"MCP23008_Output\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/06\/MCP23008_Output-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=2834\">Expand the input\/output capability of your microcontroller with MCP23008<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">There are a number of ways of expanding the I\/O capability of a microcontroller. Use of shift registers can simply expand the output pins but they don&#8217;t have input capabilities. MCP23008 provides both input and output using 2-wire serial interface. This tutorial illustrates how to add an 8-bit I\/O port to PIC12683 microcontroller.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/05\/SHT_Output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-2795\" title=\"SHT_Output\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/05\/SHT_Output-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><strong><a href=\"http:\/\/embedded-lab.com\/blog\/?p=2711\">How to measure relative humidity and temperature with Sensirion&#8217;s SHT1x and SHT7x sensors<\/a><\/strong><\/span><\/h3>\n<p style=\"text-align: left;\">Relative humidity and temperature are important ambient parameters as they can impact on human comfort. Sensirion&#8217;s SHT1x and SHT7x are very popular series of humidity sensors that provide calibrated digital outputs. This tutorial describes how to interface these sensors with PIC microcontroller<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td align=\"center\"><!--Engineering360 300x250 Ad Tag--><\/p>\n<div id='tile1'>\n  <script type='text\/javascript'>\n    googletag.cmd.push(function() {\n      googletag.pubads().display('\/4250\/Embedded-Lab', [300, 250], 'tile1');\n    });\n  <\/script><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #e8e8e8; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\" width=\"180\">\n<a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2010\/10\/Output2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-49\" title=\"Output2\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2010\/10\/Output2-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><a href=\"http:\/\/embedded-lab.com\/blog\/?p=30\"><strong>Serial LCD using shift register (74HC595)<\/strong><\/a><\/span><\/h3>\n<p style=\"text-align: left;\">HD44780 based LCD displays are very popular among hobbyists. They require at least 6 I\/O pins of microcontroller to interface. Here, we describe a technique of reducing the required number of pins to 3 using a shift register. This allows you to include a LCD module to your 8-pin microcontroller based projects.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/02\/Board.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-1820\" title=\"Board\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/02\/Board-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><a href=\"http:\/\/embedded-lab.com\/blog\/?p=1812\"><strong>2-wire keypad interface using 555 timer<\/strong><\/a><\/span><\/h3>\n<p style=\"text-align: left;\">This article describes a technique of interfacing a keypad to a microcontroller using only two I\/O pins. It uses a 555 timer IC configured as an astable multivibrator and pressed key information is retrieved from the frequency of oscillation.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: center; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/02\/ShuntResistor.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-1909\" title=\"ShuntResistor\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2011\/02\/ShuntResistor-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/td>\n<td style=\"border: 1px solid #eaeaea; padding: 6px; text-align: left; vertical-align: middle; background-color: #ffffff; letter-spacing: 0pt; word-spacing: 0pt;\">\n<h3 style=\"text-align: left;\"><span style=\"color: #333333;\"><a href=\"http:\/\/embedded-lab.com\/blog\/?p=1906\"><strong>How to measure DC current with microcontroller<\/strong><\/a><\/span><\/h3>\n<p style=\"text-align: left;\">Microcontrollers usually don\u2019t have specific ports for measuring currents, but they do have ADC channels through which you can measure analog voltages of a certain range. This tutorial explains a method of measuring DC current through a microcontroller&#8217;s ADC channel.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The following collection of microcontroller Tips and Tricks can be applied to a variety of applications to help make the most of your design. DIY solar-powered USB charger Yesterday, I built a very simple DIY solar-powered USB charger for my TP-link 10400mAh USB Power Bank. All I needed was a 6V\/3.5W solar panel and the TD1410-based 5V buck converter module. I bought both of them on Aliexpress for less than $8. Testing active analog temperature sensors with a multimeter There are quite a variety of active analog temperature sensor ICs that provide an output voltage proportional to the temperature. They<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2822","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/pages\/2822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=2822"}],"version-history":[{"count":43,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/pages\/2822\/revisions"}],"predecessor-version":[{"id":12435,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/pages\/2822\/revisions\/12435"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=2822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}