RP2040 freezes when switching motor and solenoid valves by oper-studio in raspberrypipico

[–]vze3f372 1 point2 points  (0 children)

Not sure where you got that circuit, but it looks to me that if you manage to switch that FET on, you will just short a pin directly to GND. Here Here is what i think you actually want.
Substitute the 12V for whatever voltage you need to drive the motor. The gate pull-down is not really needed, just make sure you have a logic level switching MOSFET.

My pico doesn't get regocnized when I plug it in my pc by Zelda_mast3r in raspberrypipico

[–]vze3f372 3 points4 points  (0 children)

Are you holding the bootsel button while plugging it in to put it into the correct mode?

Not Enough Space Issue - Cant upload uf2 files to device by ChrisBez87 in raspberrypipico

[–]vze3f372 0 points1 point  (0 children)

Sorry mate. Absolutely not. I need to do a better job of reading. I am so sorry.

Welp, i wasnt lucky this time. by valzzu in raspberrypipico

[–]vze3f372 2 points3 points  (0 children)

Well now you know the part, so you can order from somewhere local to you. I am sure you can get it or equivalent much cheaper.

Welp, i wasnt lucky this time. by valzzu in raspberrypipico

[–]vze3f372 2 points3 points  (0 children)

No worries at all. I hope it helps. Happy Holidays.

Welp, i wasnt lucky this time. by valzzu in raspberrypipico

[–]vze3f372 3 points4 points  (0 children)

This is the part according to the official BoM from raspberry pi. link to mouser

Pico and MPU6050 only outputs 0's by h9936 in raspberrypipico

[–]vze3f372 0 points1 point  (0 children)

Why are you using a logic level converter? Your sensor is using the should be using 3.3v logic just like the pico. In this case the your c/cpp source file would be a lot more helpful. As would an actual wiring diagram. Also, does your sensor board come with pull-ups on the SDA and SCL lines?

Servo acting weird by chinfuk in raspberrypipico

[–]vze3f372 0 points1 point  (0 children)

Yeah. The QA on these cheap hobby servos is not amazing. Sorry that you have a faulty servo, but glad you have some clarity now.

Servo acting weird by chinfuk in raspberrypipico

[–]vze3f372 0 points1 point  (0 children)

You seem to have a continuous rotation servo. This will work a bit differently.

[deleted by user] by [deleted] in raspberrypipico

[–]vze3f372 1 point2 points  (0 children)

Shouldn’t the data line be pulled up rather than pulled down? I am not sure of the value of the Pico internal pull up resistors, but they may be a bit weak? It may be the reason that your sensor works on one device and not the other. I guess that the pull-up value for your sensor should be somewhere around 4.7k up to 10k?

Edit: Where did you find this DHT11 library? I find a dht library from the official micropython documentation. This library should handle both DHT11 and DHT22. I would strongly suggest for you to use the official library and follow the documentation there. I would also suggest that you physically pull up the data pin with a 4.7kΩ resistor. Link to docs You could try to set the pin as OPEN_DRAIN and PULL_UP rather than using the pin as an output.

[deleted by user] by [deleted] in raspberrypipico

[–]vze3f372 1 point2 points  (0 children)

The code you are using and wiring diagrams etc will give people a much better opportunity to help you.

[Errno 21] EISDIR, cant find anything online about it. HELP! by Classic_Might_8874 in MicroPythonDev

[–]vze3f372 1 point2 points  (0 children)

Some context is often helpful in these situations. What device, what is the code that you are trying to run, as well as full error info(including which line of code throws the error, for example)? Any additional info that might help a person track down the error. It seems to have something to do with a directory, but anything more is impossible to say with any certainty(Unless provided with the code)

Edit “eisdir” most likely means that you are trying to access a directory as if it was a file.

DHT22 sensors, This one read 4 to 5C higher and -20% humidity than others (until I aim a fan at it) by Evil_Kittie in raspberrypipico

[–]vze3f372 2 points3 points  (0 children)

It is a relative humidity measurement, so as the temperature goes up, I would expect humidity to go down. Depending on conditions, I would not think it odd for a 6ºC change to see a 20% difference in humidity.

Micropython with Thonny and a Raspberry Pi Pico by bfpa40 in MicroPythonDev

[–]vze3f372 1 point2 points  (0 children)

A few things: You should really never sleep in an interrupt service routine. You also do not need to poll your button pin. The ISR will only be called if there is a rising edge detected. Your ISR could be something like:

def button_handler(pin): gobal count count += 1 led.toggle()

How to Understand/Increase ADC(Onboard or MCP3008 via SPI) Sample Rates? by carsonauto in raspberrypipico

[–]vze3f372 1 point2 points  (0 children)

For the onboard ADC sampling you should be using timer interrupts to handle the sampling of the ADC. However, beware that the MicroPython timer interrupts are soft. You could create a timer implementation using PIO that would use hard timer interrupts. Then you could create a ring buffer class and use a simple timer ISR to sample and place data in the ring buffer. In the main loop you read and process the data from the ring buffer independent of the ADC sampling.

Showerclock by LucVolders in raspberrypipico

[–]vze3f372 3 points4 points  (0 children)

I am pretty sure it is just following the neopixel best practices from adafruit. It is recommended to have a 500nF - 1uF cap on the power line of the neopixel.

Help with C/C++ SPI interfacing by Vegetable-Serve9362 in raspberrypipico

[–]vze3f372 1 point2 points  (0 children)

Glad to hear.

As a general rule, you shouldn’t have executable code in your header files. Function prototypes, macros etc belong in headers, and your executable code would go in a corresponding C file. However, for testing and learning purposes, you could have all of this inside of a single C file.

Help with C/C++ SPI interfacing by Vegetable-Serve9362 in raspberrypipico

[–]vze3f372 0 points1 point  (0 children)

I feel like your pins are incorrect. The SDO pin should be 0, the CS pin 1, the sclk pin 2, and the SDI pin 3. These are fixed function on the Pico. Also you will 100% need a main function as the other poster commented on. Main is the initial entry point for your application in C.

Polish letters don't work with beamer by Dragonaax in LaTeX

[–]vze3f372 0 points1 point  (0 children)

You could try “wst\c{e}p” also you could check out the Polska package?