<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hannah Lormenyo on Medium]]></title>
        <description><![CDATA[Stories by Hannah Lormenyo on Medium]]></description>
        <link>https://medium.com/@lormenyoh?source=rss-9516c336ecee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hmTQG3ZQQYtZDQzNcGM7Uw.png</url>
            <title>Stories by Hannah Lormenyo on Medium</title>
            <link>https://medium.com/@lormenyoh?source=rss-9516c336ecee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:17:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lormenyoh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sending Sensor data to Mosquitto on Windows from NodeMCU]]></title>
            <link>https://lormenyoh.medium.com/sending-sensor-data-to-mosquitto-on-windows-from-nodemcu-68932e2d4082?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/68932e2d4082</guid>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[mosquitto]]></category>
            <category><![CDATA[nodemcu]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[arduino]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Wed, 18 Nov 2020 16:22:26 GMT</pubDate>
            <atom:updated>2020-11-18T16:22:26.770Z</atom:updated>
            <content:encoded><![CDATA[<p>Mosquitto is a lightweight MQTT broker from Eclipse. Since it is lightweight, it is very suitable for Internet of Things applications that use low power sensors or embedded systems.</p><p>Message Queuing Telemetry Transport(MQTT) is a protocol that uses a publish/subscribe model for Machine-to-Machine communication. It has a client and a broker. The clients are devices that send or receive the data whilst the broker is a server.</p><h3>Installations</h3><p>Install mosquitto <a href="https://mosquitto.org/download/"><strong>here</strong></a>.</p><p>In the Arduino IDE, click on Sketch at the top. Then go to Include Library -&gt; Manage Libraries.</p><p>In the manage Libraries window, type <strong>PubSubClient</strong> in the search bar and install <strong>PubSubClient</strong> from the results given.</p><h3>NodeMCU and sensor connections</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FE9Y5m8BMHeqv-Q7kwPuGQ.png" /><figcaption>Circuit setup</figcaption></figure><p>In this example, the sensors used were a Light Dependent Resistor(LDR) and DHT 21(Humidity and temperature) sensor. I connected the LDR to pin A0 of the NodeMCU and the DHT signal pin to pin 2(D4).</p><h3>Starting the Mosquitto server</h3><p>To start the mosquitto server, open the windows command prompt and cd into the directory where mosquitto is installed. For me, it is C:\Program Files\mosquitto So I will type the following in the command prompt:</p><p>cd &quot;C:\Program Files\mosquitto&quot;</p><p>Afterward, type the command below in the command prompt. This starts the mosquitto server on port 1883 in verbose mode.</p><p>mosquitto -v</p><p>If your server fails to start, try enabling the port. You can read more on how to do that <a href="https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html"><strong>here</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QDdspjZ_pwW4-8FbKgcVA.png" /><figcaption>The mosquitto server</figcaption></figure><h3>Getting the IP address of your machine</h3><p>Open the command prompt and type ipconfig . This will give you a list of all the available connections on your machine. Look for an active connection and copy the ipv4 address which looks something like this “192.xxx.xxx.xxx”</p><h3>The code</h3><p>The NodeMCU and your machine must be on on the same network(connected to the same wi-fi).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*76_YwZ8lSIkqQf2yswGFrw.png" /><figcaption>Specify your wifi credentials and insert your IP address</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*xLz9hVc-VrVQ34I_9hZvvg.png" /><figcaption>Wifi client</figcaption></figure><p>Create an instance of wificlient and pass it to the PubSubClient.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*QvvwuKyXzEiK-3bAWodrww.png" /><figcaption>Function for connecting to the MQTT server</figcaption></figure><p>The reconnect function above, connects the client to the MQTT server using the credentials provided.</p><pre>void loop()<br>{<br> if (!client.connected()) {<br> reconnect(); <br> }<br> client.loop(); <br>// — — — — — — — — — — — — — — — — — — — — — <br>//post after every 3 secondS — — — — — — — — — — -<br> //figure out how to post after every few seconds (based on earlier work)<br>// — — — — — — — — — — — — — — — — — — — — — <br> current_time = millis();</pre><pre>if (current_time — last_run &gt;= THREE_SECONDS) {<br> // save the last time you blinked the LED<br> last_run = current_time;<br> int sensorValue = analogRead(A0); // read the input on analog pin 0<br> String ldrValue = String(sensorValue);<br> float t = dht.readTemperature();<br> String temp = String(t);<br> client.publish(“LDRSensorValues”, ldrValue.c_str());<br> client.publish(“TemperatureValues”, temp.c_str());<br> Serial.print(“LDR: “);<br> Serial.print(ldrValue);<br> Serial.print(“ Temperature: “);<br> Serial.print(temp);<br> Serial.println(“Message published”);<br> }</pre><pre><br>client.subscribe(“LDRSensorValues”);<br>client.subscribe(“TemperatureValues”);<br>}<br></pre><p>In the void loop, the sensor values from the LDR and the DHT are taken. On temperature values are taken from the DHT. Then using the millis function, the sensor values are published to the MQTT server every 3 seconds(3000 milliseconds).</p><p>The sensor values are published to a topic. A topic is string which the server uses to filter messages. In this example, the topics used were “LDRSensorValues” and “TemperatureValues” for the LDR values and temperature values respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*l2ZE_lnpRwo4A8pCIb7t5g.png" /><figcaption>Serial monitor showing the values published to the Mosquitto broker</figcaption></figure><p>To view the sensor values being sent to the Mosquitto broker, you can use mosquitto_sub to subscribe to the topics as shown in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7IbWstb_f___tkIMBYWPQA.png" /><figcaption>A mosquitto subscriber subscribing to the topics for the sensor values</figcaption></figure><ul><li>-t denotes a topic whilst -v is for verbose mode.</li></ul><p>You can access the entire code <a href="https://github.com/Lormenyo/iot-projects/tree/master/Lab-6-mosquitto/mosquitto"><strong>here</strong></a>.</p><blockquote>Thank you for reading this article. Don’t forget to leave a clap if you found this interesting or helpful. You can follow me on <a href="https://github.com/Lormenyo"><strong>Github</strong></a> or on <a href="https://twitter.com/blessed_hl"><strong>Twitter</strong></a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68932e2d4082" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ARM KL25 Periodic Interrupt Timer]]></title>
            <link>https://medium.com/swlh/arm-kl25-periodic-interrupt-timer-8d4b184f0088?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d4b184f0088</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[arm]]></category>
            <category><![CDATA[interrupt]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[bare-metal-switch]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Wed, 18 Nov 2020 08:40:44 GMT</pubDate>
            <atom:updated>2020-11-20T23:58:10.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>ARM KL25Z Periodic Interrupt Timer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*4TyQ2YKNSaZSvf7c7MvbXA.png" /><figcaption>FRDM-KL25Z</figcaption></figure><p>Periodic Interrupt Timer(PIT) is one of the timer peripherals for the KL25Z series. PIT can be used as a trigger for modules like the Timer/PWM Module (TPM), Analog-to-Digital convertor(ADC), and Digital-to-Analog converter(DAC). This means that the PIT can be used to trigger the TPM module to generate pulse width modulated waves, and it can activate the ADC and DAC to do their respective conversions.</p><p>PIT can also be used to trigger very simple events like toggling the states of a pin. An example can be seen in the short video below. In this example, PIT is used to blink the on-board LED every 400ms 5 times, and afterward, it blinks at a 100ms rate 5 times and repeats the process.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F47rhX7V94Cc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D47rhX7V94Cc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F47rhX7V94Cc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c4fac4f511381967fffdd3c71d224f1/href">https://medium.com/media/0c4fac4f511381967fffdd3c71d224f1/href</a></iframe><p>PIT has 2 channels: Channel 0 and channel 1. Each channel has 32 bits for counting and can count up to 4294967295. However, if you want to count down from a larger number, you can chain the two channels to get a 64-bit counter. Cool right!</p><p>The PIT uses the Bus clock which has a frequency that is half of the System Clock’s frequency. The system clock has a frequency of 20971520 Hz, hence the frequency of the PIT bus clock is 20971520 * 0.5 = 10485760 Hz</p><h3>Configuring the PIT module</h3><ul><li>Enable the clock to the PIT module<br><br>SIM-&gt;SCGC6 |= SIM_SCGC6_PIT_MASK;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/0*Mz7uO0pEd8m0hbRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/0*YHxNuLZs0JytuaP1.png" /></figure><ul><li>Write 0 to the Module Disable(MDIS) register to enable the clock to PIT. The Module Control Register(MCR) enables or disables the PIT when it enters the debug mode.<br><br>PIT-&gt;MCR &amp;= ~PIT_MCR_MDIS_MASK;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*44GTkPmgkh0IdWRK.png" /></figure><ul><li>Initialize the PIT channel to count down from the starting value(Load Value). When the timer counts down to 0, it generates an interrupt and restarts the countdown.<br><br>PIT-&gt;CHANNEL[0].LDVAL |= starting_value;</li></ul><p>The code above loads the starting value into the LDVAL register for channel 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/0*yneXWbnEdhn9FWFk.png" /></figure><ul><li>Enable interrupts from the PIT. The example below enables interrupts for channel 0.<br><br>PIT-&gt;CHANNEL[0].TCTRL |= PIT_TCTRL_TIE_MASK;</li><li>Enable the channel Timer. The example below enables the timer for channel 0.<br><br>PIT-&gt;CHANNEL[0].TCTRL |= PIT_TCTRL_TEN_MASK;</li><li>Configure NVIC<br>1. Set PIT IRQ priority<br> <br> NVIC_SetPriority(PIT_IRQn, 3); <br><br>2. Clear any pending IRQ from PIT<br><br>NVIC_ClearPendingIRQ(PIT_IRQn); <br><br>3. Enable the PIT interrupt in the NVIC<br><br>NVIC_EnableIRQ(PIT_IRQn);</li></ul><h3>Calculating the Load Value</h3><p>The Load Value is the value that the PIT counts down from. <br>Assuming you want an interrupt every T seconds, the LoadValue V can be calculated using this formula:</p><p>V = T * 10485760–1</p><h3>Generating PIT interrupts</h3><p>PIT_IRQHandler is the interrupt handler for PIT. To do something for every interrupt:<br> 1. Check if the channel interrupt flag has been raised</p><pre>if (PIT-&gt;CHANNEL[n].TFLG &amp; PIT_TFLG_TIF_MASK) {<br> }<br>n is the channel number [n=0,1]</pre><p>2. If yes, do something like toggling the state of an LED in this case.</p><pre>if (PIT-&gt;CHANNEL[n].TFLG &amp; PIT_TFLG_TIF_MASK) {<br> PTB -&gt; PTOR |= 1UL &lt;&lt; LED;<br> }<br><br>n is the channel number [n=0,1]</pre><p>3. After that clear the flag.</p><pre>if (PIT-&gt;CHANNEL[n].TFLG &amp; PIT_TFLG_TIF_MASK) {<br> PTB -&gt; PTOR |= 1UL &lt;&lt; LED;<br> PIT-&gt;CHANNEL[n].TFLG &amp;= PIT_TFLG_TIF_MASK;<br>}<br>n is the channel number [n=0,1]</pre><h3>Example</h3><p>Task: Use PIT interrupts to blink an LED every 400ms. After blinking 5 times, make it blink every 100ms for 5x and repeat the process.</p><p>NB: Blinking 5x is 10 toggles.[on, off, on, off, ….]</p><ul><li>PIT has 2 channels. I used one channel for the 400ms interrupts and the other channel for the 100ms interrupts.</li></ul><pre>void init_pit(){<br> //Enable clock to PIT module<br> SIM-&gt;SCGC6 |= SIM_SCGC6_PIT_MASK; //Enable module<br> PIT-&gt;MCR &amp;= ~PIT_MCR_MDIS_MASK; //enable mdis<br> PIT-&gt;MCR |= PIT_MCR_FRZ_MASK; </pre><pre>//Initialize PIT0 to count down from starting_value<br> PIT-&gt;CHANNEL[0].LDVAL =0x3FFFFF; //every 400ms //No chaining of timers <br>PIT-&gt;CHANNEL[0].TCTRL &amp;= PIT_TCTRL_CHN_MASK; <br>PIT-&gt;CHANNEL[0].TCTRL |= PIT_TCTRL_TEN_MASK; //Let the PIT channel generate interrupt requests <br>PIT-&gt;CHANNEL[0].TCTRL |= PIT_TCTRL_TIE_MASK; </pre><pre>//Initialize PIT0 to count down from starting_value <br>PIT-&gt;CHANNEL[1].LDVAL =0xFFFFF; //every 100ms <br>//No chaining of timers <br>PIT-&gt;CHANNEL[1].TCTRL &amp;= PIT_TCTRL_CHN_MASK; </pre><pre>//Let the PIT channel generate interrupt requests <br>PIT-&gt;CHANNEL[1].TCTRL |= PIT_TCTRL_TIE_MASK; </pre><pre>NVIC_SetPriority(PIT_IRQn, 3); //Clear any pending IRQ from PIT NVIC_ClearPendingIRQ(PIT_IRQn); //Enable the PIT interrupt in the NVIC NVIC_EnableIRQ(PIT_IRQn); </pre><pre>}</pre><ul><li>I kept track of the num of toggles and after every 10 toggles, I disable the channel being used and switch to a different channel.</li></ul><pre>void PIT_IRQHandler(){ </pre><pre>//Determine which channel triggered interrupt <br>if (PIT-&gt;CHANNEL[0].TFLG &amp; PIT_TFLG_TIF_MASK) {<br> PTB-&gt;PTOR |=MASK(RED_LED); //toggle RED </pre><pre>//Clear interrupt request flag for channel <br>PIT-&gt;CHANNEL[0].TFLG &amp;= PIT_TFLG_TIF_MASK; <br>num_of_toggles++; </pre><pre>if (num_of_toggles == 10){ <br>  PIT-&gt;CHANNEL[1].TCTRL |= PIT_TCTRL_TEN_MASK; <br>  PIT-&gt;CHANNEL[0].TCTRL &amp;= ~PIT_TCTRL_TEN_MASK; <br>  num_of_toggles = 0; <br>  } <br>} </pre><pre>if (PIT-&gt;CHANNEL[1].TFLG &amp; PIT_TFLG_TIF_MASK) {<br> PTB-&gt;PTOR |=MASK(RED_LED); //toggle RED <br> //Clear interrupt request flag for channel<br> PIT-&gt;CHANNEL[1].TFLG &amp;= PIT_TFLG_TIF_MASK;<br> num_of_toggles++;</pre><pre> if (num_of_toggles == 10){<br>   PIT-&gt;CHANNEL[0].TCTRL |= PIT_TCTRL_TEN_MASK;<br>   PIT-&gt;CHANNEL[1].TCTRL &amp;= ~PIT_TCTRL_TEN_MASK;<br>   num_of_toggles = 0; <br>  }<br> }<br>}</pre><p>Other methods can be explored. You can load a different value to the LDVAL register every time you want a different rate.</p><p>The entire code can be found <a href="https://github.com/Lormenyo/Embedded-Systems-With-Keil-and-FRDMKL25Z4/blob/master/nxp-pit/pit.c"><strong>here</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d4b184f0088" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/arm-kl25-periodic-interrupt-timer-8d4b184f0088">ARM KL25 Periodic Interrupt Timer</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developer Student Club: The Beacon of Light]]></title>
            <link>https://lormenyoh.medium.com/developer-student-club-the-beacon-of-light-3e0c63313750?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e0c63313750</guid>
            <category><![CDATA[impact]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[developer-student-club]]></category>
            <category><![CDATA[ashesi-university]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 08:38:13 GMT</pubDate>
            <atom:updated>2020-11-18T09:05:44.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>My journey as a Developer Student Club Lead</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5H0oLo7_E__-feslqQrBIw.jpeg" /></figure><p>Developer Student Club(DSC) is a community that means different things to several people across the globe. For me, it means growth and impact. Being a DSC Lead challenged me to be so much more in so many ways both in my tech career and my personal life. It challenged me to be a better leader, a great sister, a better daughter, and a best friend. It helped me realize that the greatest opportunity you can either create yourself or be presented with, in life is the opportunity to give. DSC gave me this opportunity, and the more I poured out myself, the more I was filled with numerous shiny treasures which only made me better as a person. This is a quick story about my DSC journey and everything I have learned along the way.</p><h3>A Little bit about my DSC Journey</h3><p>I joined DSC Ashesi University on 10th September 2018 when it first started on campus. I was completely in sync with the mission and vision of the community to help students gain relevant skills to help them advance in their respective tech careers and also, work on projects that solve real-life problems. After attending the launch of the club, I was present at its first workshop on “Building a portfolio website with WIX”. A few weeks after that workshop, I was asked to join the DSC Core Team. I only had about a year of experience in programming at that time, and despite the fact that it seemed challenging, I was really excited about this opportunity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Nnw_6emcjJ7C9NiDIm-3g.jpeg" /><figcaption>DSC Launch in 2018</figcaption></figure><p>Prior to this new opportunity to be a tutor and Co-Lead for DSC Ashesi University, I had volunteered to be a tutor for <a href="https://medium.com/u/80d1f30b35de">Developers in Vogue</a> Python Bootcamp for ladies. I had an awesome experience and I loved the fact that the ladies who participated in that event were able to build real applications with what the team(including myself) had shared with them in just 3 days. This is what inspired me to accept the DSC Co-Lead offer. I accepted this offer with the faith that I will be able to impact many people and help them in their respective tech journeys. By the way, I was the only female in the tutoring team, therefore I had to do my best in encouraging more female participation in the community. During my tenure as a co-lead, I led a few workshops in flask, and basic web development with HTML, CSS, and JS. I also led a group of beginners web developers in building an online ordering application for a student-owned pizza-waffle business on campus. This application is live <a href="http://palmers-pizza.herokuapp.com/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgMrteqwzRoQ5sW2RK420A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tMJpjdsSaeXhkU6BJXkkAQ.jpeg" /><figcaption>Tutoring at DSC Workshops as a co-lead</figcaption></figure><p>After a year of being a core team member, I applied to be a DSC lead. Fortunately, I was honored with the opportunity of being the lead for Developer Student Club Ashesi University. To be very honest, these shoes were so huge that I was afraid of wearing them. I didn’t think I would do a great job as <a href="https://medium.com/u/bcfde6a3b306">Wayne Gakuo</a> did. I still accepted this challenge, with a lot of encouragement from my honorable predecessor.</p><p>After accepting the role as a Lead, I was invited for the DSC SSA Summit which was held in Accra, Ghana at Alisa Hotels. I had a fun experience during the summit. I met a lot of exciting and brilliant people from different parts of the continent. Through the summit, I learned a lot about what goes on in various DSC communities and applied some of the things I learned in my community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4xkTdBTLlnnC6LOC7TyGg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEij0uv9sEssTEkRY7qDPQ.jpeg" /><figcaption>DSC SSA Summit</figcaption></figure><p>My main journey as a DSC lead began after the summit. Most of the members of my core team were from the previous year. I included other talented and skillful sophomores. In total, I had about 15 people in my core team. There was a financial officer, a media officer, 2 logistics officers, 2 photographers, and tutors for web development, machine learning, and game development. We had an amazing year, with a lot of interesting collaborations, workshops, and hackathons.</p><h3>Summary of DSC Ashesi University Activities in 2019/2020</h3><p>Together with my team, we had a lot of exciting plans for the community. We were able to implement some and others couldn’t be fleshed out due to a few roadblocks. In the 2019/2020 Academic year, <a href="https://medium.com/u/e4a9d9070107">DSC Ashesi University</a> had about 16 workshops and 9 hackathons. Most of these events happened online. We had more events related to flutter and Game Development since a lot of students were interested in those technologies. We had amazing stories from our events and workshops. Some of these stories can be found below:</p><ul><li><a href="https://medium.com/@ashesidsc/game-dev-my-first-2d-game-sean-ofori-addo-8ac3a4b21f08">Game Dev: My First 2D Game — Sean Ofori-Addo</a></li><li><a href="https://medium.com/@ashesidsc/flutter-dev-first-flutter-experience-moussa-yanni-f8fd3f1390dd">Flutter Dev: First Flutter Experience — Moussa Yanni</a></li><li><a href="https://medium.com/@ashesidsc/hack-api-2019-d0b78cea0632">Hack-API 2019</a></li></ul><p>Subsequent to the whole COVID 19 situation which derailed most of our plans, the Government of Ghana suspended physical schooling and my school resumed online a few weeks after on March 30th, 2020. The majority of the students including myself had a really hard time adjusting to the new online schooling system. Due to this, we prioritized the mental health of the students and focussed on doing little check-ups on our WhatsApp platform. During this time, my core team and I spent time restrategizing to make the best of the quarantine season. Here are a few tips on how to remain relevant as a community during this COVID 19 era:</p><ol><li>Keep an active social media presence. Share stories about your community and try putting some of the members in the spotlight.</li><li>Send members customized emails and messages with their names.</li><li>Reward members of the community to keep team spirit alive.</li><li>Put members in teams to work on projects.</li><li>You can have non-technical events like Netflix parties and karaoke nights just to keep the members engaged and create fun memories.</li><li>For virtual events:</li></ol><ul><li>start with an ice-breaker</li><li>encourage participants to turn on their cameras if they don’t mind</li><li>stick to time and be consistent</li></ul><h3>Challenges, Mistakes, and Lessons Learnt</h3><p>The journey wasn’t all rosy. We had our fair share of challenges and we did our best to overcome most of them. I made some mistakes and I learned lots of lessons from them.</p><ol><li>Managing school Pressure: As an engineering student, I had a lot of academic pressure and I am sure most of the students in the community felt almost the same kind of pressure. In addition to the academic pressure, there was a lot of pressure from all the numerous clubs on campus. We always had issues with conflicting times with other clubs and some school activities. This led to really low attendance for some events. After the first semester, we were very cautious about our meeting times and ensured that they were not close to the examination period or conflicting with meeting times for most clubs on campus.</li><li>Effective Communication: As a community leader, checking up on your core team and your members is very essential. This is something I didn’t really know how to do. I used to only talk about DSC related issues with my core team and members. However, with time I learned how to develop a better relationship with my core team and my members. I tried my best to remember their birthdays and reached out to them to understand the challenges they face in their daily lives. A leader should genuinely care about the people around him or her.</li><li>Delegating Tasks: A great person once said this, “The best leaders are those that are invisible”. The best leaders are those who still get the work done even in their absence. For almost half of my time as a DSC Lead, I did a lot of work I should have trusted my team to complete. I sincerely thought I was being smart and saving everyone the stress. With time, I realized I was denying my team the opportunity to grow and learn how to balance the commitments they had with their DSC responsibilities.</li><li>Collaboration with the Computer Science department: We had plans of collaborating with the computer science department on some hackathons and other activities in order to get more student engagement. However, this plan stalled due to the global pandemic. It would be great to see this in the coming year.</li></ol><h3>Opportunities and Achievements</h3><ul><li>My first Tech Talk: DevFestAccra 2019 happened during the DSC Sub-Saharan Africa Community Summit. There were tons of people at DevFest Accra that year and about 80-120 of them were present at my talk on Building Twitter Bots. I was really nervous because I wasn’t really expecting my talk to be picked but it happened and I am really happy it did. It was quite an experience and I am grateful for all the support I had from my community and friends. The presentation slides and code for my talk can be found <a href="https://github.com/Lormenyo/TwitterBot">here</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fcFj_clcrIKHXgyFwrqfsw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fq7rwRnbc1Fb3aLi9FdWkw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEpdrJ7i16fbTDDuxgmxcg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_8C1MXjWQpdSAnvAjDMZ8Q.jpeg" /><figcaption>Delivering the talk at DevFest Accra 2019</figcaption></figure><ul><li>Acceleration in my Flutter Journey: Through all the flutter workshops DSC Ashesi University had, plus a lot of practice, I really learned a lot about flutter in a few months. I am currently working on some interesting flutter projects which I am really proud of. Big thanks to <a href="https://medium.com/u/56915b42c43c">Etornam Sunu</a> for honoring all our invitations to several flutter sessions with DSC Ashesi University.</li><li>Improvement in Leadership skills: DSC gives you the platform to learn a lot of things about leadership. I have definitely learned how to communicate better, delegate tasks, manage my time well, listen attentively to other people, and learn from them. I believe everyone is a leader in the community because everyone is blessed with the opportunity to help someone in the tech community or build a solution to the problems in the community every day. That is what being a leader is all about; Lifting others up and making their lives better. This is how impact is created.</li><li>Impact: Looking back, I am so grateful for all the lives my team and I have been able to impact. <a href="https://medium.com/@ashesidsc/flutter-dev-first-flutter-experience-moussa-yanni-f8fd3f1390dd">Some students who had lost interest in programming started programming again</a>. Some freshmen got the opportunity to participate in their first hackathon and built an application for shop owners in less than 24 hours. Student participation in game development increased this year, with a lot more females getting involved. <a href="https://medium.com/@ashesidsc/game-dev-my-first-2d-game-sean-ofori-addo-8ac3a4b21f08">A freshman built his first game</a> after being introduced to Godot engine during one of the DSC game development workshops. This is what makes being a DSC lead totally worth it because the joy I feel after mentoring someone, tutoring, or reading amazing stories from students whose lives have been touched is utterly unmatched.</li><li>Scholarship and Internship: The experience I gathered as a DSC lead, exposed me to various internship opportunities both inside and outside of Ghana. I also got a scholarship from Women Techmakers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*bwlciiRF4Dkeu8nJJ-K3WA.png" /><figcaption>Women Techmakers Computer Science Scholarship</figcaption></figure><ul><li>I remain extremely grateful for all the good and bad memories, mostly good.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wDsIeTX74U0LbszXzgJqaA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssMCu2jvWmhPtQ8HDnL9cg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRA_Kr2S0V9V8a1oYQJmfw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0_FEEB2wpcjeomT7JxLqw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhKBIX4Da57zPsI2YvPtiw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EahLJBb9Eb8NQs9asHxICQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_u2pO2HmS_cytU7jXJ1lUQ.jpeg" /></figure><h3>Key Takeaways</h3><ol><li>The best leaders are those that are invisible.</li><li>Your team is your superpower.</li><li>Build a meaningful relationship with your team.</li><li>Learning never stops.</li></ol><blockquote>You are a torch, a beacon of light. Don’t light the path alone. Don’t hide it either. Share your light with your team and your members, together you become a great light that the world cannot ignore.</blockquote><h3>What Next?</h3><p>Within a span of two years, I have learned, unlearned, and relearned so much. I graduated from being a DSC Ashesi Lead on 31st August 2020. I was presented with a certificate of completion, a letter of commendation from the DSC team and many more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VwaVg75o0CgizMpF8QEbDA.png" /><figcaption>DSC certificate of completion</figcaption></figure><p>I am now a Women Techmakers Ambassador for Accra, Ghana. It is amazing how I have transitioned from Co-Lead to Lead of DSC Ashesi University to Women Techmakers Accra Ambassador in a very short period of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIsaYJwrs1QVGFaTpXKgvA.png" /><figcaption>Women Techmakers Congratulatory message</figcaption></figure><p>“Am I doing a great job?”. I asked myself this question almost all the time. One thing that calmed my heart all the time were these words from <a href="https://medium.com/u/952bf3684ad">AKINJOBI Sodiq</a>, “Progress is always progress”. Don’t be too hard on yourself, and remember to always focus on what is important. Every step is a springboard unto a higher step, so don’t take anything from granted. Just like the words of Qoheleth:</p><blockquote>Whatever your hand finds to do, do it with all your might; for there is no activity or planning or knowledge or wisdom in Sheol (the nether world, the place of the dead) where you are going.</blockquote><h3>Special Thanks</h3><p>I am eternally grateful to my Father, for how far He has brought me and for bringing very lovely people my way. A lot of people have contributed so much to my journey so far. I would like to thank <a href="https://medium.com/u/bcfde6a3b306">Wayne Gakuo</a> for his mentorship and guidance for the past two years. Special thanks to Dr. <a href="https://medium.com/u/82a2b0226bbb">David Ebo Adjepon-Yamoah</a> for being a great club patron and the 2019/2020 Core Team for all their sacrifice and contribution to the success of the community. Also to <a href="https://medium.com/u/1b8af573eb63">Ivy Barley</a> and <a href="https://medium.com/u/ea1d68a1f0e7">Elohor Thomas</a> for giving me and <a href="https://medium.com/u/e4a9d9070107">DSC Ashesi University</a> all the support and opportunities to grow and impact more people. The entire <a href="https://medium.com/u/aa1fdccda1e4">Ashesi University</a> community (the student body, the <a href="https://medium.com/u/71b4af8f4f6a">Ashesi Design Lab</a>, and the Student Life Engagement Team) was so overwhelmingly supportive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e0c63313750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resetting for Cold Boot Emulator Engine failed: Fixed]]></title>
            <link>https://lormenyoh.medium.com/resetting-for-cold-boot-emulator-engine-failed-fixed-8d8aaffd1c7c?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d8aaffd1c7c</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[emulator]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 22:28:06 GMT</pubDate>
            <atom:updated>2020-06-28T22:28:06.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w4TaSG-9-TJ9KuiP.jpg" /></figure><p>This article is to help anyone that is struggling with a similar issue whether in VSCode or Android studio. I couldn’t start my emulator for a while 😥. It always showed a black screen with the prompt <strong>“Resetting for cold boot. Emulation engine failed</strong>”. In VSCode, I got other alerts like <strong>“Emulator couldn&#39;t connect in 60 seconds</strong>”. I had to connect to an android device using a USB to run my applications. That wasn’t very fun for me so I decided to find a solution to the problem.</p><h3>The Solution</h3><p>Open the directory where your <strong><em>emulator.exe</em></strong><em> </em>is located. It will probably be in your <strong><em>“Android/.android/avd” </em></strong>directory<strong><em>.</em></strong></p><p>If you don’t know the exact location of the file, you can find it by following the instructions below:</p><ol><li>Launch the emulator.</li><li>Click on the three dots on the side bar to open a window for external controls.</li><li>On the right side pane of that window, click on bug report. An interface like the one below will show up. Click on the Emulator ID (like the one circled with red ink in the image below)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*4S9gOui7bFz1E7jruhWxPQ.png" /><figcaption>Bug report</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*1MlbsIhbM2IhszRCPaWltA.png" /></figure><p>4. An interface like the one above will appear somewhere on your screen. Copy the path to the emulator.</p><p>5. This should finally take you to the emulator directory. You will see some files like the ones shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*bR0bD-y-g5dZUaTRBzPo2g.png" /><figcaption>Files in directory</figcaption></figure><p>You can read more about these files <a href="https://developer.android.com/studio/run/emulator-commandline"><strong>here</strong></a>.</p><h4>The “userdata-qemu.img” file</h4><p>This file makes all the difference here. The details of this file can be seen in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MG6EdQzRQhoDpag_M6OYgA.png" /><figcaption>Screenshot from Android studio doc</figcaption></figure><h3>The Magic Trick</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F14460675&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fyes-yay-shaq-oneal-excited-dance-gif-14460675&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fimages%2F4dc0109250a652422d08cd04c64ebbd3%2Ftenor.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/99fee1c6dffc01afa3adc49704ad73c6/href">https://medium.com/media/99fee1c6dffc01afa3adc49704ad73c6/href</a></iframe><blockquote><strong>Delete the userdata-qemu.img file</strong></blockquote><blockquote><strong>Relaunch the emulator</strong></blockquote><p>If you are using the command line you can launch the emulator using this command:</p><pre>flutter emulators --launch [emulator-id]</pre><h3><strong>Android Studio</strong></h3><p>For Android Studio users, this problem can easily be fixed :</p><ol><li>Go to Tools &gt; Android &gt; AVD Manager</li><li>Select your emulator device</li><li>Click “Wipe data”</li><li>Relaunch your emulator</li></ol><p>Your emulator should be working now 😃😅</p><blockquote>If this article helped in any way, don’t forget to leave a clap 👍</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d8aaffd1c7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[k-Nearest Neighbor Algorithm]]></title>
            <link>https://medium.com/analytics-vidhya/k-nearest-neighbor-algorithm-157f407abee8?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/157f407abee8</guid>
            <category><![CDATA[knn]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[classification-algorithms]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Sat, 30 May 2020 16:19:57 GMT</pubDate>
            <atom:updated>2020-06-03T16:23:43.369Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rZqkBtKTOW4bg5Bl.png" /></figure><p>k-NN is a supervised machine learning algorithm that is used to solve classification problems. It is a lazy learning algorithm because it only generalizes data after a query is made. It does instance-based learning. This means that k-NN simply memorizes the training data(without any active learning) and makes a prediction using the similarities between the data points.</p><p>For instance, comedy movies have a lot of scenes that are hilarious and make people laugh. Horror movies, on the other hand, have scenes that are very frightening. Therefore, if a movie has a high number of scary scenes, then it is likely to be a horror movie and a movie with many funny scenes is likely to a comedy. If we are to find the genre of a new movie(which is either horror or comedy), we could do that by counting the number of horror scenes and comedy scenes and then classifying it as either horror or comedy depending on whether it has a higher number of horror scenes or comedy scenes. This is what a k-NN classifier does….</p><h4><strong>The Algorithm</strong></h4><p>When the algorithm is queried with an input vector X, the kNN classifier does three main things:</p><p>1. Calculates the Euclidean distance</p><p>2. Sorts the distance in increasing order</p><p>3. Finds and returns the majority class in <em>k</em> items with the lowest distances to X.</p><h4>Calculating the Euclidean Distance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*OK1ApDcN2eoTxSW7LGAQBg.png" /><figcaption>Sample Data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/123/1*_4b8PLqkKgykl6XuHItnxw.png" /><figcaption>Input Vector</figcaption></figure><p>Assuming the input vector is as shown above. Then for the sample data described in the table above, the distance for Movie 0 will be calculated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*JwM24s6_NOVwfXDjyXSVDQ.png" /><figcaption>Euclidean distance equation</figcaption></figure><p>The code for this is shown in the image below. Note that the distance is calculated for each data point(eg. Movie 0, Movie 1, Movie 2 etc) in the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9siYE-HB_WySWXx4_pfeQ.png" /><figcaption>Calculating The Euclidean Distance</figcaption></figure><h4>Sorting the distances</h4><p>After calculating the distances between the data points in the training data and the input vector, the distances are sorted in increasing order. The table below shows an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*VqkDPHP2EUg8VZvqg43aZw.png" /><figcaption>Sorted distances for movies</figcaption></figure><p>The code for this can be seen in the snippet below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*mwAugbwOa9HJ-jb6QnZdgg.png" /><figcaption>Sorting the distances</figcaption></figure><h4>Finding and Returning the Majority class</h4><p>The next step is picking the top k most similar items in the training data. <em>k is an integer and it is usually less than 20. </em>In the image below, assuming k = 3, then the majority class will be class B. However, if k=7, then the majority class will be class A.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*nBLTVta4DgRT_C3wJWBWFg.png" /><figcaption>Neighbors</figcaption></figure><p>The majority class is basically the first element in the sorted list of distances. It is the class of the point that is closest to the input data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*MwbEP_kBuuz5zf7HaB3fpA.png" /><figcaption>The majority class</figcaption></figure><p><strong>Pros</strong></p><ul><li>It is easy to implement.</li><li>It works with numeric and nominal values.</li><li>It is insensitive to outliers since it only measures the distance between the data points.</li><li>k-NN is a non-parametric learning algorithm. This means it makes no assumptions about the data. For instance, k-NN does not assume that the data is linear separable or not. It doesn’t care.</li></ul><p><strong>Cons</strong></p><ul><li>For a lazy learning algorithm like k-NN, there is no training phase. Due to this, a lot of time is taken during predictions since the classifier searches for the nearest neighbors in the entire training set each time a prediction is made.</li><li>It is computationally expensive. A lot of memory is required to store the training data when making predictions.</li></ul><blockquote>The full code can be found in this <a href="https://github.com/Lormenyo/ML_Algorithms_From_Scratch"><strong>github repository</strong></a>. Thank you so much for reading this article. I hope it was very enlightening. Don’t forget to clap 😊👍</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=157f407abee8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/k-nearest-neighbor-algorithm-157f407abee8">k-Nearest Neighbor Algorithm</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE AQUARIUM]]></title>
            <link>https://lormenyoh.medium.com/the-aquarium-9acabb32f93a?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/9acabb32f93a</guid>
            <category><![CDATA[sensors]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[temperature]]></category>
            <category><![CDATA[fish-farming]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Thu, 06 Feb 2020 14:29:57 GMT</pubDate>
            <atom:updated>2020-02-06T14:29:57.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Image of active fishermen in Cape Coast, Ghana by Anthony Pappone on Flickr" src="https://cdn-images-1.medium.com/max/1024/1*vGptG6MkyOILzNLvD20UGg.jpeg" /><figcaption>Image by Anthony Pappone on Flickr</figcaption></figure><p>A major problem faced in the fishing industry has to do with lack of preservation linked with long storage time. These circumstances lead to the spoilage of the fish, thereby throwing the hard work and sweat of all fish folk into the cold dark abyss from whence the aquatic creatures came. Prior to their capture, fishes also stand a chance of dying prematurely as a result of a respective increase or decrease in pH or temperature. This event in turn leads to low production and income rate in fish farming since the dead fishes are rendered uneatable.</p><p>With this problem in mind, <em>The Aquarium</em> was born. <em>The Aquarium</em> is a team consisting of 7 juniors from Ashesi University, Ghana:</p><ol><li>Hannah Lormenyo (Electrical &amp; Electronics Engineering)</li><li>Edinam Klutse (Computer Engineering)</li><li>Kwasi Owusu-Nyampong (Electrical &amp; Electronics Engineering)</li><li>Nana Parker (Computer Engineering)</li><li>Petit Koranteng (Electrical &amp; Electronics Engineering)</li><li>William Akuffo (Electrical &amp; Electronics Engineering)</li><li>Oscar Uwayo (Computer Engineering)</li></ol><p>The ideology behind the foundation of <em>The Aquarium</em> is centered around the effective preservation of the lives of the fishes up until they are caught by the fishermen. <em>The Aquarium </em>seeks to create a sensor package to monitor the state of the water body in the prey of the fishermen reside. The sensor package would, in theory, monitor the pH and temperature values as well as upload the respective values to a database which can be accessed via friendly interface.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9acabb32f93a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reduce, Reuse, Recycle — Ahote Sanitation project]]></title>
            <link>https://lormenyoh.medium.com/reduce-reuse-recycle-ahote-sanitation-project-905720def5e2?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/905720def5e2</guid>
            <category><![CDATA[ashesi]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[ahotesanitationproject]]></category>
            <category><![CDATA[recycling]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Wed, 14 Nov 2018 11:28:58 GMT</pubDate>
            <atom:updated>2018-11-14T11:28:58.269Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Reduce, Reuse, Recycle — Ahote Sanitation project</strong></h3><p>A healthy environment ensures a healthy community. This is the main vision of Ahote Sanitation Project. Ahote project is an initiative that seeks to create awareness of the need to cultivate environmental sustainability practices in our society. We do this by engaging the youth to champion positive social change in their own communities by introducing them to sustainable practices such as recycling and composting which is geared towards attaining Sustainable Development Goal 13 — Climate Change .Find out more about Ahote project <a href="https://www.facebook.com/ahoteproject"><strong>here</strong></a>.</p><h3><strong>Recycling</strong></h3><p>The organization currently works with other inhabitants of Berekuso who collect water sachet from households and pay them 20 Ghana cedis for every thirty-kilogram bag of water sachet accumulated.</p><h3><strong>Sports</strong></h3><p>School children love sports. Ahote Sanitation project tries to direct some of their enthusiasm they have towards sports to Sanitation. After their daily soccer training, Somnia Academy kids are taken through some basic sanitation concepts like Recycling as well as personal hygiene.</p><h3><strong>Environmental Workshops</strong></h3><p>Holding an hour-long workshop in schools is one of the exciting things we do. The students are always excited to learn the new things about how to manage and segregate waste.</p><h3><strong>Workshop at Berekuso</strong></h3><p>On October 26, 2018, we had a great workshop with the kids at Berekuso Basic School. They were happy to learn about recycling and composting. We left them with a small package that got them very excited. I took them through the process of making a pencil case out of bottles. For this activity we used the following materials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*EHXoAwvEU0dNezF3NgM41g.png" /><figcaption>Materials needed</figcaption></figure><p>1. Two bottles</p><p>2. Zipper</p><p>3. Glue Gun with glue stick</p><p><strong>Steps:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*Pyb_lITv8bIeB8YfOIGZfg.png" /><figcaption>Cutting the bottles</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*Pyb_lITv8bIeB8YfOIGZfg.png" /><figcaption>Cutting the bottles</figcaption></figure><p>2. Fix the zip on the bottles with the glue gun.</p><p>3. Wait for it to dry . Ta-da….you have a pencil case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*EYeABLqffu9Wlq-nhndM1Q.png" /><figcaption>Pencil Cases</figcaption></figure><p><strong>How it went with the students:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*dOdR_TfkcnOfRPWp4YNL2Q.png" /><figcaption>Kelvin and his colleagues displaying the pencil cases they made</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Ija_oO2MG1MaQG5-wP3ZwQ.png" /><figcaption>Talking to them about Recycling and Composting</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*SVgntRpgf38CxhzYsBfg0Q.png" /><figcaption>Ended with smiles</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=905720def5e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Measuring Air Quality]]></title>
            <link>https://lormenyoh.medium.com/measuring-air-quality-4e0a3f4cf459?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e0a3f4cf459</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[air-quality]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Thu, 08 Nov 2018 16:23:15 GMT</pubDate>
            <atom:updated>2019-01-30T13:51:08.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Air quality is the degree to which the air we breathe is suitable and safe for breathing. Particulate matter , Carbon monoxide, Sulphur dioxide and Ozone gas are some of the gases that reduce air quality. The Air Quality Index(AQI) is a scale which ranges from 0 to 500 and provides information on how healthy or unhealthy the air we breathe is. It also gives shows the health effects of breathing unhealthy air. The higher the AQI value, the higher the level of pollution and health effects. The air quality standard is commonly 100. AQI values below 100 are satisfactory and those above are considered unhealthy with detrimental health effects.</p><h3>How do we measure Air quality?</h3><p>PM2.5 Air Quality Sensor with Breadboard Adapter and Adafruit CCS811 Air Quality Sensor Breakout are sensors that could be used to measure Air quality. They are used with Arduino microcontroller to get accurate readings for the levels of pollution in air.</p><h3><strong>PM2.5 Air Quality Sensor with Breadboard Adapter</strong></h3><p>PM2.5 refers to particles that are 2.5 microns or smaller in diameter.) This sensor uses laser scattering to radiate suspending particles in the air, then collects scattering light to obtain the curve of scattering light change with time. The microprocessor calculates equivalent particle diameter and the number of particles with different diameter per unit volume.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*aZ0Tvv3v8VciU1_dQP7aBA.png" /><figcaption><strong>PM2.5 Air Quality Sensor</strong></figcaption></figure><pre>// On Leonardo/Micro or others with hardware serial, use those!<br>// uncomment this line:<br>// #define pmsSerial Serial1</pre><pre>// For UNO and others without hardware serial, we must use software serial...<br>// pin #2 is IN from sensor (TX pin on sensor), leave pin #3 disconnected<br>// comment these two lines if using hardware serial<br>#include &lt;SoftwareSerial.h&gt;<br>SoftwareSerial pmsSerial(2, 3);</pre><pre>void setup() {<br>  // our debugging output<br>  Serial.begin(115200);</pre><pre>// sensor baud rate is 9600<br>  pmsSerial.begin(9600);<br>}</pre><pre>struct pms5003data {<br>  uint16_t framelen;<br>  uint16_t pm10_standard, pm25_standard, pm100_standard;<br>  uint16_t pm10_env, pm25_env, pm100_env;<br>  uint16_t particles_03um, particles_05um, particles_10um, particles_25um, particles_50um, particles_100um;<br>  uint16_t unused;<br>  uint16_t checksum;<br>};</pre><pre>struct pms5003data data;<br>    <br>void loop() {<br>  if (readPMSdata(&amp;pmsSerial)) {<br>    // reading data was successful!<br>    Serial.println();<br>    Serial.println(&quot;---------------------------------------&quot;);<br>    Serial.println(&quot;Concentration Units (standard)&quot;);<br>    Serial.print(&quot;PM 1.0: &quot;); Serial.print(data.pm10_standard);<br>    Serial.print(&quot;\t\tPM 2.5: &quot;); Serial.print(data.pm25_standard);<br>    Serial.print(&quot;\t\tPM 10: &quot;); Serial.println(data.pm100_standard);<br>    Serial.println(&quot;---------------------------------------&quot;);<br>    Serial.println(&quot;Concentration Units (environmental)&quot;);<br>    Serial.print(&quot;PM 1.0: &quot;); Serial.print(data.pm10_env);<br>    Serial.print(&quot;\t\tPM 2.5: &quot;); Serial.print(data.pm25_env);<br>    Serial.print(&quot;\t\tPM 10: &quot;); Serial.println(data.pm100_env);<br>    Serial.println(&quot;---------------------------------------&quot;);<br>    Serial.print(&quot;Particles &gt; 0.3um / 0.1L air:&quot;); Serial.println(data.particles_03um);<br>    Serial.print(&quot;Particles &gt; 0.5um / 0.1L air:&quot;); Serial.println(data.particles_05um);<br>    Serial.print(&quot;Particles &gt; 1.0um / 0.1L air:&quot;); Serial.println(data.particles_10um);<br>    Serial.print(&quot;Particles &gt; 2.5um / 0.1L air:&quot;); Serial.println(data.particles_25um);<br>    Serial.print(&quot;Particles &gt; 5.0um / 0.1L air:&quot;); Serial.println(data.particles_50um);<br>    Serial.print(&quot;Particles &gt; 10.0 um / 0.1L air:&quot;); Serial.println(data.particles_100um);<br>    Serial.println(&quot;---------------------------------------&quot;);<br>  }<br>}</pre><pre>boolean readPMSdata(Stream *s) {<br>  if (! s-&gt;available()) {<br>    return false;<br>  }<br>  <br>  // Read a byte at a time until we get to the special &#39;0x42&#39; start-byte<br>  if (s-&gt;peek() != 0x42) {<br>    s-&gt;read();<br>    return false;<br>  }</pre><pre>// Now read all 32 bytes<br>  if (s-&gt;available() &lt; 32) {<br>    return false;<br>  }<br>    <br>  uint8_t buffer[32];    <br>  uint16_t sum = 0;<br>  s-&gt;readBytes(buffer, 32);</pre><pre>// get checksum ready<br>  for (uint8_t i=0; i&lt;30; i++) {<br>    sum += buffer[i];<br>  }</pre><pre>/* debugging<br>  for (uint8_t i=2; i&lt;32; i++) {<br>    Serial.print(&quot;0x&quot;); Serial.print(buffer[i], HEX); Serial.print(&quot;, &quot;);<br>  }<br>  Serial.println();<br>  */<br>  <br>  // The data comes in endian&#39;d, this solves it so it works on all platforms<br>  uint16_t buffer_u16[15];<br>  for (uint8_t i=0; i&lt;15; i++) {<br>    buffer_u16[i] = buffer[2 + i*2 + 1];<br>    buffer_u16[i] += (buffer[2 + i*2] &lt;&lt; 8);<br>  }</pre><pre>// put it into a nice struct :)<br>  memcpy((void *)&amp;data, (void *)buffer_u16, 30);</pre><pre>if (sum != data.checksum) {<br>    Serial.println(&quot;Checksum failure&quot;);<br>    return false;<br>  }<br>  // success!<br>  return true;<br>}</pre><h3><strong>Adafruit CCS811 Air Quality Sensor Breakout</strong>.</h3><p>This sensor from AMS is a gas sensor that can detect a wide range of Volatile Organic Compounds (VOCs) and is intended for indoor air quality monitoring. It returns the Total Volatile Organic Compound (TVOC) reading and an equivalent carbon dioxide reading (eCO2) over I2C when connected to a microcontroller(Arduino). The sensor also has a thermistor that returns the approximate local ambient temperature.</p><h3><strong>Wiring</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*uV19fLa2zBsfDsSifU3inw.png" /><figcaption>How to connect CCS811 to Arduino</figcaption></figure><p>The ground(GND ) and WAKE on CCS811 sensor are both connected to the GND of the Arduino. The VIN on the sensor is connected to 5V on the Arduino. SCL and SDA are connected to SCL(or A5) and SDA(or A4) respectively on the arduino.</p><h3><strong>Code:</strong></h3><p>An example code from the Adafruit CCS811 Library is used. You can download the library <a href="https://github.com/adafruit/Adafruit_CCS811/archive/master.zip"><strong>here</strong></a>. Another way is using the manage library window in the Arduino IDE.</p><p>After downloading the library, open the example code and upload it on the Arduino.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*5ty3Az450V-HkId5" /><figcaption>from: <a href="https://learn.adafruit.com/adafruit-ccs811-air-quality-sensor/arduino-wiring-test">https://learn.adafruit.com/adafruit-ccs811-air-quality-sensor/arduino-wiring-test</a></figcaption></figure><p>Open the Serial monitor to see the readings from the sensor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/0*k6a7smL8ySZp53dd" /><figcaption>from <a href="https://learn.adafruit.com/assets/44635">https://learn.adafruit.com/assets/44635</a></figcaption></figure><p>The CO2 readings are in parts per million (PPM). However, the TVOC readings are in parts per billion (PPB).</p><p>Outdoor CO2 can range from 300 to 500ppm. Indoor air with CO2 levels below 700ppm is considered acceptable. <em>“Indoor CO2 concentrations of 1000 to 1200 ppm in spaces housing sedentary people is an indicator that a substantial majority of visitors entering the space will be satisfied with respect to human bioeffluents (body odor).”</em>(<a href="https://cdn.sparkfun.com/assets/learn_tutorials/1/4/3/ASHRAE_Allowable_CO2_Levels.pdf"><strong>from ASHRAE</strong></a>)</p><p>At present no precise guidance can be given on which levels of TVOC are of concern from a health and comfort point of view, and the magnitude of protection margins needed cannot be estimated.</p><p>Our health is an integral part of the sustenance of our lives. Therefore, it is high time we set up air monitoring systems in our communities to check the air we breathe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e0a3f4cf459" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is the Air we breathe really keeping us alive?]]></title>
            <link>https://lormenyoh.medium.com/is-the-air-we-breathe-really-keeping-us-alive-98deffbcf328?source=rss-9516c336ecee------2</link>
            <guid isPermaLink="false">https://medium.com/p/98deffbcf328</guid>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[ashesi-university]]></category>
            <category><![CDATA[agbogbloshie]]></category>
            <category><![CDATA[ghana]]></category>
            <dc:creator><![CDATA[Hannah Lormenyo]]></dc:creator>
            <pubDate>Thu, 08 Nov 2018 16:15:00 GMT</pubDate>
            <atom:updated>2018-11-08T16:15:00.512Z</atom:updated>
            <content:encoded><![CDATA[<p>Naturally, the air that we breathe sustains our life, but every second spent at Agbogbloshie seems to scrape off some of that human life. On October 20, 2018, I had a great experience at Agbogbloshie with some colleagues. It was almost unbelievable how this place came to be known as the capital of E-waste in all of Africa. This experience made me question the quality of air that I breathe everyday. Comparing the pollution levels(sensor) at Agbogbloshie to that at Ashesi University- Berekuso, there was a vast disparity between the values. The pollution levels at Agbogbloshie are so high that they deteriorate the health conditions of the inhabitants in that vicinity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUH-_runHEItTdHWyKDzjg.png" /><figcaption>Smoke from fire used to strip wires</figcaption></figure><p>To many people, Agbogbloshie is just a marketplace where they get their yams and onions. However, beyond the vegetables and yam tubers and the shouts of many “kayayos”(Head porters), there is a place I nicknamed “The metal mine” at Agbogbloshie. Here, all the Electronic waste could be found without even having to look at all. Many young men laboriously go through this E-waste for different purposes. The most popular one is the extraction of copper strips from old wires. It was appalling how they had to burn off the plastic around the wires just to get the copper out. Other ones include old car engine blocks and other scrap metals from old machines that are hammered and battered to extract the valued metals like iron and Aluminium from them. Among all these things that I witnessed that day, the most amazing and mind blowing event was watching young men hammer and chisel down an entire bus for scrap metal. Everything was just being torn apart manually, bit by bit. The copper strippers, the Iron and Aluminium extractors and the bus crushers all had one thing in common; they were all without protective gear. They all faced different levels of hazards including the air they all had to breathe throughout the day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8UZlz--MqsHQxR8N6-2RA.png" /><figcaption>Metals scraps from old cars</figcaption></figure><p>An article from The Guardian which was published in 2013 makes it clear that a lot of these young men who work and live in this dangerous environment despite their foreknowledge of the health risks involved come from the Northern part of Ghana. The irony of the situation is, making money from scrap metals is meant to be their way of surviving, but the air they breathe has strangle them to death every day.</p><p>The chart below shows the various pollutants and how they affect the air quality(the degree to which air in a particular location is safe and healthy to breathe).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*egQWbfFnM4RGetWXQh7nSw.png" /></figure><p>The inhabitants of Agbogbloshie are very important resources to the nation, and their lives must be protected. How and when this will happen are questions that young people with the zeal to make Ghana better must answer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98deffbcf328" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>