When the Raspberry Pi Pico runs with two cores, vital resources must be protected by semaphores (Mutual Exclusion). This examples uses Peterson’s algorithm, which is rather simple for two threads / cores. Note: The semaphore variables and the housekeeping variables are set up as ‘volatile’. This turned out to be necessary for the code to …
The RP2040 processor of the Raspberry Pi Pico has dual ARM Cortex-M0+ cores that can be used in an Arduino-style sketch as follows: /* * Test Rspberry Pi Pico dualcore mode * * Classical ‘blink’ example but split into two tasks, running on the two RP2040 cores: * – Core 0 sets the state of …
Measuring bouncing of China wind and rain sensors A cheap China wind and a rain sensor were tested whether they experience contact bouncing, which would disturb the measurements. The Wind Sensor The wind sensor has a contact inside, which will be closed for 1/2 of the revolution of the wind wheel. The signal wire will …
ArduPico – An Arduino-style Carrier for the Raspberry Pi Pico board To start exploring the (new) Raspberry Pi Pico, I did make a small carrier board with Arduino R3 compatible form factor. Due to the 3.3V nature of the Raspberry Pi Pico, all I/O is 3.3V only. Schematics Meep Meep – He’s fast! As a …
Gawk provides built-in networking support. The gawk manual has some examples, for basic UDP-communication at [1]. The classical sender/receiver code snippets are as follows: # Server BEGIN { print strftime() |& “/inet/udp/8888/0/0” close(“/inet/udp/8888/0/0”) } # Client BEGIN { “/inet/udp/0/localhost/8888” |& getline print $0 close(“/inet/udp/0/localhost/8888”) } Unfortunately these examples did not work on my test system …
From the official documentation it is not very clear, how to install the guest additions necessary to use shared folders. Here’s how it works: VirtualBox Guest Additions is a .iso file, that can be downloaded from here (for version 4.6.3): http://download.virtualbox.org/virtualbox/4.3.6/ The file in question is “VBoxGuestAdditions_4.6.3.iso”. Download it and burn it onto a CD. …
During development of a small test board for the LPC812 (with TSSOP20 package), I found a library for the Eagle layout program on Github at [1]. Unfortunately this library had a wrong assignment of pins for the footprint. The corrected version can be found here. [1] https://github.com/DrewOJensen/LPC81XM/blob/master/LPC81XM.lbr
For the LPC800 processor chip from NXP there is a switch matrix configuration tool available at [1]. This is a .jar file (inside a ZIP-archive]. After downloading and unpacking, the resulting .jar Java file can be run by executing the following command from a terminal window: shell $ java -jar [Jar file Name]
The PDF-file for the “CC2530ZNP Mini Kit quick start guide rev. A” is located at http://www.ti.com/litv/pdf/swru268a It mentions some software examples and drivers, which are not easily to find … The CC2530ZNP start page is at http://www.ti.com/tool/cc2530zdk-znp-mini which points to the CC2530ZDK-ZNP-MINI at http://processors.wiki.ti.com/index.php/CC2530ZDK-ZNP-MINI which in turn (link just above “More Informations”) points to the …
[ currently empty ]