Recently I bought a Feather M0 RFM69 Packet Radio (this one), and setting up a hello world radio transmitter-receiver turned out to be more difficult than I expected. Mainly, because none of the examples worked out of the box. So, this is my hello world example. Maybe it'll help someone in the same situation. [...]
Recently I attempted to use an Adafruit PowerBoost 500C to power a small MCU-based mobile robot. Specifically, I wanted it to: Supply 5v to the system out of a 3.7v LiPo battery. Charge the battery like if it was a smartphone Shut power down when wheels get stuck, and Trigger an interrupt software when battery [...]
Recently I was in need to get two separate UARTS from the SAM4S Xpro board. It took me a while, but I finally figured out how to use the USART1 with interrupts; and since I already had working code for UART1, I decided to post examples for both. UART1 UART1 is exposed in pins 13 [...]
I recently acquired an Atmel BNO055 Xplained Pro board, which features a 9-axis absolute orientation sensor, or at least that is the part I'm interested in. Then I found that the ASF does not provide BNo055 support for the SAM4S. Luckily, it does for the SAM E70. So I adapted the SAM E70 drivers to [...]
Source code, setting up explanations, and everything moved to: https://github.com/rromanotero/xbee_mac_interface .
These are a few tests I made with the SAM R21 Xplained Pro and an Xbee. The examples were generated from the Atmel Studio IEEE 802.15.4 MAC Wireless Wizard, with a few extra modifications (since they did not compile). The entire Atmel Studio projects used are available in the download area (tested with ASF v3.22.0). The tests [...]
I was thinking how to better illustrate (to students) the use of the stack for holding automatic variables at the machine level, and this came out. The class was using the SAM4S Xplained Pro board to learn ARM Thumb assembly, hence its use. The vulnerable application runs MiniOS.
Update: I recently tested some (most) of them with ASFv3.31.0 and they seem to work fine. I've also added more examples here. Original: While working with the SAM4s Xplained Pro I realized the scarcity of documentation available. Atmel examples, when available, would sometimes work, and some others not. Either because instructions would be missing steps [...]
- This is an implementation of an array---using a size-balanced binary search tree under the hood---for a course in programming languages this summer. Some functions may look awkward as they are based on catamorphisms. Global definitions fromList, singleton, toList, set, get, size, contains, inverse, and trim Test As a functor As a monad Download [...]
Background The concept of state refers to a function/computation global or non-local state of memory at any given time. When the output of a function/computation depends solely on its inputs, we say it is stateless -- an example of this is combinatory logic. Conversely, when the output depends not only on the received input but also [...]