Skip navigation
"Matrix" (by WordWeb Dictionary meaning) - An enclosure within which something originates or develops   At the start a lot of confusion engulfed me on the many tools available for the kit. I have recently been using Raspberry pi (with Kali Os installed) and diving into the cypress and MBED website had me sit upright (24/7) having deep thought on how to find my way around. Remember in my earlier blogs I did stress on the challenges and in this blog I would be discussing on some of it   ...
Introduction Making the Case First Design and First Issues Second Design: a Better Result Wrong 3D Printing (Sic!) The Final Build Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction A considerable part of the development of the Super Smart Home business logic is dedicated to the Control Center (Raspberry Pi based device) and the PSoC6 covering the double role to connect to the AWS IoT Cloud and managing some ...
  Connected Cloud - Bus Transport System  Note: Excuse for the water-mark, It costs a lot to subscribe/upgrade and to remove them. Maybe later I'll have it removed, Thanks.       PREV Blog                                               & ...
Start  The start of the challenge was very exiting for me. I was thinking about implementing a solution that can collect and effectively and secure share health related data between multiple parties. And I was getting all required components of the solution. So, what should be simpler than connecting dots between them?   AWS IoT  I had some experience with AWS before by building Alexa skills. And I had a lot of experience with MQTT and related security. But I've been struggling ...
Testing  I' was working on testing of my wearable design and in the process of testing I've broke my key component in the project - the heartbeat sensor. One of the LED legs lost contact,   Recovery Attempt  I've tried to solder the led leg back, but I was not able to fix it.   Logistics Challenge  This sensor was sourced from China. I have still an outstanding order from the beginning of February for a similar sensor. it was no possible for me to get a replacement ...
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 ...
Image to BitMap C-Style Stream Conversion using Python :   As I have discussed in earlier Blog that After fetching Image from DataBase we need to convert that image into C streamable format for LCD display, After analyzing the input file and output file of Image to Bitmap Converter I have created my own code which can be deployed on Server and convert Image files into C-style streamable format.   My Python code to output a table of hex values representing the size and data from a . ...
Introduction Software Skeleton Display Monitoring Pages Software Development Managing the UI: a Challenging Development The Segger emWin Kit Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction The Cypress PSoC6 WiFi BLE kit is a great and powerful board that includes several features it is worth to use locally, regardless of its role to connect to the AWS IoT Cloud. For example, one of the interesting feature ...
Introduction As the deadline have been extended, we are working future more to use of deep learning for recognised to detect dog barking which may harmful of the pedestrian. We train and deploy under AWS SageMaker and connect our IoT device though AWS IoT by fine turning the pre-trained AudioSet by Google's open source as part of Tensorflow model, we fine turning on top of this model as output only two variance: Angrydog or other, which acheive around 90% accuracy.   Amazon SageMaker Amaz ...
Technical vs Technology Challenges    In This blog I will be discussing the requisites on "Technical" and "Technology" Challenges to incorporate into my project.     Technical Challenges: ========================= AWS Cloud SQL database creation AWS Cloud APIs to access database AWS Cloud connect AWS Cloud AI/ML (Clustering algorithm) service and integration with project PSoc boards bring-up BLE Beacon Protocol Implementation (use of APIs to build application) RFID Ca ...
The Challenge:  In My City which is densely populated, City planners find it difficult to cope with the dynamic changes in requirement of daily (Bus or transport) services and to improve the efficiency of the services and meet demands. The Challenges faced with the existing system is on how to meet demands and expectations of commuters and how to mass move commuters in an efficient manner. Commuter demands vary across the timezone within a day.   We have peak (i.e. early morning) ho ...
Learning Mbed  To get started with Mbed I began programming a non-trivial but not complex LED library. The Pioneer PSOC6 board contains 3 user programmable LEDs: an RGB LED, an orange LED and a red LED.     The source code runs 2 threads: main() and ledThread(). main() controls the LEDs by sending messages, through an Mbeds' Queue object, to ledThread(). LEDs can operate in 3 different modes: on or off, oscillating and pulsing. The program is made of 3 files:     ma ...
This is the final creation *this is a placeholder that i intend to update further*               Summary I keep having DAPLink error with the board. Please look at my blog #3 on the details another problem is the forever loading situation upon running the debug. this problem is also due to same reason as above. So, i strongly think the documentation and user manual have to include a FAQ section of problem solving     List of Blogs    ...
this explains my exploration with the many and somewhat confusing services on AWS   although i have used some of AWS services in the past, the IoT portion is new to me   After referring to the FreeRTOS getting started guide with PSoC 6, i list down the important components   IoT core Thing   Lambda -> this is used to create function or micro service without configuring the EC2 or ECS instance. A simple EC2 instance with the other stuff will set the user back by at lea ...
DC motor   *this is a placeholder that i intend to update further* ...
how to do IO ?   *this is a placeholder that i intend to update further*       Let's revisit the MQTT step Looking my blog #1 after we successfully run the debug via kitprog3, we will use putty (below is my settings) It will shows this output, where the thread is suspended after we click resume, we will see the output ...
weiwei2

System Diagram - #5

Posted by weiwei2 May 12, 2020
*this is a placeholder that i intend to update further* This is the system diagram   The PSoC 6 board is connected to coin box           I do face this error And here are the details: in fact this is something that i have resolved in my blog #2. But i have forgotten about the solution. i list them down below as reference this happen when i click aws_demos Debug (KitProg3) in the Launches   solution 1) ensure firmware is updated. 2.3.0.568 2) en ...
Connected Cloud Challenge - IoT Gaming Table - Blog Post 4 - Game API By Brian Childers - April 2020   Fantasy Grounds API Manual Entry References   With Fantasy Grounds being the selected platform, some research was done to determine what API calls would be needed to automatically integrate into the gaming platform.   1. Fantasy Grounds API In exploring the API, it was discovered that there is no way to "override" the dice roll so it looks like I will have to look at a dif ...
Introduction:   Smart pill dispenser to make the life easy for the aging population. As people age it will become difficult to keep track of the prescribed medication and follow a schedule. Most senior citizens follow a daily routine of taking tablets at a schedule time slot, not following may result in unwanted drug reaction. This smart pill dispenser simplifies the process and make decision for the user based on the set schedule and loaded tablets.     Block Diagram: How the ...
Project Summary   Creating a Super Smart Home design from scratch has been one of the most interesting and exciting competitions I ever participated in. As a fan of The Cypress PSoC family with some experience on how the AWS ecosystem works (I own an AWS EC2 server by 2015, already used some AWS IoT service and strongly sponsoring the AWS use to the customers of the company I work here in Belgium), it was a great WOW seeing the kit of this challenge. In the past, I experimented a lot wi ...
Introduction How Does Mbed Work Starting with PSoC6 and Mbed Conclusion Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction I should say that I am a fan os the Cypress PSoC family. When I discovered the existence of the PSoC4 I bought a bunch of 10 I have used in many projects in the past. Then I also explored the PSoC5 (and two of them, available for some project, are still in my lab). Then I got a PSoC6 Bt with the ...
Introduction The Circuit The Logic and Software Local Node Status Software Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction In the previous post, we saw how The Kitchen Node has been divided into several components to keep the monitoring of them independent. accordingly to this model I have created a circuit design centered on the Arduino Mega 2560 microcontroller that using one of its serial interface updates ...
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 ...
Project Submission:   The main problem which I want to address is the procedure after the company or brand gives the contract to an advertisement company like : 1) Replace the old posters which are on different heights and it can also be dangerous to replace that poster and attach a new one in that place. 2) The advertisement company needs to record all this payment and time period of this contact by manually in paper or in excel sheets. 3) After completion of this contact, they need to rep ...
Introduction The Strategy The Parts Water Bowl Gas Cooking Plate Cooking Light and Aspirator Fan The Components Microcontroller Networking Sensors Actuators Powering Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction The Kitchen Node is one of the more complex nodes of the Super Smart Home; this complexity depends mostly on the sophisticated logic of the software that should run f ...
Hai all,   Due to the ongoing lockdown, I was not able to receive and get my hands on the challenger kit until 2 days back. I will not be able to compete in the challenge further as the deadline is today. But this would not hinder me from developing the project with the kit. I will continue to work on the same and post the updates here.   The project Smart Home powered by Cypress and AWS is based on the PSoC 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WIFI-BT) from Cypress.   I am plann ...
Getting Started with AWS IoT:   Amazon Web Services is a massive suite of services, including cloud servers, databases, DNA, Machine Learning, even quantum computing! Plus the service that is especially interesting to us --IoT. Go check-it, and you' all see just how many services they offer. It's truly mind-boggling.   While you're there, you can either create a new account or you should be able to log in with your existing Amazon account credentials. Don't worry about costs yet -- A ...
My daughter assembled and painted this 'stupid' box coin box robot It will be used for our main coin box illustration operation is simple, a dc motor pushes up the mouth when there is electricity passing through due to placement of coin on the hand my next task is to connect the signals to the PSoC 6 board ...
having initial failure with the pioneer kit DAPLink (note: i have subsequently resolved it) for mBED, i have decided to check out the forum on any TFT support under ModusToolbox or emwin to my delight there is a forum post here that adds TFT support in Modustoolbox   first, i try to add the TFT to the project i create in my blog 1 i did encounter a problem when it complains CY_TOOLS_PATHS is not set, and i resolve it by adding environment variable as describe in  https://www.cypress ...
TFT Display Bitmap Custom Image:   As we have seen in the previous blog we can modify or create our own code to display custom images on TFT screen of PSoC 6. Let's get started with code that needs to be modified.   First, start with main_cm4.c file :   void ShowBitmap(void) {     /* Set background color to black and clear screen */     GUI_SetBkColor(GUI_BLACK);     GUI_Clear();     /* Display the bitmap image on th ...
TFT Example Code: I have taken this example from Cypress Website which is named as "CE223726 – PSoC 6 TFT Display Interface with EmWin Graphics Library" This code example demonstrates how to display graphics on a TFT display using EmWin Graphics Display Library. EmWin graphics library implements 2D graphics and provides easy-to-use API functions to display text, 2D graphics (lines, rectangles, circles, etc.), and bitmap images. In PSoC Creator™, EmWin graphics library is implement ...
Getting started with PSoC Creator : PSoC Creator 4.3, PSoC Programmer, and the kit design files which you can download from here. You may need to create an account on Cypress site first in order to download the file. The installation of the prerequisite software should be quite straight forward so I am not going to describe it in detail. However, a couple of things need to pay attention: 1. After installing PSoC Creator 4.2, some components may be out-of-date, so you may need to run Cypress Upd ...
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 ...
Due to this COVID-19 pandemic situation, I got my Hardware very late, so I will skip the writing about PSoC introduction/architechture and their specification which is also available on the Internet. Let's jump to the practicals and directly hands-on to PSoC-6 hardware and programming. Demo of Default Code in Boxwe only need to power up the device while keeping all the onboard switches and jumper at the right places. All the drivers are only required if we are also planning to monitor all t ...
IoT Protocols : 1) CoAP (Constrained Application Protocol): CoAP is designed to easily interface with HTTP for integration with the Web while meeting specialized requirements such as multicast support, very low overhead, and simplicity for constrained environments. 2) MQTT (Message Queuing Telemetry Transport): It was designed as extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or networ ...
Connected Cloud Challenge - IoT Gaming Table - Blog Post 3 - Game Platform By Brian Childers - April 2020   Fantasy Grounds Roll20 D20Pro Others Selection References   Now that we have explored the game dice mechanics, let us turn to an exploration in what gaming platforms would be suitable for the IoT gaming table.  We are looking to implement the Dungeons and Dragons 5E ruleset when we consider gaming platforms.  These gaming platforms were featured on the Wizard Co ...
Disconnecting Thermistor Last week I've noticed some noise on ADC port, which was connected to thermisotor. This week I’ve removed two connections between ADC and the thermistor by unsoldering R36 and R37.   Connecting Heartbeat Sensor  This allowed me to use P10_1 and P10_2 for other sensors. I’ve connected my heartbeat sensor output to P10_2. And I’ve connected P10_0 to the sensor ground line and P10_3 to the sensor VDD line. Adding Power to the Sensor I’ ...
Connected Cloud Challenge - IoT Gaming Table - Blog Post 2 - Game Dice By Brian Childers - April 2020   Game Dice D20 Advantage and Disadvantage References   We need to understand the requirements for our gaming table and understand where the PSOC 6 will come into play.  To do this, we will review some of the functional requirements of the gaming table through exploration of game dice mechanics.   1. Game Dice The Dungeons and Dragon game uses polyhedral dice with var ...
*updated 24-May-2020 for Angry dog sound classification #11Introduction In this challenge, the target is by build a prototype of intelligent mailbox, to study how Cypress PSOC6 and AWS cloud can be simplify of iOT both hardware, administration and support costs.   In traditional IoT solution, normally with a MQTT broker served for a server role to obtain, admin and process of client data, if number of "Things" increase, the system become hard to manage. An IOT project is easy to engage suc ...
Connected Cloud Challenge - IoT Gaming Table - Blog Post 1 - Gameplay By Brian Childers - April 2020   History of Dungeons and Dragons Gameplay Getting started with D&D References   1. History of Dungeons and Dragons In reflecting on my childhood experience and how I got started playing Dungeons and Dragons at 9, it is most likely attributed to the fact that I live close to Lake Geneva, WI which is the birthplace of Dungeons and Dragons.   The Dungeons & Dragons ga ...
The alternatives  The amount of tools and SDKs that can be used to program the PSOC6 is quite overwhelming, and choosing the right ones for a task is not simple, specially because the information to make the right decision is all scattered in the net. After some quick (and likely unreliable) research I found that Cypress provides 3 development tools: PSOC Creator Wiced Modustoolbox   PSOC Creator is the oldest and most mature product, and supports visual programming to set up pins ...
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 ...
Introduction Our Challenge target is able to remote notify the mailbox's owner with or without mail though AWS IoT platform, which currently we developed a IOS APP for this purpose. Future more, we like use the internal MIC and Sound card to detect dog bites and produce alarm , so the postman things good. However, due to time strains and complex, we are hard to develop the AI to recognise the bad dog sound. So we change our jobs to connect our sound clip picked from the PDM Mic to AWS Transcri ...
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 ...
Introduction The SiteWise Architecture The SiteWise Assets Connecting the IoT RAW data to the SiteWise assets SiteWise Data Representation Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction Solved the most critical issues found in the process of connecting systematically and with robustness between the PSoC6 IoT thing and the AWS IoT Core, the first task is completed. Now, the second important part is to proceed ...
Introduction AWS IoT Configuration and Setup The IoT Core Configuration Path A Confusing Incongruence The IoT Thing: PSoC6ControlCenter The File aws_clientcredential.h The File aws_clientcredental_keys.h Full Content Already Posted (until now) Sources, Circuits, and Documentation Thanks to Introduction After studying the features and potential of the Cypress PSoC6 WiFi Bt kit now we see how I have started the first part of the development of the Cloud ...
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 ...
1 FreeRTOS or Not, Is that a question? 1.1 Before starting, whether FreeRTOS to be used or not , shall be balanced first. It is easy to start the code straitforward. Let me call it , strait-coding. Do what we think , and wrting codes what it should. That is more logical and easy to understand. For most design, that is enough, especilly for ARM-M0+ core with limited memory and fix number of peripherals. Take a tour for github of cypressco ,  most sample-codesare bareP-metal codes. Provide ...
Adding headers I decided that it is time to connect the sensor to CY8CPROTO-062-4343W board. I've soldered headers to the board, so I can connect and disconnect my heart beat sensor easly. I've used the same pins as where used by thermistor - P10_1, P10_2, P10_0 and P10_3. I was not able to identify other pins that allows connection of analog signal to ADC Wearable design It will be much nicer to embed my heart beat sensor in a ring., but as I don't have 3D printer I've used other materia ...
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 ...
In this blog, I will set up AWS SNS services to notify me through text messages and emails when the kit sends MQTT messages.   From AWS console home page, choose Amazon Simple Notification Service (SNS). If this is your first time using SNS, the following page will pop up. From here, you can create your first SNS topic.   By default, the SNS navigation tab is collapsed, but you can expand it by clicking the navigation button (step 3 as shown in the above screenshot). The navigatio ...
Introduction Last blog we are success of record sound clip to FRAM in the Cypress Kits, here we could like upload to AWS to future process, such as used for sound recognition or feed to AI engine. In order to stream the sound data to the AWS cloud, the trandition way is use the UDP or Http streaming. By without use of additional sockets, we use MQTT publish to AWS and save in S3 storage, esspecally many iOT device only transfer way. The MQTT channel is good and design for small continues data s ...
Build with Mbed-cli 1. Install mbed-cli.msi in Windows 10 with the fowllowint components, The python 2.7.10 is installed and ruin my previous python 3.6.x ENV. I have to reinstalled python 3.7 in anaconda ENV in isolated environments. It is  suggested to install Mbed CLI from within a virtual environment and run all commands from within your virtual environment.  Other lib includes git. mercury, arm-gcc... Then install pyocd , update libusb https://github.com/libusb/libusb/rele ...
Create Project in Modus Toolbox 1. After installation of Modus Toolbox, create project is easy. First, start Project-creator in Tool Directory, choose the sample project and import into project directory. One important setting shall be made before build process, in system parameters,CY_TOOLS_PATHS CY_TOOLS_PATHS D:/ProgramData/ModusToolbox/tools_2.1 The backslash shall be revised accordingly in Linux-like format,or the Modus Toolbox still can not find the Tools. 2. Use PDM-PCM_Audio as examp ...