avatarSurekha Chandrasekhar

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3952

Abstract

SON).</p><p id="4cb7">Let’s quickly review the code.</p><p id="1704">Guided by a fellow programmer and partner of Jungletronics Ishida (<a href="https://github.com/alexishida?tab=repositories">https://github.com/alexishida?tab=repositories</a>) who could point us in the right direction, we modified the output code to JSON. The idea is to connect the Arduino with sensors and to make it serving restful web service.</p><p id="2a04">We will use JSON and HTTP REST as communication protocols. We are very close to this dream !!</p><p id="88e9"><b>Code (<a href="http://goo.gl/9gw6Aw"></a></b><a href="http://goo.gl/9gw6Aw">GitHub </a>REPO<b>):</b></p> <figure id="8156"> <div> <div>

            <iframe class="gist-iframe" src="/gist/giljr/a82e5defca0bceafd3719ca08d65ba28.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><p id="e0b7">We carry the necessary libs. There are two variables of our wifi network and set the server on port 80. Standard right?!</p><p id="54d8">We keep a variable for the led but t in the module. We declare the method that handleroot().</p><p id="06af">The setup is used to configure the LED as output, put the serial in 115200, firmware standard began our wifi, and print a blank line, according to HTTP protocol.</p><p id="99fa">While the connection is not established, a point is printed on the serial.</p><p id="fb02">MDNS is a simple implementation of multicast DNS query support for an Arduino running on the ESP8266 chip. Only support for resolving address queries is currently implemented.</p><p id="6320">The (This) line <i>server.on</i>: inside this part, we can put how many links we want.</p><p id="88ca">The loop to manage the client session.</p><p id="dfb9">keep watching this video series because we will present the assembly of a board to help you with prototyping this chip. We use little solder. See our result:</p><figure id="3d76"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*EO5sg5RdATtrO7MPAerCzg.jpeg"><figcaption>CADDY — For ESP8266 Module to sit into!!! To program use this <a href="https://www.amazon.com/ESP-01S-ESP8266-Wireless-Adapter-4-5-5-5V/dp/B07KF119YB">USB adapter</a>; To run it use this <a href="https://www.amazon.com/DIYmall-ESP8266-Breakout-Breadboard-Transceiver/dp/B01G6H46UK">one</a>. Or follow <a href="https://readmedium.com/mit-app-inventor-2-meets-esp8266-03-kidserie-fa92cc8ae8a2">this</a> post.</figcaption></figure><p id="f0aa">Collision Condition &amp; Route to Nowhere:</p><figure id="7926"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*5BogWgIQUJvJr6HqJcCFOA.gif"><figcaption>Collision Condition &amp; Route to Nowhere</figcaption></figure><p id="cd73">Let’s assume we want to connect all together: Arduino, ESP8266 via USB cable from your laptop.</p><p id="7277">In this scenario, the Arduino sends to your computer while the</p><p id="04ee">ESP8266 tries to transmit too in the same way.</p><p id="3c4c">Ops!</p><p id="5059">Certainly, data will collide !!!</p><p id="5062">Garbled data cannot be properly interpreted by ESP8266 — You cannot program Arduino or talk to it from your computer while ESP8266 is connected to a computer serial.</p><p id="86d8">Now in another scenario (green on the graph).</p><p id="e489">The computer sends a message to the Arduino.</p><p id="b93b">Oops again!</p><p id="a888">Which route to follow? There are two options!</p><p id="ae93">Who does not know where to go, go nowhere!</p><p id="e8e4">This is a collision condition and route do nowhere scenario!</p><p id="1643">Both try to transmit to the computer at the same time.</p><p id="5f78">ESP8266 will most likely RESET!!!</p><p id="21c7">Now let’s separate the components.</p><p id="1738">First, remove the Atmega chip from Arduino and program ESP8266, or, better, bypass

Options

it!! (see video below)</p><p id="5fe2">Then plug back the ATmega and program the Arduino</p><p id="a342">Simple isn't it?</p><p id="d432">Use module ESP8266 in WiFi and Arduino in standalone mode!!!</p> <figure id="87ff"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhH8t4iPAVJI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhH8t4iPAVJI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FhH8t4iPAVJI%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="129e">Thanks for watching the video (read this article) !!!</p><p id="8f19">Bye!!!</p><p id="c7e8"><a href="https://drive.google.com/drive/folders/0B8iMbc-iQqlULXhNYWpUUUoteGM?usp=sharing">Download all Project Files</a></p><h2 id="8007">Troubleshooting:</h2><p id="801c">When initiating the upload process in the Arduino IDE, press the Upload Button and simultaneously hold the White Wire connected to RST through 10k Ohms, providing a pulse on the GND. This action should be performed a few seconds before the Arduino indicates the uploading phase, typically during the compilation process. Ensure that the Orange Wire (GPIO0) is grounded during this time.</p><p id="3540">Once the upload is complete, detach the Orange Wire from the GND, allowing it to float momentarily. Subsequently, while opening the Serial Terminal, provide another pulse on the GND using the White Wire. Verify that the Serial Monitor acknowledges the:</p><div id="2f87"><pre>Connecting to <your_wifi_ssid> …… <span class="hljs-built_in">WiFi</span> connected <span class="hljs-built_in">Server</span> started <your_port_number></pre></div><p id="e4f8">Do not forget to edit the code according to your WiFi network;) <your_wifi_ssid> and <your_port_number></your_port_number></your_wifi_ssid></p><p id="5094">Based on: Renato Aloi’s <a href="http://renatoaloi.blogspot.com.br/2016/01/esp8266-no-arduino-ide.html">Tutorial</a> (Thanks a lot for your hard work Aloi!!!)</p><p id="d531">Migrate from: <a href="http://jungletronics.blogspot.com.br/">http://jungletronics.blogspot.com.br/</a></p><h1 id="acf7">Related Posts</h1><p id="54d1">Meet IoT Boards: ESP8266 & ESP32 —<a href="https://readmedium.com/meet-iot-boards-esp8266-esp32-ba12e41c1a3b"> <b>Which are the best? ESPs or RPis or Arduino Boards?</b> </a>IoT — Episode #01</p><p id="dc72"><a href="https://readmedium.com/arduino-headless-setup-esp-8266-wifi-cheap-chip-16-arduserie-ffaecf77729a"><b>Arduino Headless Setup & ESP8266</b></a> (WIFI cheap chip!) — Rather Stunning MCU!!! — #arduSerie 16</p><p id="3892"><a href="https://readmedium.com/flashing-the-official-espressif-firmware-in-esp8266-arduserie-17-2234fc088076"><b>Flashing The Official ESPRESSIF Firmware in ESP8266 !!! — Easy ESP8266 Flashing!!!</b></a> — #arduSerie 17</p><p id="1753"><a href="https://readmedium.com/get-started-using-at-commands-w-esp8266-arduserie-19-a09f20571b08"><b>Get Started Using AT Commands w/ ESP8266 — Multiple Connection as TCP Server </b></a>— #arduSerie 19</p><p id="e2da"><a href="https://readmedium.com/your-first-nodemcu-lua-script-flash-on-esp8266-e614b33a6de1"><b>Your First NodeMCU/Lua Script Flash on ESP8266!!!</b> </a>— Let’s get our feet wet with NodeMCU/Lua and see what happens !!- #arduSerie 20</p><p id="b017"><i>— Edited in Nov 2018 — Grammar corrections w/ <a href="http://www.grammarly.com/‎">Grammarly </a>— Send code to gist —</i>Troubleshooting<i></i></p><p id="8c1a"><i>— Edited on Jan 2024 — Grammar corrections w/ <a href="http://www.grammarly.com/‎">Grammarly</a> and some links to adapter —</i></p></article></body>

Life Lessons

5 Life Lessons I Learned from My Camera

Diary of a Hobbyist Photographer

Image by Author

Books and Music are my soulmates, yet my camera is the one that takes me on wild dates. It just happens.

Time flies and everything stops mattering to me when I am on a date with my camera. When I am back with disheveled hair, muddy shoes, and clothes, I get quirky comments from my family. That is the chemistry between me and my camera. Photography is definitely a dopamine boost for me.

I don’t call myself a Photographer. It is just a love affair. The story started five years back when I felt an attraction towards a DSLR camera that was abandoned on our library shelf. I adopted the basic Canon DSLR which was brought by a friend from Singapore. Ever since I have spent many deep hours learning to capture beauty with my camera. My Camera is a friend and philosopher. Last week, when I went on a dream cruise from Mumbai to Goa, I had the option to take an upgraded camera with me, but I took my old friend with me. That’s the charm and contentment of old friendships.

Photography And Philosophy

“One advantage of photography is that it’s visual and can transcend language.” — Lisa Kristine

1. Focus, Focus, Focus!

The first and foremost lesson I learned from my camera is to focus.

You can be anywhere on this beautiful planet with your camera. The light can be exquisite, the settings can be the very best. You are all set for your dream shots, but if you are mindless and forgot to focus, you lost it! Even after many years of pressing the shutter, I am still learning this lesson like a Koan. If you want to capture the essence of beauty in your frame you need the sharpest focus. This is true in life also. We are floating in our life mindlessly without focus. While the beauty is standing still, waiting, silently pleading for our focus.

Recently I saw a beautiful bunch of yellow bananas in my mom’s village kitchen. I had my camera with me and was searching for antiques in the old kitchen. The morning light was streaming in casting a great light and shadow effect. Seeing the banana bunch dangling from a coir rope and soaking in the morning light made my heart jump with joy. I took a few clicks in haste. My hands were not steady enough and I didn’t notice this. I could have taken a deep breath and steadied myself and the camera for a perfect shot. When I sat down to check the images I saw the blurry bunch of beauty! Since this is my passion I don’t give up easily. I went back and steadied myself and took the perfect shot.

The banana bunch in the story. Image by Author

2. Light is the hero.

“Light makes photography. Embrace light. Admire it. Love it. But above all, know light. Know it for all you are worth, and you will know the key to photography.” — George Eastman

Photography is the art of painting with light. You can have the most beautiful subject and the costliest of gear, you are helpless without the blessing of light. The light should fall in the right places for a breathtaking image. What you are seeing is light, not a landscape or a great model.

I love natural light photography. The golden hours of morning and evening are my weakness. Artificial lights are amazing too.

Artificial lights can get you the softest highlights on your subject, especially for capturing portraits.

Always remember Light is the hero. Try to capture light as much as you can in life and Photography.

3 . Find your signature lens.

Your vision is so much more important than the gear in Photography. You can have the latest gear, but your images will be only as good as your perspective and vision. This comes with great passion, observation, and practice. During my early days of learning, I was intimidated by fellow Photographers carrying sophisticated and costly gear. Perhaps it suited their requirement. I was not happy with my kit lens either. I loved blurred backgrounds with great depth of field. I decided to discover my lens. For two years I spent all my pocket money renting different lenses and cameras to find my ‘’ lens ‘’. During this period two of my images got selected for a photography exhibition in my city. One was shot with a macro lens and another one with a 50 mm. Macro Photography exhausted me very fast. Finally, I discovered my 50 mm lens, and I am loyal to it ever since.

Once you are set with your lens half the struggle is over.

4 . Never stop learning.

I have never stopped learning ever since I started my hobby of Photography. There is always something new to learn. There are composition rules, different genres of photography, the works of different artists, editing, etc.

“It takes a lot of imagination to be a good photographer. You need less imagination to be a painter because you can invent things. But in photography, everything is so ordinary; it takes a lot of looking before you learn to see the extraordinary.” — David Bailey

5. Let Go

When we learn to love unconditionally, we learn the art of letting go. After hours of bending down on the tripod forgetting time and existence, the results can be disheartening many times. This is the moment we let go of our frustration. There are times when we delete thousands of pics from the drive to save space, we learn to let go. I always found decluttering of drives gave me space and improved perspectives.

After more than 5 years of learning with my basic DSLR, my Photography ambition is to capture Zen-like images. It can take some more days, months, or years! Going forward one step at a time.

Keep Smiling :)

Thishappendtome
Life Lessons
Photography Tips
Hobby
Light
Recommended from ReadMedium