Search found 58 matches

by fdufnews
Thu Jun 17, 2021 12:51 pm
Forum: Raspberry Pi microcontroller boards
Topic: Play audio file in pi pico
Replies: 5
Views: 517

Re: Play audio file in pi pico

Your are talking abour a speaker, maybe you can describe your configuration in more detail, it will be easier to help you
by fdufnews
Mon Jun 14, 2021 6:20 am
Forum: Raspberry Pi microcontroller boards
Topic: RPi pico machine.SPI periodic dropout.
Replies: 18
Views: 686

Re: RPi pico machine.SPI periodic dropout.

Garbage collection perhaps.
by fdufnews
Fri Jun 11, 2021 12:42 pm
Forum: Raspberry Pi microcontroller boards
Topic: Make a counter
Replies: 4
Views: 194

Re: Make a counter

You'd better try

Code: Select all

counter = [Off, Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine]
counter[1]()
by fdufnews
Tue Jun 08, 2021 8:47 am
Forum: Raspberry Pi microcontroller boards
Topic: connect 5v to ADC_VREF
Replies: 1
Views: 117

Re: connect 5v to ADC_VREF

No!!!
No signal on any IO shall be higher than the power supply of the processor, so stay under 3.3V.
If you need to convert signals their voltage are higher than 3.3V you shall use a voltage divider on those signals to reduce their voltage span to the 0 - 3.3v range
by fdufnews
Tue Jun 01, 2021 1:01 pm
Forum: Drivers for External Components
Topic: Driver for ST7735 (blue tab)
Replies: 2
Views: 268

Re: Driver for ST7735 (blue tab)

Thank you.

When I adapt a driver, I try to keep the interface as much as possible to assure compatibility with the original one.
by fdufnews
Tue Jun 01, 2021 6:47 am
Forum: Drivers for External Components
Topic: Driver for ST7735 (blue tab)
Replies: 2
Views: 268

Driver for ST7735 (blue tab)

Just made some modification on a driver from @pythoncoder to use the blue tab variation of a 80 x 160 display using ST7735 driver chip. The driver is here in the drivers directory. The differences with the original driver are : an offset on one axis inverted colors I have added parameters in the con...
by fdufnews
Tue May 25, 2021 6:39 am
Forum: Raspberry Pi microcontroller boards
Topic: Multiple ByteArrays for Pico OLED Displays
Replies: 10
Views: 1026

Re: Multiple ByteArrays for Pico OLED Displays

Oupsss
Thanks corrected
by fdufnews
Mon May 24, 2021 7:44 am
Forum: Raspberry Pi microcontroller boards
Topic: Problem with UART reading (MH-Z19B sensor)
Replies: 13
Views: 1149

Re: Problem with UART reading (MH-Z19B sensor)

Is this garbage only occuring during the first exchange or for every other ones? If it is only on the first one, it is surely a problem linked to the setup of the sensor. In that case, maybe you can add a few seconds delay before entering the flush loop I suggested. The delay shall be longer than th...
by fdufnews
Sun May 23, 2021 5:45 pm
Forum: Raspberry Pi microcontroller boards
Topic: Multiple ByteArrays for Pico OLED Displays
Replies: 10
Views: 1026

Re: Multiple ByteArrays for Pico OLED Displays

Considering your need, I think it will be easier to use a tuple myCar = (myNumber0, myNumber1, myNumber2, myNumber3, myNumber4, ..... , myNumber9, , Point, DecCee) You can then access the shape of the number using its value as an index in myCar. buffer = bytearray(myCar[0]) # will display 0 fb = fra...
by fdufnews
Sun May 23, 2021 1:49 pm
Forum: Raspberry Pi microcontroller boards
Topic: Problem with UART reading (MH-Z19B sensor)
Replies: 13
Views: 1149

Re: Problem with UART reading (MH-Z19B sensor)

Well, that not a secure way of coding. It is always possible that there is garbage sent on the line while the sensor is initializing itself. Maybe you can add a short piece of code in order to flush the RX buffer before talking to your sensor. Insert this before entering your infinite loop while (se...