|

Hints-Pico

Hints, links, code snip-its and information on using the Raspberry Pi Pico. Information is gleaned from internet searches and YouTube videos.

Pico Starter Kit Information

https://wiki.52pi.com/index.php/Raspberry_Pi_Pico_Starter_Kit_SKU:_K-0582

Using Pico Built In Temperature Sensor and Recording Results to a Text File

https://tutorial.cytron.io/2021/02/26/read-and-log-internal-temperature-data-in-raspberry-pi-pico-to-txt-file/

import machine
import utime

sensor_temp = machine.ADC(machine.ADC.CORE_TEMP)

conversion_factor = 3.3 / (65535)
file = open(“temps.txt”, “w”) #change “w” to “a” to append new data to same file
while True:
  reading = sensor_temp.read_u16() * conversion_factor
  temperature = 27 – (reading – 0.706)/0.001721
  file.write(str(temperature) + “\n”)
  file.flush()
  utime.sleep(5)

Maker Pi Pico Board Examples

https://github.com/CytronTechnologies/MAKER-PI-PICO/tree/main/Example%20Code/MicroPython

Pico Setup LInk

https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/1