avatarSherry McGuinn

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>

Why I Prefer to be Thin

“Vanity,” is hardly the half of it.

Source: Free-Images.Com

Note: The following is my opinion and that’s all it is so please think before you snarl.

I recently read a story from a writer who I admire on this platform. In a nutshell, the topic was about body-positivity for women who aren’t replicants of what a woman should look like, according to Madison Avenue and the media. In other words, “young, beautiful…and thin.”

In turn, the writer was eviscerated with comments by women who gave her a heaping helping of shit for “shaming” thin women. Several of the comments were especially nasty. For myself, I thought the story was funny so I complimented it.

In retrospect, I don’t know. Maybe she could have taken a step back and chosen her words more carefully. I am hardly one to talk as when I have a bug up my butt, and something to say, I let it out. If you read me on a regular basis, you know what I’m talking about.

I’ve been heavy and I’ve been thin. I’ll take “thin” any day of the week and here’s why: At a certain point, fat is not healthy.

Let me repeat: At a certain point.

In my fifties, I packed on a lot of post-menopausal weight. Factor that with the reality that I was never very good at controlling my portion sizes and you have the perfect recipe for becoming really, really fat.

When I liked something…one serving wasn’t enough. I’d have another and then nosh on more food while cleaning up.

And then I’d feel like shit. On several occasions, I made myself “purge” the mountain of food I’d slowly, but methodically taken in.

I’ve always exercised, but at some point, I started phoning it in. My workouts were half-assed, frankly. And never enough of a calorie burn to offset my eating.

Although I was heavy, I carried it well. My height (5'6") compensated for the extra flab. And I always wore clothes that were too large for me. I guess I thought if I looked like I was swimming in them, I’d appear thinner.

Newsflash: That doesn’t work. In fact, it has the opposite effect. You just look like an overweight person in big, floppy clothes.

I avoided looking at myself naked. Aging and the extra weight contributed to the “bat wings” I was sprouting on my arms, as well as the dreaded “turkey wattle” underneath my chin. And, although I’d always been a confident individual, that confidence started to tank.

Photos were a non-starter. I hated having my picture taken. I just wasn’t happy in my skin and I think it showed.

Now, I don’t want to give the impression that I was “do a double-take” big, but I wasn’t at all jazzed with the way I looked or felt. I hated shopping for clothes and I avoided the scale at all costs. (“Scale?” What the hell was that?)

And there is the key to why I did an about-face and reversed all of the above: I wasn’t happy with myself. I didn’t feel like the Sherry I’d known for years.

I’ll pause here to point out that, the numbers on the scale are insignificant if you are confident and at ease in your own skin. And that’s a wonderful thing.

One day, something clicked in my brain and I determined then and there to change. What I had going in my favor is that when I make up my mind to do something, I do it. There’s no going back. That’s why I’m still on Medium, stats be damned!

I took a good, hard look at how I ate and what I ate. Being half-Italian, pasta is in my blood and I’d rather eat that than anything else. But, I can’t stick to the recommended portion size so I decided to dramatically cut carbs. Being an “all or nothing” person, that’s what worked for me. You might have a different approach.

Now I eat Shirataki noodles. Look them up. They take some getting used to but they're fantastic in any pasta or noodle dish.

I also upped my intake of vegetables and lean protein. I’d given up red meat so chicken and fish were staples. (Note here: I plan to switch to an eating plan that’s entirely plant-based, for ethical, as well as health reasons.)

Because veggies are filling and loaded with fiber, I didn’t have to worry about portion size. I ate, and do eat, a ton of them.

Exercise took on a whole new meaning for me. I started working out with intent. I’d never strength-trained in the past and once I bought a set of hand weights and several popular fitness DVDs, everything changed. And I mean, everything. (Jillian Michaels does kick ass, by the way.)

With an energetic mix of cardio and resistance training, my body changed. So much so that I lost the “bat wings,” as well as the turkey neck.

My arms and legs have definition; I have one chin and my neck and chest area are wrinkle-free. For a woman in her 60s, I’d say that’s a good thing. And I’m not ashamed for putting voice to that.

When I was employed, my lunch hours were spent at a nearby gym. After being laid-off, I worked out at home. I have a treadmill, stationary bike, hand weights, kettlebells and a ton of DVDs. Also, there is a wide range of fitness videos on streaming TV and YouTube.

Even though I’m still unemployed I recently joined an inexpensive gym near my home. It’s large, immaculate and no one gives a shit about anyone else.

As you might expect, like gyms all across the country, it closed because of COVID-19.

So I’m back to working out in my home, daily. It keeps me lean…and sane.

Why do I prefer being thin? Looks count, certainly. I’m as vain as the next person. Feeling sexy, is important to me, as well. But moreover, I have more energy than people half my age. I flit around this house like a hummingbird. And, I’m convinced that keeping my weight down is a far healthier option than being overweight.

You may disagree, and that’s your prerogative because really, your definition of “overweight” may not jibe with mine. So, please, don’t be offended and don’t accuse me of “shaming” fat people. I don’t and I wouldn’t.

To each his own.

Today, I’m a lean, mean, writing machine and proud of it. Soon, I will get off my ass and onto my bike where I’ll peddle in front of the TV and swear at the Orange Troll on CNN. Better yet, I’ll skip that and switch to Netflix.

Finally, I don’t need to look like the women in magazines or TV commercials, nor do I want to. That’s all air-brushed bullshit, anyway. “Healthy and strong” are my goals.

One more thing. Losing weight saved my life. I was undressing…in front of the mirror this time…and saw a lump over my right breast. Saw it. I had so little body fat that it was visible under my skin.

That lump turned out to be breast cancer. Five years down the road and I’m still here.

Thank you for reading.

Sherry McGuinn is a slightly-twisted, longtime Chicago-area writer and award-winning screenwriter. Her work has appeared in The Chicago Tribune, Chicago Sun-Times, and numerous other publications. Sherry’s manager is currently pitching her newest screenplay, a drama with dark, comedic overtones and inspired by a true story.

Did you enjoy this story? If so, please check out the other ones, below.

Also, if you’re seeking further distractions during this tough time, please consider subscribing to my new newsletter, where I’ll do my damndest to keep you entertained.

Personal Growth
Health
Weight Loss
My Story
Personal Opinion
Recommended from ReadMedium