{"id":6587,"date":"2024-07-14T05:36:48","date_gmt":"2024-07-14T05:36:48","guid":{"rendered":"https:\/\/surinlearninglab.com\/?p=6587"},"modified":"2025-05-02T01:52:09","modified_gmt":"2025-05-02T01:52:09","slug":"8-bit-binary-counter","status":"publish","type":"post","link":"https:\/\/surinlearninglab.com\/th\/2024\/07\/14\/8-bit-binary-counter\/","title":{"rendered":"8 Bit Binary Counter"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"6587\" class=\"elementor elementor-6587\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3ac27624 elementor-section-content-middle elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3ac27624\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fff75a1\" data-id=\"fff75a1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5e865379 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"5e865379\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?fit=1024%2C585&amp;ssl=1\" class=\"attachment-large size-large wp-image-6591\" alt=\"8 Bit Binary counter Arduino\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?w=1792&amp;ssl=1 1792w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?resize=300%2C171&amp;ssl=1 300w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?resize=1024%2C585&amp;ssl=1 1024w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?resize=768%2C439&amp;ssl=1 768w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?resize=1536%2C878&amp;ssl=1 1536w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?resize=18%2C10&amp;ssl=1 18w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/AI-8bit-analog-counter.webp?w=700&amp;ssl=1 700w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure><div class=\"elementor-image-box-content\"><h2 class=\"elementor-image-box-title\">8 Bit Binary Counter<\/h2><p class=\"elementor-image-box-description\">Hey Science Enthusiasts! Today, we're tackling an intriguing project that visually and mechanically demonstrates numbers using an Arduino board. We'll be controlling eight servos, each representing a bit in a byte, to display numbers in binary form, alongside a TM1637 7-segment display that shows these numbers in decimal. This setup is a fantastic exploration of binary arithmetic, servo mechanics, and dynamic display methods. Let\u2019s get your setup ready!<\/p><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3d94936c elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"3d94936c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6ad0010e elementor-widget elementor-widget-heading\" data-id=\"6ad0010e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0e27\u0e31\u0e2a\u0e14\u0e38\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49:<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-71214083 elementor-widget elementor-widget-text-editor\" data-id=\"71214083\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>\u0e2d\u0e32\u0e23\u0e4c\u0e14\u0e39\u0e2d\u0e35\u0e42\u0e19\u0e48<strong> Board<\/strong>: Serves as the control center for the servos and display.<\/li><li><strong>8 x Servo Motors<\/strong>: For physical representation of binary numbers.<\/li><li><strong>TM1637 7-segment Display<\/strong>: To show numbers in decimal.<\/li><li><strong>Jumper Wires<\/strong>: To connect components.<\/li><li><strong>\u0e41\u0e1c\u0e48\u0e19\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e27\u0e07\u0e08\u0e23 (\u0e40\u0e1a\u0e23\u0e14\u0e1a\u0e2d\u0e23\u0e4c\u0e14)<\/strong>: Helpful for organizing connections (optional but recommended).<\/li><li><strong>Sensor Shield v5.0:<\/strong> To connect servos<\/li><li><strong>Adjustable Breadboard Power Supply<\/strong>: To manage servo power requirements. <strong>OR\u00a0<\/strong>DC to DC buck converter.<\/li><li><strong>12V Power Source<\/strong>: To drive the breadboard power supply, ensuring adequate current for the servos.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-364e31a1 elementor-widget elementor-widget-image-gallery\" data-id=\"364e31a1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-gallery.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-image-gallery\">\n\t\t\t\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"download (4)\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjA5NCwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNlwvZG93bmxvYWQtNC0xLmpwZyIsInNsaWRlc2hvdyI6IjM2NGUzMWExIn0%3D\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/download-4-1.jpg?ssl=1\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/download-4-1.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/download-4-1.jpg?w=225&amp;ssl=1 225w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/download-4-1.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/download-4-1.jpg?resize=12%2C12&amp;ssl=1 12w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"jump wires\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjIxNiwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wNlwvanVtcC13aXJlcy5qcGciLCJzbGlkZXNob3ciOiIzNjRlMzFhMSJ9\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/jump-wires.jpg?ssl=1\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/jump-wires.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Bread Board Jump Wires\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/jump-wires.jpg?w=225&amp;ssl=1 225w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/jump-wires.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/06\/jump-wires.jpg?resize=12%2C12&amp;ssl=1 12w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"download (5)\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjU5NywidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wN1wvZG93bmxvYWQtNS5qcGciLCJzbGlkZXNob3ciOiIzNjRlMzFhMSJ9\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-5.jpg?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-5.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-5.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-5.jpg?resize=12%2C12&amp;ssl=1 12w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"download (3)\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjU5OCwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wN1wvZG93bmxvYWQtMy5qcGciLCJzbGlkZXNob3ciOiIzNjRlMzFhMSJ9\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-3.jpg?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-3.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-3.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-3.jpg?resize=13%2C12&amp;ssl=1 13w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"download (2)\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjU5OSwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wN1wvZG93bmxvYWQtMi5qcGciLCJzbGlkZXNob3ciOiIzNjRlMzFhMSJ9\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-2.jpg?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-2.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-2.jpg?w=225&amp;ssl=1 225w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-2.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-2.jpg?resize=12%2C12&amp;ssl=1 12w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"download (7)\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjYwMCwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wN1wvZG93bmxvYWQtNy5qcGciLCJzbGlkZXNob3ciOiIzNjRlMzFhMSJ9\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-7.jpg?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-7.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-7.jpg?w=225&amp;ssl=1 225w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-7.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/download-7.jpg?resize=12%2C12&amp;ssl=1 12w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"sensor shield\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NjczNiwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wN1wvc2Vuc29yLXNoaWVsZC5qcGciLCJzbGlkZXNob3ciOiIzNjRlMzFhMSJ9\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/sensor-shield.jpg?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/sensor-shield.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n<a data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-slideshow=\"364e31a1\" data-elementor-lightbox-title=\"breadboard power supply\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6Njc0MCwidXJsIjoiaHR0cHM6XC9cL3N1cmlubGVhcm5pbmdsYWIuY29tXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDI0XC8wN1wvYnJlYWRib2FyZC1wb3dlci1zdXBwbHkuanBnIiwic2xpZGVzaG93IjoiMzY0ZTMxYTEifQ%3D%3D\" data-elementor-lightbox-description=\"Bread Board Jump Wires\" href=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/breadboard-power-supply.jpg?ssl=1\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/breadboard-power-supply.jpg?resize=150%2C150&amp;ssl=1\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-33dd4e35 elementor-widget elementor-widget-heading\" data-id=\"33dd4e35\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 1: \u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e2e\u0e32\u0e23\u0e4c\u0e14\u0e41\u0e27\u0e23\u0e4c<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7e600f3 elementor-widget elementor-widget-heading\" data-id=\"7e600f3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Servo Connections:<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-68c367ea elementor-widget elementor-widget-text-editor\" data-id=\"68c367ea\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Connect each of the servo\u2019s signal pins to individual digital pins on the Arduino (pins 2, 3, 4, 5, 6, 7, 8, and 13 in this setup).<\/li><li><strong>Important<\/strong>: Servos can draw significant current, especially under load. To prevent overloading your Arduino\u2019s voltage regulator, use an adjustable breadboard power supply connected to a 12V source. Connect the servo power (red) and ground (black) wires to this power supply instead of the Arduino.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c88bdb0 elementor-widget elementor-widget-heading\" data-id=\"c88bdb0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Display Connections:<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d986bed elementor-widget elementor-widget-text-editor\" data-id=\"d986bed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li><strong>CLK<\/strong> (Clock Pin) to Arduino Pin <strong>9<\/strong><\/li><li><strong>DIO<\/strong> (Data Pin) to Arduino Pin <strong>10<\/strong><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4f520e92 elementor-widget elementor-widget-image\" data-id=\"4f520e92\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"901\" src=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?fit=1024%2C901&amp;ssl=1\" class=\"attachment-large size-large wp-image-6606\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?w=3110&amp;ssl=1 3110w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?resize=300%2C264&amp;ssl=1 300w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?resize=1024%2C901&amp;ssl=1 1024w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?resize=768%2C675&amp;ssl=1 768w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?resize=1536%2C1351&amp;ssl=1 1536w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?resize=2048%2C1801&amp;ssl=1 2048w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?resize=14%2C12&amp;ssl=1 14w, https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/fritzing_diagram_buck_converter_bb.png?w=2400&amp;ssl=1 2400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-181e4337 elementor-widget elementor-widget-heading\" data-id=\"181e4337\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Step 2: Software Setup<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-68315b0 elementor-widget elementor-widget-heading\" data-id=\"68315b0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Install Required Libraries<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1443b8c6 elementor-widget elementor-widget-text-editor\" data-id=\"1443b8c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Make sure your Arduino IDE is equipped with the necessary libraries:<\/p><ul><li>Navigate to <strong>Sketch &gt; Include Library &gt; Manage Libraries\u2026<\/strong><\/li><li>Search for and install the <strong>Servo<\/strong> and <strong>TM1637Display<\/strong> libraries.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be44b43 elementor-widget elementor-widget-heading\" data-id=\"be44b43\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Load the Sketch<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4908c34 elementor-widget elementor-widget-text-editor\" data-id=\"4908c34\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Paste the provided code into the Arduino IDE. This code initializes the servos and display, then continually updates the servos to reflect each number\u2019s binary state and displays the number on the TM1637.<\/p><p>Key functions include:<\/p><ul><li><strong>Setup<\/strong>: Initialize servos and set display brightness.<\/li><li><strong>Loop<\/strong>: Increment through numbers, updating servos and display.<\/li><li><strong>Update Function<\/strong>: Change servo positions and display number.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3d024bbd elementor-button-info elementor-align-center elementor-widget elementor-widget-button\" data-id=\"3d024bbd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/github.com\/Surin-Learning-Lab\/binary-counter-analog-and-digital.git\" target=\"_blank\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t<i aria-hidden=\"true\" class=\"fab fa-github\"><\/i>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Click here for Arduino Sketch<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-36a270bf elementor-widget elementor-widget-text-editor\" data-id=\"36a270bf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>4. Upload<strong> the Code:<\/strong><\/p><ul><li>Connect the Arduino to your computer via USB.<ul><li style=\"list-style-type: none;\"><ul><li>Select the right board and port under <strong>Tools &gt; Board<\/strong> and <strong>Tools &gt; Port<\/strong> in the Arduino IDE.<\/li><li>Hit the upload button.<\/li><\/ul><\/li><\/ul><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b633875 elementor-widget elementor-widget-heading\" data-id=\"3b633875\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Step 4: Watch It In Action<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1a648c23 elementor-widget elementor-widget-text-editor\" data-id=\"1a648c23\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Once the code is uploaded:<\/p><ul><li>The servos will position themselves according to the binary representation of each number (0 to 255).<\/li><li>The TM1637 display will concurrently show the decimal equivalent.<\/li><li>This visualization cycles, updating every 5 seconds.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a897a5a elementor-widget elementor-widget-video\" data-id=\"a897a5a\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;mute&quot;:&quot;yes&quot;,&quot;show_image_overlay&quot;:&quot;yes&quot;,&quot;image_overlay&quot;:{&quot;url&quot;:&quot;https:\\\/\\\/surinlearninglab.com\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/3d_print_wireframe_v6.png&quot;,&quot;id&quot;:6629,&quot;size&quot;:&quot;&quot;,&quot;alt&quot;:&quot;&quot;,&quot;source&quot;:&quot;library&quot;},&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"e-hosted-video elementor-wrapper elementor-open-inline\">\n\t\t\t\t\t<video class=\"elementor-video\" src=\"https:\/\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/understanding-binary-counting.-8-bit-analog-binary-counter.-arduinounoprojects-arduinocode.mp4\" controls=\"\" preload=\"metadata\" muted=\"muted\" controlslist=\"nodownload\"><\/video>\n\t\t\t\t\t\t<div class=\"elementor-custom-embed-image-overlay\" style=\"background-image: url(https:\/\/i0.wp.com\/surinlearninglab.com\/wp-content\/uploads\/2024\/07\/3d_print_wireframe_v6.png?fit=1179%2C341&amp;ssl=1);\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-custom-embed-play\" role=\"button\" aria-label=\"Play Video\" tabindex=\"0\">\n\t\t\t\t\t\t\t<i aria-hidden=\"true\" class=\"eicon-play\"><\/i>\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-79994273 elementor-widget elementor-widget-text-editor\" data-id=\"79994273\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3>Conclusion<\/h3><p>Congratulations on setting up your binary-visualizing servo display! This project not only demonstrates digital-to-physical data representation but also enhances your understanding of Arduino programming, binary arithmetic, and electronic displays. Experiment with different aspects, such as adjusting update speeds or expanding the display capabilities. Enjoy your exploration into the mechanics of microcontrollers and servos!<\/p><p><em>Science rules!<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>8 Bit Binary Counter Hey Science Enthusiasts! Today, we&#8217;re tackling an intriguing project that visually and mechanically demonstrates numbers using an Arduino board. We&#8217;ll be controlling eight servos, each representing a bit in a byte, to display numbers in binary form, alongside a TM1637 7-segment display that shows these numbers in decimal. This setup is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"iawp_total_views":269,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-6587","post","type-post","status-publish","format-standard","hentry","category-arduino","category-esp8266"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/posts\/6587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/comments?post=6587"}],"version-history":[{"count":31,"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/posts\/6587\/revisions"}],"predecessor-version":[{"id":6743,"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/posts\/6587\/revisions\/6743"}],"wp:attachment":[{"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/media?parent=6587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/categories?post=6587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surinlearninglab.com\/th\/wp-json\/wp\/v2\/tags?post=6587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}