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 Box
we 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 the data sent on the Serial port monitor as well. In this demo, we can test the AP and station functionality of the onboard WiFi-BT combo module along with the CapSense touch slider, buttons, ambient light sensor, and TFT display.
In this demo, on the first startup the PSoC 6 MCU acts as an AP named "WICED Config" and an HTTP web server. It hosts a wifi setup webpage where you can easily configure it to connect with one of the local WiFi networks in STA mode. After successful configuration and it switches to STA from AP mode. Now It hosts another webpage, that displays the voltage of the ambient light sensor on the CY8CKIT-028-TFT shield. It also displays the current duty cycle of a PWM controlling the red LED on the kit. The Increase and Decrease Buttons on the webpage change the duty cycle of that PWM by 5%. CapSense buttons and sliders on the kit can also control the PWM duty cycle and thus the brightness of the LED.
Figure: Info Displayed on TFT Display after first time powering it up
Figure: WICED Config AP is visible in available WiFi network list
Figure: Successfully connected to WICED Config AP by entering the password displayed on TFT Display
Figure: PSoC hosted Webpage (192.168.0.1) displayed in the browser during AP mode
Figure: Choose the local WiFi Network from available network
Figure: Entering the password info and connecting to the desired Local WiFi Network
Figure: Info displayed after a successful connection to local WiFi Network
Figure 15:Info Displayed on TFT display after successful local WiFi network connection
Figure: Webpage hosted on PSoC6 (192.168.43.232) in STA mode
Figure: Info displayed on UART monitor during successful local WiFi network connection
Figure: CapSense slider position monitoring on UART console