<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.campuscomponent.com/blogs/tag/hc05module/feed" rel="self" type="application/rss+xml"/><title>Campus - Blog #hc05module</title><description>Campus - Blog #hc05module</description><link>https://www.campuscomponent.com/blogs/tag/hc05module</link><lastBuildDate>Wed, 29 Apr 2026 08:01:59 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Arduino UNO Library for Proteus and other software]]></title><link>https://www.campuscomponent.com/blogs/post/arduino-uno-library-for-proteus-and-other-software</link><description><![CDATA[<img align="left" hspace="5" src="https://www.campuscomponent.com/Arduino UNO Library for Proteus and other software.jpeg"/>In this guide we will see Arduino UNO Library for Proteus and different Simulation software like Proteus.]]></description><content:encoded><![CDATA[
<div class="zpcontent-container blogpost-container "><div data-element-id="elm_nHQqUCjVQlKr-XPHfLEATQ" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer"><div data-element-id="elm_x0B9uzhASoe1sXrldq0y3A" data-element-type="row" class="zprow zpalign-items- zpjustify-content- "><style type="text/css"></style><div data-element-id="elm_4i1g2VR5TWqhQsc7aTd3WA" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_aJkl6GbiRUqDnbahT3zuug" data-element-type="heading" class="zpelement zpelem-heading "><style> [data-element-id="elm_aJkl6GbiRUqDnbahT3zuug"].zpelem-heading { border-radius:1px; } </style><h2
 class="zpheading zpheading-align-center " data-editor="true"></h2></div>
<div data-element-id="elm_Y4tIMm3BT1GGsgA0fSD8sQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_Y4tIMm3BT1GGsgA0fSD8sQ"].zpelem-text{ border-radius:1px; } </style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:justify;margin-bottom:10pt;"><img src="/Arduino%20UNO%20Library%20for%20Proteus%20and%20other%20software.jpeg" alt="Arduino UNO Library for Proteus and other software"><span style="color:rgb(0, 0, 0);"><span style="font-size:12pt;"><br></span></span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="color:rgb(0, 0, 0);"><span style="font-size:12pt;">Are you an Arduino enthusiast who loves to experiment with circuits and codes? Do you use simulation software like </span><span style="font-size:12pt;font-weight:700;">Proteus</span><span style="font-size:12pt;"> to test your circuits before you implement them? If yes, then you must have faced the challenge of finding the right models for simulating the Arduino UNO board.&nbsp;</span></span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="color:rgb(0, 0, 0);"><span style="font-size:12pt;">Don’t worry In this article, we are going to share&nbsp;Arduino </span><span style="font-size:12pt;font-weight:700;">UNO Library for Proteus and will see different Simulation software like Proteus.</span></span></p><p style="margin-bottom:10pt;"><span style="font-size:12pt;"><span style="width:480px;color:rgb(0, 0, 0);"><img src="/Tue%20May%2002%202023.png" width="480" height="471" alt="Arduino UNO Library for Proteus and other software"></span></span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;font-weight:700;color:rgb(0, 0, 0);">What is Arduino UNO Library for Proteus?</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Arduino UNO Library for Proteus is a simulation model for the Arduino UNO board. It is a software library that can be used to test your codes and circuits before uploading them to the physical board. The library is compatible with Proteus, making it an essential tool for Arduino enthusiasts.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;font-weight:700;color:rgb(0, 0, 0);">Why to use Proteus?</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">The Proteus and other simulation software offers several advantages. Here are a few reasons why you should use it:</span></p><ol><li style="font-size:12pt;"><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Saves time and money: With different simulation modules and their libraries, you can test your codes and circuits in simulation software before implementing them on the physical board. This way, you can detect and fix any issues before spending money on components and wiring.</span></p></li><li style="font-size:12pt;"><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Accurate simulation: It contains accurate simulation models for the Arduino UNO board and other controllers. This ensures that your simulation results are close to what you would get on the physical board.</span></p></li><li style="font-size:12pt;"><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Easy to use: Proteus is easy to use, even for beginners. It comes with clear instructions and documentation, making it easy to get started.</span></p></li></ol><p style="text-align:justify;margin-bottom:10pt;"><a href="https://www.labcenter.com/downloads/"><span style="font-size:12pt;color:rgb(0, 0, 0);">Download Proteus Software</span></a></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;font-weight:700;color:rgb(0, 0, 0);">Now let’s see how to install and use the arduino library to simulate in Proteus:</span></p><ol><li style="font-size:12pt;"><p style="text-align:justify;"><a href="https://github.com/Proteus-LIBRARY/Arduino-Library"><span style="font-size:12pt;color:rgb(0, 0, 0);">Download the Arduino UNO library for Proteus</span></a></p></li><li style="font-size:12pt;"><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);">In this downloaded zip file you will find two files, named as:</span></p></li></ol><p style="text-align:justify;margin-left:36pt;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">&nbsp;a)&nbsp; ArduinoUnoTEP.dll</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">&nbsp;b)ArduinoUnoTEP.idx</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">3. Now extract these two files and place it in the libraries folder of your Proteus Software.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">4. Now, open your Proteus software and search for Arduino as shown in below image.</span></p><p style="margin-bottom:10pt;"><span style="font-size:12pt;"><span style="width:470px;color:rgb(0, 0, 0);"><img src="/Tue%20May%2002%202023-1.png" width="470" height="177" alt="Arduino UNO Library for Proteus and other software"></span></span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">5. Now select this&nbsp;Arduino&nbsp;board and click OK</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">6. Now place this Arduino UNO board in your Proteus workspace and it look as shown in below image</span></p><p style="margin-bottom:10pt;"><span style="font-size:12pt;"><span style="width:414px;color:rgb(0, 0, 0);"><img src="/Tue%20May%2002%202023-2.png" width="414" height="405" alt="Arduino UNO Library for Proteus and other software"></span></span></p><p style="text-align:justify;"><span style="color:rgb(0, 0, 0);"><span style="font-size:12pt;">7. Now we have our Arduino Board in proteus,&nbsp; double click this board in order to open its Properties.</span><span><br></span></span></p><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);"><br></span></p><p style="margin-bottom:10pt;"><span style="font-size:12pt;"><span style="width:560px;color:rgb(0, 0, 0);"><img src="/Tue%20May%2002%202023-3.png" width="560" height="615" alt="Arduino UNO Library for Proteus and other software"></span></span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">8. Now here you can set different properties of the Arduino UNO board.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">9. You need to upload the hex file of your Arduino code in the program file.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">10. So, once you have the hex file of your code then upload it here and click OK.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">And that’s it after successfully compiling the hex file, your simulation will start running and you can perform multiple functions as per the application you want.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;font-weight:700;color:rgb(0, 0, 0);">There are Multiple Simulation software available such as:</span></p><ol><li style="font-size:12pt;"><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);">TinkerCad</span></p></li><li style="font-size:12pt;"><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Eagle</span></p></li><li style="font-size:12pt;"><p style="text-align:justify;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Multisim</span></p></li><li style="font-size:12pt;"><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">Matlab</span></p></li></ol><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">You can also try these once you got hands-on Proteus.</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;font-weight:700;color:rgb(0, 0, 0);">Conclusion:</span></p><p style="text-align:justify;margin-bottom:10pt;"><span style="font-size:12pt;color:rgb(0, 0, 0);">The Arduino UNO Library for Proteus and other simulation software is an essential tool for anyone interested in Arduino and Iot related projects.&nbsp;</span></p><p style="text-align:justify;margin-bottom:9pt;"><span style="color:rgb(0, 0, 0);"><span style="font-size:12pt;">For more such details and updates on electronics do follow regular our blogs and if you are looking to buy Arduino Uno and different microcontrollers reach out&nbsp;</span><a href="https://www.campuscomponent.com/"><span style="font-size:12pt;">Campus Component</span></a><span style="font-size:12pt;">&nbsp;today!</span></span></p><div><p style="margin-bottom:10pt;text-align:justify;"><span style="font-size:12pt;font-weight:700;color:rgb(0, 0, 0);">Related Blogs:</span></p><p style="margin-bottom:10pt;text-align:justify;"><span style="color:rgb(0, 0, 0);">1. <a href="https://www.campuscomponent.com/blogs/post/how-to-interface-hc-05-bluetooth-module-with-arduino-uno" title="How to Interface HC-05 Bluetooth Module with Arduino" target="_blank" rel="">How to Interface HC-05 Bluetooth Module with Arduino</a>&nbsp;</span></p><p style="margin-bottom:10pt;text-align:justify;"><span style="color:rgb(0, 0, 0);">2. <a href="https://www.campuscomponent.com/blogs/post/arduino-gesture-controlled-bluetooth-speaker" title="Arduino Gesture Control Bluetooth Speaker" target="_blank" rel="">Arduino Gesture Control Bluetooth Speaker</a></span></p></div></div>
</div><div data-element-id="elm_rACeBw-iQ3urFL7BV0MJJQ" data-element-type="button" class="zpelement zpelem-button "><style> [data-element-id="elm_rACeBw-iQ3urFL7BV0MJJQ"].zpelem-button{ border-radius:1px; } </style><div class="zpbutton-container zpbutton-align-center"><style type="text/css"></style><a role="button" class="zpbutton-wrapper zpbutton zpbutton-type-primary zpbutton-size-md zpbutton-style-none " href="https://www.campuscomponent.com/shop-now" target="_blank"><span class="zpbutton-content">Get Started Now</span></a></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Tue, 02 May 2023 06:19:21 +0000</pubDate></item><item><title><![CDATA[ESP -32 A guide for beginners]]></title><link>https://www.campuscomponent.com/blogs/post/arduino-uno-library-for-proteus-and-other-software1</link><description><![CDATA[In this guide we will see Arduino UNO Library for Proteus and different Simulation software like Proteus.]]></description><content:encoded><![CDATA[
<div class="zpcontent-container blogpost-container "><div data-element-id="elm_pbhKHqmPSMi-vM5TqCtL3w" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer"><div data-element-id="elm_HG4ieWCgRv65F7sILY4evQ" data-element-type="row" class="zprow zpalign-items- zpjustify-content- "><style type="text/css"></style><div data-element-id="elm_Ku3Ak5GXRZeWFO2jYymUpQ" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_L3GZNDFURhyPynTbrX84Ow" data-element-type="heading" class="zpelement zpelem-heading "><style></style><h2
 class="zpheading zpheading-align-center " data-editor="true"></h2></div>
<div data-element-id="elm_gwyXeJDaTwCudcg0Waz_iQ" data-element-type="text" class="zpelement zpelem-text "><style></style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">ESP – 32 is a low cost, low power microcontroller. It has integrated Wi-Fi, and Bluetooth. It employs Tensilica Xtensa LX – 6 microprocessor, Xtensa LX – 5 microprocessor or RISC – V microprocessor. It has built – in antenna, switches, power amplifier, filters and power modules.</span></p><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Features:</span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">CPU: Xtensa single core 32 bit LX6 microprocessor.</span></p></li></ul><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Operating: 160 MHZ</span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Memory: 32 KB</span></p></li><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Connectivity:</span></p></li></ul><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Wi – Fi: 802.11 b/g/n</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Bluetooth: v4.2 BR/EDR and BLE (shares the radio with Wi-Fi)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Peripheral Interface:</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">34 × programmable&nbsp;GPIOs&nbsp;</span></p><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">&nbsp;12-bit&nbsp;SAR ADC&nbsp;up to 18 channel</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">2 × 8-bit&nbsp;DACs&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">10 × touch sensors ( capacitive sensing GPIOs)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">4 ×&nbsp;SPI&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">2 ×&nbsp;I2S&nbsp;interfaces</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">2 ×&nbsp;I2C&nbsp;interfaces</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">3 ×&nbsp;UART&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">SD/SDIO /CE - ATA /MMC /eMMC&nbsp;host controller</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">SDIO/SPI slave controller</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Ethernet&nbsp;MAC interface with dedicated DMA and planned&nbsp;IEEE 1588 Precision Time Protocol&nbsp;support</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">CAN bus&nbsp;2.0</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Infrared remote controller (TX/RX, up to 8 channels)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Pulse counter (capable of full quadrature decoding)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Motor&nbsp;PWM&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">LED PWM (up to 16 channels)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Hall effect sensor</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Ultra low power analog pre-amplifier</span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Security:</span></p></li></ul><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">IEEE 802.11 standard security features all supported, including&nbsp;WPA, WPA2, WPA3 (depending on version)&nbsp;and&nbsp;WLAN Authentication and Privacy Infrastructure&nbsp;(WAPI)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Secure boot</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Flash encryption</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">1024-bit OTP, up to 768-bit for customers</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Cryptographic hardware acceleration: AES,&nbsp;SHA - 2,&nbsp;RSA,&nbsp;Ellipric Curve Cryptography&nbsp;(ECC),Random Number Generator&nbsp;(RNG)</span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Power management:</span></p></li></ul><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Internal&nbsp;low dropout generator&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Individual power domain for RTC</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">μA deep sleep current</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Wake up from GPIO interrupt, timer, ADC measurements, capacitive touch sensor interrupt</span></p><p><span style="color:rgb(0, 0, 0);"><br></span></p><p style="margin-left:36pt;"><span style="font-size:11pt;"><span style="width:379px;color:rgb(0, 0, 0);"><img src="/Tue%20May%2002%202023-4.png" width="379" height="343"></span></span></p><p><span style="color:rgb(0, 0, 0);"><br><br></span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Interfacing an LED:</span></p></li></ul><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Connect the positive end of the LED to 100 Ohm resistor. Connect another end of the resistor to pin 18. Connect the negative end to GND.&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Code:</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">/*ESP32 LED BLINK</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">*/</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">#define 18</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Void setup() {</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">//set pin&nbsp;</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Pinmode (18,OUTPUT);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">}</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">void loop {</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">delay (500);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">digitalWrite(18,HIGH); //LED TURN ON</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">delay(500);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">digitalWrite(18,LOW); //LED TRM OFF</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">}</span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Interfacing a switch:</span></p></li></ul><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Components:</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">1 push button switch</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">1 LED</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">2 Resistors 100 ohm</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Jumper wires</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Bread board</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);"><br></span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Circuit:</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Check the switch connectivity with a multimeter. Place the switch on the breadboard (please refer to the image). Connect one pin to Pin 15 of ESP 32. Connect a resistor in series with Pin 18 and GND. Connect another pin to 5V of ESP 32. On the other side, Place a LED on the breadboard. Connect a resistor in series with Pin 19 and positive terminal of LED. Ground the negative terminal.&nbsp;</span></p><p style="text-align:justify;"><span style="color:rgb(0, 0, 0);"><br></span></p><p style="margin-left:18pt;"><span style="font-size:11pt;"><span style="width:624px;color:rgb(0, 0, 0);"><img src="/Tue%20May%2002%202023-5.png" width="624" height="412"></span></span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Working:&nbsp;</span></p></li></ul><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">When we press the switch the circuit gets completed pin 15 gets 5V. This is a pull up mode. When the resistor is connected between +Vcc and switch it is in pull up mode. When the resistor is connected between switch and GND it is pill down mode. We can use any of the two.</span></p><p style="text-align:justify;margin-left:18pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">As pin 15 gets a signal we turn Pin 22 high. Thus the LED glows.</span></p><ul><li style="font-size:11pt;"><p style="text-align:justify;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Code:&nbsp;</span></p></li></ul><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">#define 15</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">#define 22</span></p><p style="text-align:justify;"><span style="color:rgb(0, 0, 0);"><br></span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">void setup() {</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">//declare pin 15 as input</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">pinMode(15, INPUT);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">//declare pin 22 as output</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">pinMode(22,OUTPUT);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">}</span></p><p style="text-align:justify;"><span style="color:rgb(0, 0, 0);"><br></span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">void loop() {</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">//checkes the pin is high or low, condition statement</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">//if switch is ressed LED will turn on else will remain off</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">if (15==HIGH)</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">{</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">digitalWrite(22,HIGH);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">}</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">else</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">{</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">digitalWrite(22,LOW);</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">}</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">}</span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);"><br></span></p><p style="text-align:justify;margin-left:36pt;"><span style="font-size:11pt;color:rgb(0, 0, 0);">Thus we have seen how to interface a LED and a switch with ESP 32. After going through this you would surely be able to use the GPIO pins.&nbsp;</span></p><p><span style="color:inherit;"></span></p><div><span style="font-size:11pt;"><br></span></div></div>
</div><div data-element-id="elm_wrZppT52R9yKKM7Wd7yMWQ" data-element-type="button" class="zpelement zpelem-button "><style></style><div class="zpbutton-container zpbutton-align-center"><style type="text/css"></style><a role="button" class="zpbutton-wrapper zpbutton zpbutton-type-primary zpbutton-size-md " href="javascript:;" target="_blank"><span class="zpbutton-content">Get Started Now</span></a></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Tue, 02 May 2023 06:19:21 +0000</pubDate></item></channel></rss>