You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Focusens MF52D 103f 3950 thermistor. Beta value 25/50 Celcius: 3950. R_25: I measured 9.61 k Ohms. The number 103 they document as:
126
+
* digit 1: code of dimension
127
+
* digit 2: rated resistance
128
+
* digit 3: fills with its precision symbol
129
+
These descriptions are weird, but ChatGPT has the theory that the first two digits are actual values, and the last is multiplier, so $10 \times 10^3$ which makes 10k.
130
+
but I have no idea how that maps to 10 k Ohms.
124
131
* PN2222 General Purpose Transistor
125
132
* Passive buzzer
126
-
* 3386p Bourns Precision Potentiometer - 1 103T: 10 Ohms to 2 mega Ohms. TODO part broken? Multimeter measures fixed 10 kOhms no matter where I set it
133
+
* 3386p Bourns Precision Potentiometer - 1 103T: from 0 to 10k Ohms, measured with multimeter. According to the manual the "103" mean 10 k oms, which is consistent with our measurement. "P 103" is etched into the part.
@@ -2707,14 +2740,15 @@ Examples at: <Raspberry Pi Pico W MicroPython example>.
2707
2740
2708
2741
An upstream repo at: https://github.com/raspberrypi/pico-micropython-examples
2709
2742
2710
-
Our examples at: \a[rpi-pico-w/upython].
2743
+
Some generic Micropython examples most of which work on this board can be found at: <MicroPython example>{full}.
2744
+
2745
+
Pico W specific examples are under: \a[rpi-pico-w/upython].
2711
2746
2712
2747
The examples can be run as described at <Program Raspberry Pi Pico W with MicroPython>.
2713
2748
2714
2749
* \a[rpi-pico-w/upython/led_on.py]: turn on-board LED on and leave it on forever. Useful to quickly check that you are still able to update the firmware.
2715
2750
* \a[rpi-pico-w/upython/led_off.py]: turn on-board LED off and leave it off forever
2716
2751
* \a[rpi-pico-w/upython/pwm.py]: <pulse width modulation>. Using the same circuit as the <rpi-pico-w/upython/blink_gpio.py>{file}, you will now see the external LED go from dark to bright continuously and then back
2717
-
* \a[rpi-pico-w/upython/adc.py]: <analog-to-digital converter>. The program prints to the <UART> the value of the ADC on GPIO 26 once every 0.2 seconds. The onboard LED is blinked as a <heartbeat (computing)>. The hello world is with a <potentiometer>: extremes on GND and VCC pins of the Pi, and middle output on pin 26, then as you turn the knob, the uart value goes from about 0 to about 64k.
2718
2752
2719
2753
= rpi-pico-w/upython/blink.py
2720
2754
{file}
@@ -2731,15 +2765,7 @@ The <Micropython> code needs to be changed from the <Raspberry Pi Pico 1>, https
2731
2765
{parent=Raspberry Pi Pico W MicroPython example}
2732
2766
{tag=LED blinker}
2733
2767
2734
-
Toggle GPIO pin 0 on and off twice a second. Also toggle the on-board LED and print to UART for correlation. You can see this in action e.g. by linking an LED between pin 0 and one of the GND pins of the Pi, and the LED will blink. Circuit:
2735
-
2736
-
``
2737
-
RPI_PICO_W__1gp0____3gnd
2738
-
| |
2739
-
R_2k |
2740
-
| |
2741
-
+-aLEDc-+
2742
-
``
2768
+
Same as the more generic <micropython/blink_gpio.py>{file} but with the onboard LED added.
The program continuously prints to the USB the value of the ADC on GPIO 26 once every 0.2 seconds.
2797
+
2798
+
The onboard LED is blinked as a <heartbeat (computing)>.
2799
+
2800
+
The hello world is with a <potentiometer>: extremes on GND and VCC pins of the Pi, and middle output on pin GIO26, then as you turn the knob, the uart value goes from about 0 to about 64k.
2801
+
2802
+
The 0 side is quite noisy and varies between 0 and 300 for some reason.
<Bluetooth> support: not enough <RAM> for it, though in principle its chip/<transceiver> could support it! https://microbit-micropython.readthedocs.io/en/v1.0.1/ble.html
1024
1038
1025
1039
Supported editors: https://microbit.org/code/
@@ -1096,9 +1110,41 @@ and the program starts executing immediately after flash ends.
1096
1110
1097
1111
You can restart the program by clicking the reset button near the USB. When you push down the program dies, and it restarts as soon as you release the button.
but we failed to see it do anything with <zephyr/blink_gpio.c>{file}, so not sure if the flashing was broken or if the code was broken, or if we didn't find the IO pins correctly.
* join it up with a prebuilt firmware that ships with uflash which contains the MicroPython interpreter
1115
1161
* flashes that
1116
1162
1117
-
To build your own firmware see:
1163
+
To build your own firmware see: <Compile MicroPython code for Micro Bit locally on Ubuntu 22.04 with your own firmware>
1118
1164
1119
-
Got it working: <Compile MicroPython code for Micro Bit locally on Ubuntu 22.04 with your own firmware>
1120
-
1121
-
= Compile MicroPython code for Micro Bit locally on Ubuntu 22.04 with your own firmware
1165
+
= Compile MicroPython code for Micro Bit locally on <Ubuntu 22.04> with your own firmware
1122
1166
{parent=Compile MicroPython code for Micro Bit locally}
1123
1167
1124
1168
TODO didn't manage from source <Ubuntu 22.04>, their setup bitrotted way too fast... it's shameful even. Until I gave up and went for the magic <Docker> of + https://github.com/bbcmicrobit/micropython[], and it bloody worked:
0 commit comments