I first tried XMegaduino but ran into some confusing errors, so I decided to try to circumvent it. I really wanted to put the XMega on this chart, but I didn't get finished programming it. To simplify access to the GPIO pins in C, I used the wiringPi library and compiled my script as cc -o ring ring.c -L/usr/local/lib -lwiringPi Comparison of IO speed and cost of MCU dev boards. The difference is huge! Raspberry Pi 2, 900 MHz, A) Python GPIO package, B) C with WiringPi I wanted to test Python's overhead on GPIO, so I ran the ring oscillator with simple programs in python and standard C. Many folks love this single board computer because they can use Python for embedded projects. Teensy with ARM M4 96 MHz, A) Teensyduino, B) Teensyduino, digitalWriteFastįinally, I included Raspberry Pi in the contest. Unfortunately, the results were kind of crappy, which leads me to think about bypassing Teensyduino. I'm no embedded programming hotshot, so I stuck to this IDE for the tests. The PJRC website supports Teensyduino, an Arduino IDE add-on to support the Teensy. ARM, A) STM32 NUCLEO-F401RE ARM M4 with MBED environment, B) LPC1768 ARM M3 100 MHz with MBED environment The Nucleo and MBED can be conveniently programmed with MBED's online compiler. ![]() Next, I looked at some ARM boards: the Nucleo, the MBED, and the Teensy. ![]() ATmega 32u4, 16 MHz, A) Arduino DigitalRead/DigitalWrite, B) Direct port manipulation It's fun to compare Arduino's digitalRead and digitalWrite functions with direct port manipulation to see the cost we pay for code portability. ![]() I started with my trusty standby, the ATMega 32U4. To do this, we just tie a digital input and digital output together, and send out the opposite of whatever is read. I took this week to clock bits of information in and out of embedded computing options. These two weeks we were to experiment with options for computation and communication with our machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |