Download pi pico pinout for free11/7/2023 ![]() ![]() With the above program, the three approximately equal temperatures are measured and output in the shell. I try to connect several temperature sensors DS18B20 in parallel to one input. Like any electronic device, the sensor also needs a power supply, so the red wire to 3.3V and the black one to GND. Please don't forget the pull-up resistor (4.7 kOhm) between signal wire and 3.3V. The circuit is very simple: The namesake "one" wire goes to pin 12 in my project. First of all you need the OneWire library and then the library for the temperature sensor based on it. Single wire bus (One Wire) at the example of the temperature sensor DS18B20įor the popular temperature sensor DS18B20, I myself prefer the waterproof variant There are two modules that make programming very easy. I2C IIC adapter serial interface for LCD display HD44780 1602 LCD module display 2x16 characters Raspberry Pi Pico RP2040 microcontroller boardĭS18B20 digital stainless steel temperature sensor temperature sensor Īlso the MicroPython documentation, and especially the chapter RP2 I would like to cite again as a source. This time, I would like to show you the programming of the familiar interfaces OneWire, UART and I2C, all of which are secondary pin assignments.įirst of all once again the reference to the official Pinout diagram. In the first part we had the installation of Thonny, the setup of the Raspberry Pi Pico, as well as the first application programs for using the inputs and outputs. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |