Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #197860
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Arduino and Python or gcc compiler? |
| Date | 2018-07-22 03:10 +0200 |
| Message-ID | <web2O-2Fm-15@gated-at.bofh.it> (permalink) |
| References | <we8HE-14o-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/21/18 15:15, cyaiplexys wrote: > I am getting the Elegoo Super Starter Kit (Arduino Uno R3) to tinker > with (it's on order as of when I'm writing this post). > > I looked in the Debian repos for stuff on Arduino and didn't find much > (at least not of interest to me). > > I did download the IDE from Elegoo and their tutorials and libraries. > But it's all in C/C++. While I do know C and C++ (to some extent), I'm > very bad at it (I admit to not using it very much, maybe once every > other blue moon and lately we haven't had any blue moons that warranted > using C). > > I recently been doing stuff in Python (especially for work, which is not > Arduino related in any way). I am really getting to like Python. I have > created my own Python Libraries for other things (again unrelated) and > even compiled them to .so (binary) using the 'cython' compiler. > > While I could create C source of a Python script using cython, I don't > know how to compile the resulting C source and upload it to the Arduino > board. I would like to use gcc. > > Is there a cross-platform compiler for Arduino and gcc that anyone has > had experience with that works or they can recommend? > > Or some way to program in Python? > > I'll use C/C++ until I can figure the Python stuff out. But I really > would like to be able to use Python at some point. It sounds like your intended use is as a hobbyist (?). STFW for Arduino Uno R3: https://store.arduino.cc/arduino-uno-rev3 Microcontroller ATmega328P Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by bootloader SRAM 2 KB (ATmega328P) EEPROM 1 KB (ATmega328P) Clock Speed 16 MHz STFW for the CPU: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Datasheet.pdf The Atmel® picoPower® ATmega328/P is a low-power CMOS 8-bit microcontroller based on the AVR® enhanced RISC architecture. STFW for embedded Python: https://www.usenix.org/system/files/conference/atc12/atc12-final30.pdf This paper presents one mechanism for doing so: an efficient embedded Python run-time system named Owl. The Owl system is a complete Python development toolchain and run-time system for microcontrollers that do not have enough resources to run a real operating sys- tem, but are still capable of running sophisticated soft- ware systems. These microcontrollers typically operate at 50–100 MHz, have 64–128 KB of SRAM, and have up to 512 KB of on-chip flash. Note that the frequency, RAM, and ROM requirements for embedded Python exceed what is provided by the Arduino Uno. So, that explains why I also find no solutions for Python on the Arduino Uno R3. If you want an embedded kit that can do Python (2 or 3?), your best bet is to get a kit that supports Python OOTB: https://wiki.python.org/moin/EmbeddedPython Getting a kit that supports Linux OOTB would give you even more options: https://www.linux.com/news/top-10-open-source-linux-boards-under-200 David
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Arduino and Python or gcc compiler? cyaiplexys <cyaiplexys@sitesplace.net> - 2018-07-22 00:40 +0200
Re: Arduino and Python or gcc compiler? deloptes <deloptes@gmail.com> - 2018-07-22 01:40 +0200
Re: Arduino and Python or gcc compiler? cyaiplexys <cyaiplexys@sitesplace.net> - 2018-07-22 04:10 +0200
Re: Arduino and Python or gcc compiler? deloptes <deloptes@gmail.com> - 2018-07-22 12:30 +0200
Re: Arduino and Python or gcc compiler? cyaiplexys <cyaiplexys@sitesplace.net> - 2018-07-22 16:50 +0200
Re: Arduino and Python or gcc compiler? Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-07-22 18:50 +0200
Re: Arduino and Python or gcc compiler? David Christensen <dpchrist@holgerdanske.com> - 2018-07-22 03:10 +0200
Re: Arduino and Python or gcc compiler? cyaiplexys <cyaiplexys@sitesplace.net> - 2018-07-22 04:20 +0200
Re: Arduino and Python or gcc compiler? Joe <joe@jretrading.com> - 2018-07-22 09:40 +0200
csiph-web