Skip navigation

Connected Cloud Challenge

13 Posts authored by: wanfp97
wanfp97

#13 Summary

Posted by wanfp97 May 25, 2020
I have not finish my project yet, but since today is the due date for the Connected Cloud Challenge, I will make a summary for what I have done.   List of blogpost: #1 Smart Pet Home Introduction #2 Familiarizing with PSoC 6 (Hello World) #3 Familiarize with Device Configurator #4 Controlling a servo motor #5 GPIO read and write #6 GPIO interrupt #7 Resolving issue met in previous blog post #8 Controlling water pump using PSoC6 #9 Amazon FreeRTOS #10 AWS IoT Cloud #11 Water sensor calibrat ...
I have made some modification on the coding that I have used in my previous blogpost #11 Water sensor calibration so that the water dispenser will stop automaticly when the water level reaches the calibrated level.   BOM: PSoC6 WiFi-BT Prototyping Kit, a water pump, two 18650 battery, 18650 battery socket, 2 N-channel MOSFET, a push button, a buzzer, a red led, a green LED, 6x 10k ohm potentiometers, some jumper wires, a bread board, a water pump and hose, a 1.5L water bottle, a 500ml wate ...
Few days ago, I have got some of the component that I have ordered online. With that, I'm going to make some improvements on my water dispenser that I have designed in my previous blogpost #8 Controlling water pump using PSoC6 .   I have replaced the 12 NPN transistor that I used in my previous blogpost with a N-channel MOSFET and also added a water sensor to the water dispenser to detect the water level.   BOM: PSoC6 WiFi-BT Prototyping Kit, a water pump, two 18650 battery, 18650 ba ...
wanfp97

#10 AWS IoT Cloud

Posted by wanfp97 May 11, 2020
To know more about AWS IoT Cloud, you can watch the video that I got from Cypress Semiconductor YouTube channel:   I have completed step 1 of the Getting Started with Amazon FreeRTOS and PSoC62+43xxx.pdf in my previous blog post #9 Amazon FreeRTOS . In this blog post, I will proceed to the 2nd and 3rd steps.   click on the First Steps and get direct to https://docs.aws.amazon.com/freertos/latest/userguide/freertos-prereqs.html .   We will only need to follow the instruct ...
wanfp97

#9 Amazon FreeRTOS

Posted by wanfp97 May 11, 2020
After having the water dispenser to work, it is a good idea to put it on AWS IoT Cloud so that it can be controlled through AWS IoT Cloud when the owner is not around. But before that, we need to include Amazon FreeRTOS in our library so that we can interact with AWS IoT Cloud.   The below video taken from Amazon Web Services YouTube channel give you a brief idea on what is Amazon FreeRTOS:   Following the link provided by the organizer of the Connected Cloud Challenge: Cypress Ama ...
After learning some basic function of the PSoC6, is time to implement them in my Smart Pet Home project. I will start with controlling the water dispenser with PSoC6. Unfortunately, my PSoC6 WiFi-BT Pioneer Kit was damaged because I accidentally short circuit it when dealing with a external power supply for my water pump. Therefore, my following blog post will be base on PSoC6 WiFi-BT Prototyping Kit.   BOM: PSoC6 WiFi-BT Prototyping Kit, a water pump, two 18650 battery, 18650 battery so ...
In my previous blog post, #5 GPIO read and write , I faced an issue where my TCPWM keep swapping its compare value and causing the servo to act weirdly. After some troubleshooting, I have found that the issue occur due to I place the Cy_TCPWM_TriggerCaptureOrSwap(tcpwm1_HW, 1UL);  at the part where I poll the logical status of the GPIO and thus causing the TCPWM to swap its compare value each time the GPIO logical status is checked. To resolve this issue, the easiest solution would be not ...
wanfp97

#6 GPIO interrupt

Posted by wanfp97 May 7, 2020
In my previous blog post #5 GPIO read and write , I have faced an issue where my servo is not operating as I want it to. I revised my coding and found out that the problem is probably due to the compare value of the tcpwm1 keep toggling as I'm keep polling the status of the button GPIO input pin.   While I'm finding the solution for this issue, I found this example code: A GPIO Interrupt might be the solution for my problem.   I created the GPIO_Interrupt Starter application and r ...
wanfp97

#5 GPIO read and write

Posted by wanfp97 May 7, 2020
The next thing I would like to do is to get familiarize with the GPIO as it is one of the easiest way to read and write a single bit of data.   BOM: PSoC6 WiFi-BT Pioneer Kit, a servo motor, a green LED, a red LED, 2 potentiometer with resistance adjusted to around 300 ohm, a push button, and some jumper wires.   I start by using the application I have create during the last blog post. I leave the tcpwm1 and the clock divider untouched.   Enable a pin and named it button. S ...
Previously I have learnt how to operate a TCPWM using Device Configurator. In this blog, I will try to control a servo motor using a TCPWM for PSoC6.   BOM: PSoC6 WiFi-BT Pioneer Kit, a servo motor, and some jumper wires.   As previous, I created an Empty_PSoC6_App from the code example and opened up the Device Manager: Setting clock divider to 10000 to get a 10kHz clock.   Setting up tcpwm1: I noticed that there is a Enable Compare Swap option available in the Device Man ...
Below are the materials that I have used in this blog, do prepare those items so you can follow what I have done if you wish so. BOM: PSoC6 WiFi-BT Pioneer Kit, 1 LED, 1 potentiometer with resistance adjusted to around 300 ohm.   When I'm trying to find some step by step guide for PSoC6 online, I found the video below from Cypress's website. https://www.cypress.com/video-library/PSoC/modustoolbox-101-lesson-2-3-pwm/610036 Unfortunately, I can't embed the video in this blog because the S ...
This blog post give a simple example of how to interact with PSoC6 step by step.   BOM: PSoC6 WiFi-BT Pioneer Kit.   First of all, I have installed the ModusToolbox 2.1 version by following the ModusToolbox Installation Guide and read through the ModusToolbox User Guide.   I then started to test out the example code in the ModusToolbox 2.1. Clicking New Application at the bottom left corner. Choosing the Board Support Package(BSP): In my case, I chose the BSP for CY8CKIT- ...
In this blog post, I will give a rough idea of what I'm going to do with my project.   Below is the block diagram of my project: Block diagram The designs of the peripherals such as food dispenser, water dispenser, and sleeping pod are as below: Food dispenser Water dispenser Sleeping pod Ball launcher, laser pointer and evacuation door   The user will have access to the whole system through a custom design mobile application which is connected to the AWS IoT Cloud. Below is the e ...