Search found 42 matches

by fdufnews
Thu Apr 08, 2021 5:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: machine.UART how to skip read?
Replies: 2
Views: 145

Re: machine.UART how to skip read?

UART.any() will return how many bytes are waiting in the queue or 0 if nothing and it is non blocking
by fdufnews
Fri Apr 02, 2021 7:30 am
Forum: Raspberry Pi microcontroller boards
Topic: Not getting REPL after uploaded a library
Replies: 1
Views: 318

Re: Not getting REPL after uploaded a library

You probably have a main.py that crashes the firmware. You should have a look here
by fdufnews
Mon Mar 29, 2021 7:19 am
Forum: Raspberry Pi microcontroller boards
Topic: PWM limited to 255
Replies: 3
Views: 306

Re: PWM limited to 255

You can left shift the value in order to switch from 8 to 16 bits.
Say you have 0 ≤ value ≤ 255
if you make
value = value << 8
You will have 0 ≤ value ≤ 65280

Maybe you can elaborate on what your problem really is.
by fdufnews
Fri Mar 12, 2021 7:29 am
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 11
Views: 1121

Re: Cannot get access to /dev/ttyACM0

Are you sure Thonny is up to date? The release on the repo is 3.2.7, currently on thonny.org the release is 3.3.6.
Maybe you can load the last release at thonny.org
by fdufnews
Thu Mar 11, 2021 6:37 pm
Forum: Raspberry Pi microcontroller boards
Topic: main.py isn't running when Pico connected to external power
Replies: 6
Views: 952

Re: main.py isn't running when Pico connected to external power

Can you post your main.py?
Are you sure, you are not missing any import or pin setting in your software?
by fdufnews
Wed Mar 10, 2021 9:37 am
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 7
Views: 515

Re: LCD1602 error I2C

Default address on similar I2C adapter (using a PCF8574) is 0x27 (39 decimal) which is compliant with the address the scanner returned.
by fdufnews
Tue Mar 09, 2021 5:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 7
Views: 515

Re: LCD1602 error I2C

In the first program, you try to write at address 114. If you have no I2C slave at that address you have no acknowledge and the write probably crashes.

In the second program the scan tells you that you have a slave at address 39 which maybe is an I2C expander.
by fdufnews
Sat Feb 13, 2021 5:53 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] SPI on the Pico: has anyone made it work?
Replies: 5
Views: 652

Re: SPI on the Pico: has anyone made it work?

I have adapted a driver for an oled display using sh1122. It is using SPI. Code is here viewtopic.php?f=14&t=9769 it runs without any problem on my Pico.
by fdufnews
Sat Feb 13, 2021 9:26 am
Forum: Raspberry Pi microcontroller boards
Topic: Running two Pico's from the same computer.
Replies: 4
Views: 462

Re: Running two Pico's from the same computer.

Well, if you plug a second Pico to your computer it will appear as ttyACM1. This is an automatic feature the new device is created when the device is plugged in. You can verify with a ls /dev/tty* in a terminal After you plug the first Pico, ttyACM0 will be listed After you plug the second one, ttyA...
by fdufnews
Thu Feb 11, 2021 12:16 pm
Forum: Raspberry Pi microcontroller boards
Topic: Problem with setting time in internal RTC
Replies: 2
Views: 377

Re: Problem with setting time in internal RTC

This answer will not explain why your solution does not work butt there is a way to set the time here

Edit:
Maybe the answer is here. Adressing the registers using their base address only allows 32 bits access. Atomic access needs to use base address + 0x2000