Go to advanced search

by fdufnews
Thu Oct 28, 2021 4:51 pm
Forum: General
Topic: Water Pump on Raspberry Pi Pico
Replies: 6
Views: 274

Re: Water Pump on Raspberry Pi Pico

Connecting a motor directly to an IO is the best way to fry the Pico. A GPIO cannot drive such a current. When you stop the pump, there is an overvoltage due to the sudden stopping of the current that can destroy the GPIO This tutorial is a scam. It works for an LED not a pump. You can use the follo...
by fdufnews
Sun Oct 17, 2021 3:32 pm
Forum: MicroPython
Topic: rshell copying issues after soldering Pico to PCB
Replies: 4
Views: 236

Re: rshell copying issues after soldering Pico to PCB

Maybe some test point of the Pico is shorted once soldered on the PCB.
by fdufnews
Wed Oct 06, 2021 7:00 am
Forum: MicroPython
Topic: pico sleep mode via micropython
Replies: 3
Views: 487

Re: pico sleep mode via micropython

As already said elsewhere, MicroPython is not a developpement of the Raspberry Pi Foundation. You'd better ask on the MicroPython forum where there is already a similar question https://forum.micropython.org/viewtopic ... 21&t=11218
by fdufnews
Sat Oct 02, 2021 9:06 am
Forum: General
Topic: UART0 Pins
Replies: 5
Views: 338

Re: UART0 Pins

by fdufnews
Fri Sep 10, 2021 8:29 am
Forum: SDK
Topic: pre-programming the flash
Replies: 13
Views: 933

Re: pre-programming the flash

Due to PCB size limitation, same will not have a USB connector Even if you don't have an USB connector you can have test pads in order to use a programming tool in production, think an adaptor with pogo pins for example or castelated connections on one side of the board . What if you have a large b...
by fdufnews
Wed Sep 08, 2021 12:33 pm
Forum: MicroPython
Topic: Read power meter over usb
Replies: 25
Views: 1592

Re: Read power meter over usb

You need a UART.
The Pico has two UARTs.
Why would you want to do a UART with PIO when you have everything you need ready to use
by fdufnews
Mon Sep 06, 2021 6:46 am
Forum: MicroPython
Topic: Read power meter over usb
Replies: 25
Views: 1592

Re: Read power meter over usb

I think you just need optocouplers in both direction to connect the power meter to the Pico. One on Data Request line the other on the Data line.
No need to use the PIO. You can use one of the UART.
The optocouplers shall be faster enough in order to transmit @ 115200 Baud.
by fdufnews
Thu Aug 26, 2021 5:13 pm
Forum: MicroPython
Topic: share oled lib library for pico
Replies: 13
Views: 1911

Re: share oled lib library for pico

I'm not sure how to copy the ssd1306py folder to the pico using thonny With the Pico connected to your computer, you launch Thonny. In the explorer on the left panel you make a right click on the directory you want to copy to the Pico and you select "Upload to". This will create a ssd1306...
by fdufnews
Sun Aug 22, 2021 8:20 pm
Forum: MicroPython
Topic: Plans for USB HID support?
Replies: 52
Views: 6105

Re: Plans for USB HID support?

I tried the links you just gave.
For the first link, the Pico works as expected and the hid modules is present.
For the second one, the Pico hangs at boot.
by fdufnews
Sat Aug 21, 2021 7:51 pm
Forum: MicroPython
Topic: Plans for USB HID support?
Replies: 52
Views: 6105

Re: Plans for USB HID support?

I have downloaded the uf2 file and flashed the Pico. There is no problem, and I tested it with the short progam that I got here https://www.raspberrypi.org/forums/posting.php?f=146&mode=reply&t=310876&sid=40aa540e39db643b176f945ac7534c64#pr1866070. Are you sure there was no problem when ...
by fdufnews
Fri Aug 20, 2021 6:55 am
Forum: MicroPython
Topic: Plans for USB HID support?
Replies: 52
Views: 6105

Re: Plans for USB HID support?

Fixed - Earlier code modified to work with MicroPython 1.16 attached. Works for me with 1.16-171. Almost the same procedure to build as described earlier - Why don't you do a pull request on https://github.com/micropython/micropython/pulls in order to incorporate this into the rp2 port so everyone ...
by fdufnews
Sun Aug 15, 2021 3:19 pm
Forum: MicroPython
Topic: Use pio as logic port
Replies: 6
Views: 672

Re: Use pio as logic port

Lest say that GPIO a is the input and GPIO b the output, then GPIO b is always the inverted value of GPIO a.
Maybe you can give a little more information.
Can you elaborate a little on the application?
What is the time constraint between GPIO a and GPIO b?
by fdufnews
Mon Aug 02, 2021 7:39 am
Forum: MicroPython
Topic: Pi PICO USB HID device support in Micro Python?
Replies: 25
Views: 2775

Re: Pi PICO USB HID device support in Micro Python?

In Keybow the keys are directly connected to the GPIO
In RGB Keypad the keys are connected to an I2C IO expander.
So they are not working the same way.
by fdufnews
Wed Jul 28, 2021 3:59 pm
Forum: MicroPython
Topic: SSI Communication using Raspberry Pico for Magnetic Rotary Encoder
Replies: 18
Views: 1122

Re: SSI Communication using Raspberry Pico for Magnetic Rotary Encoder

Clock frequency needs to be higher than 4MHz.
No lower than 4MHz
by fdufnews
Sat Jul 24, 2021 3:29 pm
Forum: General
Topic: Drive a single APA102 on a custom RP2040 board, Windows Python luddite!
Replies: 12
Views: 608

Re: Drive a single APA102 on a custom RP2040 board, Windows Python luddite!

Ah okay, so I need to manually copy the libs to the RP2040's file system? In Thonny, In the bottom left panel select the directory you want to copy the file to in the top left panel., right click on the file you want to copy Select download to.. If the file is already opened in an edit window you c...
by fdufnews
Sat Jul 24, 2021 1:45 pm
Forum: MicroPython
Topic: ImportError using pico, micropython, VScode
Replies: 5
Views: 1007

Re: ImportError using pico, micropython, VScode

Following the link you gave I found that in the readme 3. Basic use: 1): Press and hold the button on the Pico board, connect Pico to the USB port of the computer through the Micro USB cable, and then release the button. After connecting, the computer will automatically recognize a removable disk (R...
by fdufnews
Sat Jul 24, 2021 10:34 am
Forum: General
Topic: Drive a single APA102 on a custom RP2040 board, Windows Python luddite!
Replies: 12
Views: 608

Re: Drive a single APA102 on a custom RP2040 board, Windows Python luddite!

I am a little lost: You are installing a C/C++ tool chain to develop a Python project You are using Raspberry Pi python library for a project running on a Pico Maybe one of the following can help you https://github.com/RobertJBabb/micropython_generic_apa102 https://github.com/cpopp/XBee3-MicroPython...
by fdufnews
Thu Jul 22, 2021 10:13 am
Forum: MicroPython
Topic: Enabling and disable a GPIO
Replies: 7
Views: 460

Re: Enabling and disable a GPIO

Please use the Code tag on the tool bar to put your code online otherwise it will not be correctly formated.
All the indentations are lost.
by fdufnews
Thu Jul 22, 2021 9:58 am
Forum: MicroPython
Topic: Storing a range of results
Replies: 6
Views: 494

Re: Storing a range of results

>>> myList = [[1,2],[2,2],[3,2]] >>> print(myList) [[1, 2], [2, 2], [3, 2]] >>> print(myList[0]) [1, 2] >>> print(myList[0][1]) 2 >>> myList.append([4,3]) >>> print(myList) [[1, 2], [2, 2], [3, 2], [4, 3]] >>> del myList[1] >>> print(myList) [[1, 2], [3, 2], [4, 3]] >>> myList[1][1]=3 >>> print(myL...
by fdufnews
Thu Jul 22, 2021 7:17 am
Forum: MicroPython
Topic: Storing a range of results
Replies: 6
Views: 494

Re: Storing a range of results

You can use a list.
You can add, remove, sort the elements. You can extract a slice of some of the elements
You may have a look at this https://websitesetup.org/wp-content/upl ... -2021.pdf
by fdufnews
Wed Jul 21, 2021 9:45 am
Forum: MicroPython
Topic: SSD1306 - Problem building instance of SSD1306_I2C driver (Newbie)
Replies: 2
Views: 371

Re: SSD1306 - Problem building instance of SSD1306_I2C driver (Newbie)

I have no problem with that code.
Which version of Micropython are you running?
by fdufnews
Tue Jul 20, 2021 9:53 am
Forum: MicroPython
Topic: Enabling and disable a GPIO
Replies: 7
Views: 460

Re: Enabling and disable a GPIO

Use the Pin class. Have a look here
by fdufnews
Sat Jul 10, 2021 1:06 pm
Forum: MicroPython
Topic: Python PIO Sideset pins
Replies: 6
Views: 679

Re: Python PIO Sideset pins

PIO_FREQ = 50000000
I'm not sure piscope run that fast. So you probably missed some part of the signal.
You'd better use

Code: Select all

PIO_FREQ = 50000
for testing
by fdufnews
Mon Jul 05, 2021 8:19 am
Forum: MicroPython
Topic: weird character when using UTF-8
Replies: 24
Views: 1360

Re: weird character when using UTF-8

You can store your data on an SD card connected to SPI.
Or an external EEPROM.
by fdufnews
Fri Jun 25, 2021 10:05 am
Forum: General
Topic: Pico w/ Camera AND Touchscreen?
Replies: 12
Views: 835

Re: Pico w/ Camera AND Touchscreen?

For analog video, you shall sample the signal at a few MHz and the ADC in the RP2040 is not that fast.
Or you can use an external video DAC managed with the PIO. But I think it is not the better solution. A Pi zero will give you better result without hasle.

Go to advanced search