![]() ![]() As of about CircuitPython version 4, the stdout and REPL display can now be directed to a connected display. Currently the stdout print() statements are mirrored to a serial connection that is displayed on the computer. Also, inclusion of the python REPL speeds up debugging of the python code.Īll of these advancements combined have streamlined and simplified the process from idea conception to hardware demonstration. py file directly onto the microcontroller as if it were a USB memory stick. ![]() CircuitPython along with the extremely helpful mu editor has now eliminated the "compile" step of the process, by downloading the. In the case of Arduino programming, we require a compiler to create, compile and download the code. However, to date the programming of microcontrollers has been tethered to a computer. The advent of MicroPython and CircuitPython has streamlined quick prototyping of microcontrollers. ![]() ![]() The original Inspiration: the things that are major steps toward this goal, and some fun stuff.Bill of Materials and Mechanical design: duck-shape, of course.Editor: modified MicroPython-editor (pye) to use UART input and SPI connected display.REPL-interceptor: this takes input from UART to run (exec) python text commands.USB Host controller: Keyboard to UART input controller (run with Arduino) with a hack for handling directional arrow keys uses USB on-the-go (OTG) cable.Objectives/Strategy: A stand-alone programmable on the fly CircuitPython entity and the conceptual chucks of stuff needed to get there.File storage is using on-board non-volatile memory or a memory card This will edit files by taking input from UART and output to the attached display. Adapt a text editor MicroPython-editor (pye) from robert-hh to run on a CircuitPython Board with attached display.Use a "REPL-interceptor" to allow text input from UART to control the command execution of python input from the keyboard.Transmit keyboard input to main processor using UART.Use a co-processor to take input from a USB keyboard (Arduino-based USB Host for SAMD with software modified from code by gdsports).It is deliberately taking bits and pieces from others and using glue, Fun-Tak, feathers and bailing wire to make it work. Use cases: This could be useful as a part of ultraportable microcontroller electronics prototyping kitĪs a prototype, the objective of this project is to hack together something that can demonstrate the concept. Who is this for: Anyone that wants a self-contained, portable, prototyping computer running CircuitPython that’s in the form of a hinged duck Secondary Outcome: Show what is possible so that new features might get integrated into simpler hardware designs and software hooks (e.g. Primary Outcome: Demonstrate a computer using CircuitPython A "REPL"-like command line for entering python commands (to edit file, run file, etc.).A text editor for creating and editing python code.USB Keyboard input (now handles long key presses).No matter the word used, the main objective shall be to understand: Does this direction of progress actually simplify and accelerate development?ĬyberDÛCK: A baby, waddling step toward flexible, low-cost, fully self-contained portable prototyping rig that you can program on the fly! Although our mind and language struggles to define what is and isn't a computer, the definition must be left for the dictionary. The line of distinction between microcontroller and computer continues to blur. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |