![]() ![]() Look at the Workspace Explorer frame on the left hand side of the screen. Let's take a look at what exactly is happening, starting from a high level view of the PSoC 6 software project. You should now be able to turn the LED connected to the Raspberry Pi on and off by pressing the D7 and D9 buttons on the IoT Shield. That will launch the app and begin listening for input over TCP/IP from the Pioneer board. Once that's complete, enter this command: sudo python Flask_Tutorial/Python/app.py The command for doing that is git clone Īgain, you'll see some text scroll across the command line, and when the prompt returns, that'll be your indication that the install process is complete. The next step is to install the software that we've written to support this project from GitHub. sudo pip install flaskĪ whole bunch of stuff will happen in the command line window and at the end of it, Flask will be installed on your Raspberry Pi. Type in the following command, then hit "Enter". Flask is a web framework for Python that allows you to make a web front end that runs Python scripts on the sever backend fairly trivially. We'll start by executing the command to install Flask. Then, click the "Program" button in the toolbar (as shown below) to automatically build the project and program the board. To program the board, connect it to your PC via the included USB-A to USB-C cable. rpi_ip is a dotted quad (e.g., "10.8.253.193") that you can obtain from typing " ifconfig" in a command window on your Raspberry Pi (see below for instructions on opening a command window) and looking at the " wlan0" section. The encrypt_mode value can be WPA, WEP, WPA2, or (hopefully not!) NO_SECURITY. Hopefully, it's obvious what you need to do: change these settings to match your network setup. You'll find a section of code that looks like this: language:c If I investigate the exception using Visual Studio, the exception I see is caused by “Invalid characters in path”.Once you have downloaded and extracted the file somewhere, you can open the example (XBee_WiFi_Example) in PSoC Creator.īefore you do anything else, you need to open the " main_cm4.c" file and make a couple of changes. Sometimes PSoC Creator crashes when running the debugger. However, if you check the Build Output tab (next to the Notice List tab), you can find the cause. ![]() PSoC Creator does not report all build errors in the condensed 'Notice List', meaning the build can fail without any apparent cause. The internal die temperature sensor does not work Communication is impossible without re-enumerating USB device after PSoP device has returned from a sleep state USBUART v1.0 is not compatible with power reduction modes (such as standby or sleep). ![]() Wake-up sources not selectable when putting micro to sleep This page does not detail all issues, rather just some of the more major ones. Let it be mentioned here that all-in-all they are already a very capable and powerful microcontroller, with this being more like little annoyances than huge problems. The PSoC 3 and 5 range of microcontrollers are relatively new (as of writing this, September 2011), and therefore have a few issues here and there that need to be smoothed out. PsoC Creator freezing when using find-replace on a large number of files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |