Search found 63 matches

by fdufnews
Mon Apr 26, 2021 7:41 am
Forum: Hardware Projects
Topic: is there universal board to test various common hardware module/sensor?
Replies: 2
Views: 1451

Re: is there universal board to test various common hardware module/sensor?

Well, a generic interface board is just a dream. If you search a little you'll see that there is no standard pinout for the graphic boards. I have in hand 2 Nokia 5110 display boards and their pinout are different. Concerning the sensors there are some de facto standards like Grove or click™ Board b...
by fdufnews
Thu Apr 08, 2021 5:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: machine.UART how to skip read?
Replies: 2
Views: 400

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: 578

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: 597

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: 20
Views: 3403

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: 1609

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: 961

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: 961

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: 7
Views: 2388

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: 710

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...